Skip to content

Instantly share code, notes, and snippets.

@andy51002000
Created July 15, 2018 14:53
Send Request To Win32
private async Task SendRequestToWin32()
{
ValueSet request = new ValueSet();
request.Add("GetBiosSerialnumer", "");
AppServiceResponse response = null;
response = await Connection.SendMessageAsync(request);
string serialNumber = response.Message["serialNumber"] as string;
var localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
localSettings.Values["serialNumber"] = serialNumber;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment