SlideShare a Scribd company logo
1 of 25
AcquireConnectionAsync
AddAndShowDeviceAccountsAsy
nc
AddAsync
AddAudioEffectAsync
AddDatagramSocketAsync
AddDeviceAsync
AddEffectAsync
AddLicenseAsync
AddPackageAsync
AddPackageVolumeAsync
AddProfileFromObjectAsync
AddProfileFromXmlAsync
AddStreamSocketListenerAsyn
c
AddVideoEffectAsync
AddWebAccountAsync
AppendLinesAsync
AppendTextAsync
ApplyAsync
ApproveSessionAsync
AttachAsync
AuthenticateAsync
AuthenticateDeviceAsync
AuthenticateSilentlyAsync
AuthenticateUserAsync
BeginServiceRequest
BindEndpointAsync
BindServiceNameAsync
BufferAllAsync
BuildChainAsync
CancelAsync
CancelAsyncOperations
CancelIOAsync
CaptureAsync
CaptureFileAsync
CapturePhotoToStorageFileAs
ync
CapturePhotoToStreamAsync
CapturePreviewToStreamAsync
CaptureSelectedContentToDat
aPackageAsync
ChangeAdministrativeKeyAsyn
c
ChangeAsync
ChangeMessageFlagStateAsync
CheckAvailabilityAsync
CheckHealthAsync
ClaimDrawerAsync
ClaimPrinterAsync
ClaimReaderAsync
ClaimScannerAsync
CleanupPackageForUserAsync
ClearAsync
ClearEffectsAsync
ClearPublisherCacheFolderAs
ync
ClearRegionsAsync
ClearStallAsync
ClearTemporaryWebDataAsync
ClearViewAsync
ClearWebAccountPictureAsync
CloseAndSaveToFileAsync
CommitAsync
CompileConstraintsAsync
CompleteUpdatesAsync
ConfigureAccessPointAsync
ConnectAsync
ConnectProfileAsync
ConnectProfileWithPasswordC
redentialAsync
ConvertBackAsync
ConvertContactToVCardAsync
ConvertVCardToContactAsync
CopyAndCloseAsync
CopyAndReplaceAsync
CopyAsync
CopyFromFileAsync
CopyProtectionAsync
CopyToAsync
CreateAccountAsync
CreateAnnotationListAsync
CreateAppointmentCalendarAs
ync
CreateAsync
CreateContactListAsync
CreateCopyFromSurfaceAsync
CreateDashboardItemUpdaterA
sync
CreateDeviceAccountAsync
CreateDeviceInputNodeAsync
CreateDeviceOutputNodeAsync
CreateDownloadAsync
CreateEndpointPairAsync
CreateEndpointPairForPortsA
sync
CreateFileAsync
CreateFileForUserAsync
CreateFileInputNodeAsync
CreateFileOutputNodeAsync
CreateFolderAsync
CreateFolderForUserAsync
CreateForInPlacePropertyEnc
odingAsync
CreateForTranscodingAsync
CreateFromFileAsync
CreateFromHResultAsync
CreateFromIdAsync
CreateFromImageFileAsync
CreateFromStreamAsync
CreateFromUriAsync
CreateMailboxAsync
CreateMediaResourceAsync
CreateProtectedAndOpenAsync
CreatePushNotificationChann
elForApplicationAsync
CreatePushNotificationChann
elForSecondaryTileAsync
CreateRequestAsync
CreateResourceAsync
CreateResponseMessageAsync
CreateSocialFeedUpdaterAsyn
c
CreateStreamedFileAsync
CreateStreamedFileFromUriAs
ync
CreateUploadAsync
CreateUploadFromStreamAsync
CreateWebAccountWatcherAsyn
c
DeAuthenticateDeviceAsync
DecryptAsync
DecryptTpmAttestationCreden
tialAsync
DeleteAllAsync
DeleteAnnotationAsync
DeleteAppointmentAsync
DeleteAppointmentInstanceAs
ync
DeleteAsync
DeleteContactAsync
DeleteContainerAsync
DeleteDeviceAccountAsync
DeleteEntriesAsync
DeleteEntryAsync
DeleteImportedItemsFromSour
ceAsync
DeleteLicenses
DeleteMessageAsync
DeleteMessagesAsync
DeleteMultipleAsync
DeleteProfileAsync
DeleteResourceAsync
DeleteResourceItemAsync
DeleteWebAccountAsync
DenySessionAsync
DeprovisionAsync
DetectFacesAsync
DeviceInfoSupportsCastingAs
ync
DeviceInfoSupportsDialAsync
DisableAnnotationAsync
DisableAsync
DisconnectAsync
DisconnectProfileAsync
DownloadAttachmentAsync
DownloadMessageAsync
DropAsync
EnableAsync
EnterAsync
ExecuteAsync
FilterUnsupportedSystemFeat
uresAsync
FinalizeAsync
FindAccountAsync
FindAccountProviderAsync
FindAccountsAsync
FindAllAdaptersAsync
FindAllAsync
FindAllCardsAsync
FindAllForPackageAsync
FindAllInstancesAsync
FindAllPeersAsync
FindAllProviderWebAccountsA
sync
FindAllSourcesAsync
FindAnnotationListsAsync
FindAnnotationsAsync
FindAnnotationsByRemoteIdAs
ync
FindAnnotationsForContactAs
ync
FindAppointmentCalendarsAsy
nc
FindAppointmentsAsync
FindAppServiceProvidersAsyn
c
FindChildFoldersAsync
FindConflictAsync
FindConnectionProfilesAsync
FindContactAnnotationListsA
sync
FindContactIdsByEmailAsync
FindContactIdsByPhoneNumber
Async
FindContactListsAsync
FindContactsAsync
FindEmailMailboxesAsync
FindExceptionsFromMasterAsy
nc
FindFileHandlersAsync
FindItemsAsync
FindLocalIdsFromRoamingIdAs
ync
FindLocalLocationsAsync
FindLocationsAsync
FindLocationsAtAsync
FindMailboxesAsync
FindMessagesAsync
FindNearbyAsync
FindRawContactsAsync
FindStartIndexAsync
FindUnexpandedAppointmentsA
sync
FindUriSchemeHandlersAsync
FinishAsync
FlushAsync
FocusAsync
ForwardMessageAsync
FromBluetoothAddressAsync
FromFolderAsync
FromHostNameAsync
FromIdAsync
FromNetworkAccountIdAsync
FromSmartCardAsync
GenerateSignatureAsync
GetAccountAsync
GetAnnotationAsync
GetAnnotationListAsync
GetAnswerToResetAsync
GetAppAndSupplementalPackag
eUpdatesAsync
GetAppAndSupplementalPackag
eUpdatesForUserAsync
GetApplicationLinkAsync
GetApplicationTokenBindingK
eyAsync
GetApplicationTokenBindingK
eyIdAsync
GetAppListEntriesAsync
GetAppointmentAsync
GetAppointmentCalendarAsync
GetAppointmentInstanceAsync
GetAppPurchaseCampaignIdAsy
nc
GetAppReceiptAsync
GetAppStateAsync
GetAsync
GetAsyncKeyState
GetAttestationAsync
GetAttributedNetworkUsageAs
ync
GetAuthorityKeyContainerNam
eAsync
GetBasicPropertiesAsync
GetBitmapAsync
GetBlobInfoAsync
GetBrowsePolicyAsync
GetBufferAsync
GetCachedCapabilitiesAsync
GetCandidatesAsync
GetCapabilitiesAsync
GetCapabilitiesFromNetworkA
sync
GetChallengeContextAsync
GetColorProfileAsync
GetConfigurationAsync
GetConnectedProfileAsync
GetConnectivityIntervalsAsy
nc
GetContactAsync
GetContactFromRemoteIdAsync
GetContactListAsync
GetContainerInfoAsync
GetControllersAsync
GetConversationAsync
GetConversationFromThreadin
gInfoAsync
GetCountAsync
GetCurrentConfigurationAsyn
c
GetCurrentDownloadsAsync
GetCurrentDownloadsForTrans
ferGroupAsync
GetCurrentReadingAsync
GetCurrentUploadsAsync
GetCurrentUploadsForTransfe
rGroupAsync
GetCustomerCollectionsIdAsy
nc
GetCustomerPurchaseIdAsync
GetDataAsync
GetDataBySessionPortAsync
GetDefaultAsync
GetDefaultPrintTicketAsync
GetDeviceAccountConfigurati
onAsync
GetDeviceSelectorFromCastin
gSourceAsync
GetDisplayNameAsync
GetDocumentPropertiesAsync
GetDomainNameAsync
GetDrivingRouteAsync
GetDrivingRouteFromWaypoint
sAsync
GetEndpointPairsAsync
GetEntryAsync
GetExtensionPropertiesAsync
GetFeatureReportAsync
GetFileAsync
GetFileFromApplicationUriAs
ync
GetFileFromPathAsync
GetFilesAsync
GetFirstNameAsync
GetFolderAsync
GetFolderForUserAsync
GetFolderFromPathAsync
GetFoldersAsync
GetForUserAsync
GetFrameAsync
GetGeopositionAsync
GetGeopositionHistoryAsync
GetGeotagAsync
GetGlyphThumbnailAsync
GetHtmlFormatAsync
GetIdAsync
GetImageAsync
GetImagePropertiesAsync
GetIndexedStateAsync
GetInputReportAsync
GetInputStreamAsync
GetIsAppAllowedToInstallAsy
nc
GetIsApplicableAsync
GetItemAsync
GetItemCountAsync
GetItemsAsync
GetLastNameAsync
GetLibraryAsync
GetLibraryForUserAsync
GetLinguisticAlternativesAs
ync
GetMailboxAsync
GetMeContactAsync
GetMessageAsync
GetMessageByGlobalUniqueIdA
sync
GetMessageByRemoteIdAsync
GetMessageCountsAsync
GetMessagesAsync
GetMusicPropertiesAsync
GetNameAsync
GetNetworkUsageAsync
GetOneTimePassCodeAsync
GetOutputStreamAsync
GetParentAsync
GetPerUserFromPerAppAccount
Async
GetPictureAsync
GetPixelDataAsync
GetPixelsAsync
GetPreviewAsync
GetPreviewFrameAsync
GetPrimaryManagedIdentityFo
rNetworkEndpointAsync
GetPrincipalNameAsync
GetProductReceiptAsync
GetProfilesAsync
GetPropertiesAsync
GetPropertyAsync
GetProtectionInfoAsync
GetProvisioningInfoAsync
GetProxyConfigurationAsync
GetPublicFolderAsync
GetRadiosAsync
GetRecordDetailsAsync
GetRemainingBytesInQuotaAsy
nc
GetResourceMapAsync
GetRestrictionLevelAsync
GetRfcommServicesAsync
GetRfcommServicesForIdAsync
GetRtfAsync
GetScaledImageAsThumbnailAs
ync
GetSdpRawAttributesAsync
GetSessionInitiationProtoco
lUriAsync
GetSessionsAndUnregisteredA
ccountsAsync
GetSessionsAsync
GetSoftwareBitmapAsync
GetSourcesUnseenCountAsync
GetSpecialFolderAsync
GetStatisticsAsync
GetStatusAsync
GetStorageItemsAsync
GetStreamProtectionInfoAsyn
c
GetStringAsync
GetSupportedCastingPlayback
TypesAsync
GetSupportedSymbologiesAsyn
c
GetSyncManagerAsync
GetSyncOnDemandForUserAsync
GetSystemHistoryAsync
GetTextAsync
GetThumbnailAsync
GetThumbnailsAsync
GetTokenSilentlyAsync
GetTransportAsync
GetTransportsAsync
GetUiccAppsAsync
GetUnfulfilledConsumablesAs
ync
GetUnseenCountAsync
GetUriAsync
GetValueAsFileAsync
GetValueAsStreamAsync
GetVideoPropertiesAsync
GetViewsAsync
GetVoiceCallSupportAsync
GetVoiceCommandAsync
GetWalkingRouteAsync
GetWalkingRouteFromWaypoint
sAsync
GetWalletItemAsync
GetWebLinkAsync
GoToNextFrameAsync
ImportItemAsync
ImportItemsAsync
ImportPfxDataAsync
IndexFileContentsAsync
InitializeAsync
InsertSlipAsync
InstallCertificateAsync
InstallCommandDefinitionsFr
omStorageFileAsync
InvalidateCacheAsync
InvokeScriptAsync
IsContainerAsync
IsStoreBlockedByPolicyAsync
IssueCredentialsAsync
IsSupportedAsync
IsSymbologySupportedAsync
LaunchAppForItemAsync
LaunchAsync
LaunchFileAsync
LaunchFolderAsync
LaunchFullTrustProcessForAp
pAsync
LaunchFullTrustProcessForCu
rrentAppAsync
LaunchUriAsync
LaunchUriForResultsAsync
LeaveAsync
LeaveConversationAsync
LicenseFetchAsync
LoadAddOnProductInfosAsync
LoadAsync
LoadCurrentAsync
LoadFileFromContainerAsync
LoadFromFileAsync
LoadFromStreamAsync
LoadFromUriAsync
LoadListingInformationAsync
LoadListingInformationByKey
wordsAsync
LoadListingInformationByPro
ductIdsAsync
LoadModelFromPackageAsync
LoadMoreItemsAsync
LockAsync
MakeDefaultAccountAsync
MapAllPixelsToTargetAsync
MapRegionOfPixelsToTargetAs
ync
MarkAllAsSeenAsync
MarkAsSeenAsync
MarkEntriesAsSeenAsync
MarkEntryAsSeenAsync
MarkFolderAsSeenAsync
MarkFolderSyncEnabledAsync
MarkMessageAsBlockedAsync
MarkMessageAsSeenAsync
MarkMessageReadAsync
MarkMessagesAsReadAsync
MarkSourcesAsSeenAsync
MeasureAsync
MergeAndValidateWithDefault
PrintTicketAsync
MoveAndReplaceAsync
MoveAppointmentAsync
MoveAsync
MovePackageToVolumeAsync
OpenAsync
OpenDrawerAsync
OpenKeyPairFromCertificateA
sync
OpenReadAsync
OpenSequentialReadAsync
OpenTransactedWriteAsync
OverAsync
PairAsync
PauseAsync
PauseRecordAsync
PickAsync
PickContactAsync
PickContactsAsync
PickMultipleContactsAsync
PickMultipleFilesAsync
PickSaveFileAsync
PickSingleContactAsync
PickSingleDeviceAsync
PickSingleDialDeviceAsync
PickSingleFileAsync
PickSingleFolderAsync
PingAsync
PostAsync
PrepareAdvancedPhotoCapture
Async
PrepareFileTranscodeAsync
PrepareForCustomAnimatedSwi
tchAsync
PrepareLowLagPhotoCaptureAs
ync
PrepareLowLagPhotoSequenceC
aptureAsync
PrepareLowLagRecordToCustom
SinkAsync
PrepareLowLagRecordToStorag
eFileAsync
PrepareLowLagRecordToStream
Async
PrepareMediaStreamSourceTra
nscodeAsync
PreparePageAsync
PrepareStreamTranscodeAsync
PrepareVariablePhotoSequenc
eCaptureAsync
ProcessEventAsync
ProcessNextFrameAsync
ProtectAsync
ProtectStreamAsync
ProvisionAsync
ProvisionFromXmlDocumentAsy
nc
PullCookiesAsync
PushCookiesAsync
PutAsync
QueryFileSupportAsync
QueryUriSupportAsync
ReadAsBufferAsync
ReadAsInputStreamAsync
ReadAsStringAsync
ReadAsync
ReadBatchAsync
ReadBufferAsync
ReadClientCharacteristicCon
figurationDescriptorAsync
ReadLinesAsync
ReadRecordAsync
ReadTextAsync
ReadValueAsync
RecognizeAsync
RecognizeWithUIAsync
RedeemTokenForFileAsync
RegisterDatagramSocketAsync
RegisterPackageAsync
RegisterPackageByFullNameAs
ync
RegisterStreamSocketListene
rAsync
RegisterSyncManagerAsync
RegisterTransportAsync
ReloadSimulatorAsync
RemoveDeviceAsync
RemoveEffectAsync
RemovePackageAsync
RemovePackageVolumeAsync
RemoveSlipAsync
RenameAsync
RenderAsync
RenderToFileAsync
RenderToStreamAsync
RenewAttestationAsync
RenewSystemComponentsAsync
RepairAsync
ReplaceWithStreamedFileAsyn
c
ReplaceWithStreamedFileFrom
UriAsync
ReportCompletedAsync
ReportConsumableFulfillment
Async
ReportFailedAsync
ReportFailureAsync
ReportProgressAsync
ReportSuccessAsync
RequestAccessAsync
RequestAccessForAppAsync
RequestAddFolderAsync
RequestAnnotationStoreAsync
RequestAppLaunchAsync
RequestAppPurchaseAsync
RequestAsync
RequestAttestedVirtualSmart
CardCreationAsync
RequestConfirmationAsync
RequestContentAccessAsync
RequestCreateAsync
RequestCreateForSelectionAs
ync
RequestCredentialsAsync
RequestCustomPromptAsync
RequestDeleteAsync
RequestDeleteForSelectionAs
ync
RequestDisambiguationAsync
RequestDownloadAndInstallPa
ckageUpdatesAsync
RequestDownloadAndInstallPa
ckageUpdatesForUserAsync
RequestDownloadPackageUpdat
esAsync
RequestDownloadPackageUpdat
esForUserAsync
RequestExtensionAsync
RequestLaunchAsync
RequestPinChangeAsync
RequestPinResetAsync
RequestProductPurchaseAsync
RequestProductPurchaseByPro
ductIdAndSkuIdAsync
RequestRemoveFolderAsync
RequestRemovePackageAsync
RequestSetAsNotificationPro
viderAsync
RequestSetImageFeedAsync
RequestSignAsync
RequestStartCastingAsync
RequestStartProjectingAsync
RequestStoreAsync
RequestTokenAsync
RequestUnconstrainedDownloa
dsAsync
RequestUnconstrainedUploads
Async
RequestVerificationAsync
RequestVirtualSmartCardCrea
tionAsync
RequestVirtualSmartCardDele
tionAsync
ReRegistrationAsync
ReserveCallResourcesAsync
ResetAsync
ResetStatisticsAsync
ResolveRecipientsAsync
ResumeAsync
ResumePickSingleFileAsync
ResumeRecordAsync
RetainDeviceAsync
RetrieveDeviceAuthenticatio
nDataAsync
RetrieveFeedAsync
RetrieveMediaResourceAsync
RetrievePropertiesAsync
RetrieveResourceAsync
RetrieveServiceDocumentAsyn
c
RetrieveStatisticsAsync
RetrySendMessageAsync
RunAsync
RunIdleAsync
RunToCompletionAsync
SaveAppointmentAsync
SaveAsAsync
SaveAsync
SaveContactAsync
SaveDraftAsync
SaveEntryAsync
SaveFileAsContainerAsync
SaveMessageAsync
SaveModelToPackageAsync
SavePropertiesAsync
SaveToFileAsync
ScanAsync
ScanFilesToFolderAsync
ScanPreviewToStreamAsync
ScheduleAsync
SearchForAllUpdatesAsync
SearchForUpdatesAsync
SelectNewAsync
SelectSettingAsync
SendControlInTransferAsync
SendControlOutTransferAsync
SendFeatureReportAsync
SendIOControlAsync
SendLicenseFetchRequestAsyn
c
SendMessageAndGetReplyAsync
SendMessageAndGetResultAsyn
c
SendMessageAsync
SendOutputReportAsync
SendProximityDetectionRespo
nseAsync
SendProximityDetectionStart
Async
SendQueryCommandAsync
SendRegistrationRequestAsyn
c
SendRequestAsync
SendResponseAsync
SendResponseWithPinAsync
SendSetCommandAsync
SetAccountPictureAsync
SetAccountPictureFromStream
Async
SetAccountPicturesAsync
SetAccountPicturesFromStrea
msAsync
SetActiveProfileAsync
SetActiveSymbologiesAsync
SetAutoAsync
SetBitmapAsync
SetCategoryAsync
SetConfigurationAsync
SetEncodingPropertiesAsync
SetGeotagAsync
SetGeotagFromGeolocatorAsyn
c
SetImageAsync
SetImageFileAsync
SetImageStreamAsync
SetLevelAsync
SetMediaStreamPropertiesAsy
nc
SetPackageVolumeOfflineAsyn
c
SetPackageVolumeOnlineAsync
SetPerAppToPerUserAccountAs
ync
SetPhraseListAsync
SetPresetAsync
SetPropertiesAsync
SetRegionsAsync
SetRelativeScrollPositionAs
ync
SetRemoteIdentificationInfo
rmationAsync
SetScopeAsync
SetSourceAsync
SetStateAsync
SetValueAsync
SetVersionAsync
SetViewAsync
SetWebAccountPictureAsync
ShowAccountErrorResolverAsy
nc
ShowAccountSettingsAsync
ShowAddAccountAsync
ShowAddAppointmentAsync
ShowAppointmentDetailsAsync
ShowAsStandaloneAsync
ShowAsync
ShowAtAsync
ShowComposeNewEmailAsync
ShowComposeSmsMessageAsync
ShowEditNewAppointmentAsync
ShowForSelectionAsync
ShowPrintUIAsync
ShowRemoveAppointmentAsync
ShowReplaceAppointmentAsync
ShowTimeFrameAsync
SignAsync
SignHashedDataAsync
SignInAsync
SignOutAsync
SignOutUserAsync
StagePackageAsync
StageUserDataAsync
StartAppInstallAsync
StartAsync
StartDragAsync
StartPreviewAsync
StartPreviewToCustomSinkAsy
nc
StartProjectingAsync
StartRecordToCustomSinkAsyn
c
StartRecordToStorageFileAsy
nc
StartRecordToStreamAsync
StartSoftwareTriggerAsync
StartTetheringAsync
StopAsync
StopPreviewAsync
StopProjectingAsync
StopRecognitionAsync
StopRecordAsync
StopSoftwareTriggerAsync
StopTetheringAsync
StoreAsync
SubmitPropertySetUpdatesAsy
nc
SubmitUpdatesAsync
SwapDisplaysForViewsAsync
SwitchAsync
SyncAsync
SynthesizeSsmlToStreamAsync
SynthesizeTextToStreamAsync
TraceOperationCompletion
TranscodeAsync
TransmitAsync
TryCancelDownloadMessageAsy
nc
TryCancelMeetingAsync
TryCancelSendMessageAsync
TryComputeLatestMeshAsync
TryCreateFolderAsync
TryCreateOrUpdateAppointmen
tAsync
TryDeleteFolderAsync
TryEmptyFolderAsync
TryExportAnchorsAsync
TryForwardMeetingAsync
TryGetAutoReplySettingsAsyn
c
TryGetDepthCorrelatedCamera
IntrinsicsAsync
TryGetDepthCorrelatedCoordi
nateMapperAsync
TryGetItemAsync
TryImportAnchorsAsync
TryLinkContactsAsync
TryMoveAsync
TryMoveFolderAsync
TryMoveMessageAsync
TryPartialRepairAsync
TryProposeNewTimeForMeeting
Async
TryReduceFacesAsync
TryRotateAsync
TryRotateToAsync
TryRunAsync
TryRunIdleAsync
TrySaveAnnotationAsync
TrySaveAsync
TrySendIOControlAsync
TrySetAutoReplySettingsAsyn
c
TrySetLockScreenImageAsync
TrySetPreferredSourceForPic
tureAsync
TrySetPropertyAsync
TrySetSceneAsync
TrySetVideoProfileAsync
TrySetViewAsync
TrySetViewBoundsAsync
TrySetWallpaperImageAsync
TryShowAsStandaloneAsync
TryTiltAsync
TryTiltToAsync
TryUpdateMeetingResponseAsy
nc
TryZoomInAsync
TryZoomOutAsync
TryZoomToAsync
UnblockAsync
UnlinkRawContactAsync
UnlockAsync
UnpairAsync
UnprojectAllPixelsAtCorrela
tedDepthAsync
UnprojectRegionPixelsAtCorr
elatedDepthAsync
UnprotectAsync
UnprotectStreamAsync
UpdateAppByPackageFamilyNam
eAsync
UpdateAsync
UpdateFirmwareAsync
UpdateKeyAsync
UpdateMediaResourceAsync
UpdatePackageAsync
UpdateProfileFromObjectAsyn
c
UpdateProfileFromXmlAsync
UpdateResourceAsync
UpdateResourceItemAsync
UpdateSettingsAsync
UpdateStatisticsAsync
UpdateWebAccountPropertiesA
sync
UpdateWnsChannelAsync
UpgradeToSslAsync
UriToStreamAsync
ValidateCertificatesAsync
VerifyAsync
VerifyResponseAsync
VerifySignatureAsync
WriteAsync
WriteBufferAsync
WriteBytesAsync
WriteClientCharacteristicCo
nfigurationDescriptorAsync
WriteDataAsync
WriteLinesAsync
WriteTextAsync
WriteToStreamAsync
WriteValueAsync
Demo: Opening a JPG
Using PPL tasks
using namespace Windows::Storage::Pickers;
using namespace concurrency;
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
create_task(picker->PickSingleFileAsync()).then([this]
(Windows::Storage::StorageFile^ file)
{
create_task(file->OpenReadAsync()).then([this]
(Windows::Storage::Streams::IRandomAccessStreamWithContentType^ stream)
{
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
});
});
using namespace Windows::Storage::Pickers;
using namespace concurrency;
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
create_task(picker->PickSingleFileAsync()).then([this]
(Windows::Storage::StorageFile^ file)
{
create_task(file->OpenReadAsync()).then([this]
(Windows::Storage::Streams::IRandomAccessStreamWithContentType^ stream)
{
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
});
});
using namespace Windows::Storage::Pickers;
using namespace concurrency;
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
create_task(picker->PickSingleFileAsync()).then([this]
(Windows::Storage::StorageFile^ file)
{
create_task(file->OpenReadAsync()).then([this]
(Windows::Storage::Streams::IRandomAccessStreamWithContentType^ stream)
{
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
});
});
using namespace Windows::Storage::Pickers;
using namespace concurrency;
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
create_task(picker->PickSingleFileAsync()).then([this]
(Windows::Storage::StorageFile^ file)
{
create_task(file->OpenReadAsync()).then([this]
(Windows::Storage::Streams::IRandomAccessStreamWithContentType^ stream)
{
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
});
});
void ShowImage()
{
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
auto file = picker->PickSingleFile();
auto stream = file->OpenRead();
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
}
asynchronous
task<void> ShowImageAsync()
{
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
auto file = co_await picker->PickSingleFileAsync();
auto stream = co_await file->OpenReadAsync();
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
}
Demo: Opening a JPG (redux)
Using co_await
future<void> do_while(function<future<bool>()> body) {
return body().then([=](future<bool> notDone) {
return notDone.get() ? do_while(body) : make_ready_future();
});
}
future<int> tcp_reader(int total) {
struct State {
char buf[4 * 1024];
int total;
Tcp::Connection conn;
explicit State(int total) : total(total) {}
};
auto state = make_shared<State>(total);
return Tcp::Connect("127.0.0.1", 1337).then(
[state](future<Tcp::Connection> conn) {
state->conn = std::move(conn);
return do_while([state]()->future<bool> {
if (state->total <= 0) return make_ready_future(false);
return state->conn.read(state->buf, sizeof(state->buf)).then(
[state](future<int> nBytesFut) {
auto nBytes = nBytesFut.get()
if (nBytes == 0)
return make_ready_future(false);
state->total -= nBytes;
return make_ready_future(true);
});
});
});
}
auto tcp_reader(int total) -> future<int>
{
char buf[4 * 1024];
auto conn = co_await Tcp::Connect("127.0.0.1", 1337);
for (;;)
{
auto bytesRead = co_await conn.Read(buf, sizeof(buf));
total -= bytesRead;
if (total <= 0 || bytesRead == 0)
return total;
}
}
DART 1.9
Future<int> getPage(t) async {
var c = new http.Client();
try {
var r = await c.get('http://url/search?q=$t');
print(r);
return r.length();
} finally {
await c.close();
}
}
C#
async Task<string> WaitAsynchronouslyAsync()
{
await Task.Delay(10000);
return "Finished";
}
HACK (programming language)
async function gen1(): Awaitable<int> {
$x = await Batcher::fetch(1);
$y = await Batcher::fetch(2);
return $x + $y;
}
Python: PEP 0492
async def abinary(n):
if n <= 0:
return 1
l = await abinary(n - 1)
r = await abinary(n - 1)
return l + 1 + r
C++1z
future<string> WaitAsynchronouslyAsync()
{
co_await sleep_for(10ms);
co_return "Finished"s;
}
User
Coroutine designer
Async
Generator
co_await + co_yield
Generator
co_yield
Task
co_await
Plain old
function
Compiler
does not care
co_await co_return
co_yield await $p.yield_value(expr)
http://open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0057r2.pdf
co_await
http://visualstudio.uservoice.com/
https://www.youtube.com/watch?v=YYtzQ355_Co
https://www.youtube.com/watch?v=_fu0gx-xseY
Channel 9
Microsoft Virtual Academy
Build 2016 - P489 - Async Programming Improvements for C++ and UWP
Build 2016 - P489 - Async Programming Improvements for C++ and UWP

More Related Content

Similar to Build 2016 - P489 - Async Programming Improvements for C++ and UWP

Dynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andi
Dynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andiDynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andi
Dynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andi
Dynatrace
 
App fabric hybrid computing
App fabric   hybrid computingApp fabric   hybrid computing
App fabric hybrid computing
Hammad Rajjoub
 
HTML5: huh, what is it good for?
HTML5: huh, what is it good for?HTML5: huh, what is it good for?
HTML5: huh, what is it good for?
Remy Sharp
 

Similar to Build 2016 - P489 - Async Programming Improvements for C++ and UWP (20)

Pycon Korea 2018-Sanic을 활용하여 Microservice 구축하기-이재면
Pycon Korea 2018-Sanic을 활용하여 Microservice 구축하기-이재면Pycon Korea 2018-Sanic을 활용하여 Microservice 구축하기-이재면
Pycon Korea 2018-Sanic을 활용하여 Microservice 구축하기-이재면
 
Under the hood of the particular service platform
Under the hood of the particular service platformUnder the hood of the particular service platform
Under the hood of the particular service platform
 
Text Mining
Text MiningText Mining
Text Mining
 
AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server
AWS July Webinar Series: Introducing AWS OpsWorks for Windows ServerAWS July Webinar Series: Introducing AWS OpsWorks for Windows Server
AWS July Webinar Series: Introducing AWS OpsWorks for Windows Server
 
PWA Roadshow Korea - Service Worker
PWA Roadshow Korea - Service WorkerPWA Roadshow Korea - Service Worker
PWA Roadshow Korea - Service Worker
 
Maxim Salnikov - Service Worker: taking the best from the past experience for...
Maxim Salnikov - Service Worker: taking the best from the past experience for...Maxim Salnikov - Service Worker: taking the best from the past experience for...
Maxim Salnikov - Service Worker: taking the best from the past experience for...
 
Dynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andi
Dynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andiDynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andi
Dynatrace: DevOps, shift-left &amp; self-healing a performance clinic with andi
 
4Developers 2018: Real-time capabilities in ASP.NET Core web applications (To...
4Developers 2018: Real-time capabilities in ASP.NET Core web applications (To...4Developers 2018: Real-time capabilities in ASP.NET Core web applications (To...
4Developers 2018: Real-time capabilities in ASP.NET Core web applications (To...
 
Flink Forward Berlin 2017: Steffen Hausmann - Build a Real-time Stream Proces...
Flink Forward Berlin 2017: Steffen Hausmann - Build a Real-time Stream Proces...Flink Forward Berlin 2017: Steffen Hausmann - Build a Real-time Stream Proces...
Flink Forward Berlin 2017: Steffen Hausmann - Build a Real-time Stream Proces...
 
Atmosphere Conference 2015: Taming the Modern Datacenter
Atmosphere Conference 2015: Taming the Modern DatacenterAtmosphere Conference 2015: Taming the Modern Datacenter
Atmosphere Conference 2015: Taming the Modern Datacenter
 
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
 
Dev309 from asgard to zuul - netflix oss-final
Dev309  from asgard to zuul - netflix oss-finalDev309  from asgard to zuul - netflix oss-final
Dev309 from asgard to zuul - netflix oss-final
 
Progressive Web Apps
Progressive Web AppsProgressive Web Apps
Progressive Web Apps
 
Citrix xen server
Citrix xen serverCitrix xen server
Citrix xen server
 
PDC Highlights
PDC HighlightsPDC Highlights
PDC Highlights
 
App fabric hybrid computing
App fabric   hybrid computingApp fabric   hybrid computing
App fabric hybrid computing
 
Day 4 - Cloud Migration - But How?
Day 4 - Cloud Migration - But How?Day 4 - Cloud Migration - But How?
Day 4 - Cloud Migration - But How?
 
HTML5: huh, what is it good for?
HTML5: huh, what is it good for?HTML5: huh, what is it good for?
HTML5: huh, what is it good for?
 
Secure Communications with VisualWorks - CSTUC 2006
Secure Communications with VisualWorks - CSTUC 2006Secure Communications with VisualWorks - CSTUC 2006
Secure Communications with VisualWorks - CSTUC 2006
 
(DEV309) From Asgard to Zuul: How Netflix’s Proven Open Source Tools Can Help...
(DEV309) From Asgard to Zuul: How Netflix’s Proven Open Source Tools Can Help...(DEV309) From Asgard to Zuul: How Netflix’s Proven Open Source Tools Can Help...
(DEV309) From Asgard to Zuul: How Netflix’s Proven Open Source Tools Can Help...
 

More from Windows Developer

More from Windows Developer (20)

Our Fluent Path to Spatial Computing: Easy as 1-2D-3D
Our Fluent Path to Spatial Computing: Easy as 1-2D-3DOur Fluent Path to Spatial Computing: Easy as 1-2D-3D
Our Fluent Path to Spatial Computing: Easy as 1-2D-3D
 
Fluent Design System inside of Microsoft: Office
Fluent Design System inside of Microsoft: OfficeFluent Design System inside of Microsoft: Office
Fluent Design System inside of Microsoft: Office
 
Building powerful desktop and MR applications with new windowing apis
Building powerful desktop and MR applications with new windowing apisBuilding powerful desktop and MR applications with new windowing apis
Building powerful desktop and MR applications with new windowing apis
 
Creating Innovative Experiences for Fluent Design using the Visual Layer
Creating Innovative Experiences for Fluent Design using the Visual LayerCreating Innovative Experiences for Fluent Design using the Visual Layer
Creating Innovative Experiences for Fluent Design using the Visual Layer
 
Rapidly Construct LOB Applications with UWP and Visual Studio 2017
Rapidly Construct LOB Applications with UWP and Visual Studio 2017Rapidly Construct LOB Applications with UWP and Visual Studio 2017
Rapidly Construct LOB Applications with UWP and Visual Studio 2017
 
Modernizing Desktop Apps on Windows 10
Modernizing Desktop Apps on Windows 10Modernizing Desktop Apps on Windows 10
Modernizing Desktop Apps on Windows 10
 
How Simplygon helped Remix become platform independent
How Simplygon helped Remix become platform independentHow Simplygon helped Remix become platform independent
How Simplygon helped Remix become platform independent
 
Harnessing the Power of AI with Windows Ink
Harnessing the Power of AI with Windows InkHarnessing the Power of AI with Windows Ink
Harnessing the Power of AI with Windows Ink
 
Technical deep dive into creating the “Solutions Showcase for Mixed Reality” ...
Technical deep dive into creating the “Solutions Showcase for Mixed Reality” ...Technical deep dive into creating the “Solutions Showcase for Mixed Reality” ...
Technical deep dive into creating the “Solutions Showcase for Mixed Reality” ...
 
Developing for Sets on Windows 10
Developing for Sets on Windows 10Developing for Sets on Windows 10
Developing for Sets on Windows 10
 
Data-Driven and User-Centric: Improving enterprise productivity and engagemen...
Data-Driven and User-Centric: Improving enterprise productivity and engagemen...Data-Driven and User-Centric: Improving enterprise productivity and engagemen...
Data-Driven and User-Centric: Improving enterprise productivity and engagemen...
 
Drive user reengagement across all your Windows, Android, and iOS with Micros...
Drive user reengagement across all your Windows, Android, and iOS with Micros...Drive user reengagement across all your Windows, Android, and iOS with Micros...
Drive user reengagement across all your Windows, Android, and iOS with Micros...
 
Fluent Design: Evolving our Design System
Fluent Design: Evolving our Design SystemFluent Design: Evolving our Design System
Fluent Design: Evolving our Design System
 
Seizing the Mixed Reality Revolution – A past, present and future Mixed Reali...
Seizing the Mixed Reality Revolution – A past, present and future Mixed Reali...Seizing the Mixed Reality Revolution – A past, present and future Mixed Reali...
Seizing the Mixed Reality Revolution – A past, present and future Mixed Reali...
 
Windows 10 on ARM for developers
Windows 10 on ARM for developersWindows 10 on ARM for developers
Windows 10 on ARM for developers
 
Building Mixed reality with the new capabilities in Unity
Building Mixed reality with the new capabilities in UnityBuilding Mixed reality with the new capabilities in Unity
Building Mixed reality with the new capabilities in Unity
 
Set up a windows dev environment that feels like $HOME
Set up a windows dev environment that feels like $HOMESet up a windows dev environment that feels like $HOME
Set up a windows dev environment that feels like $HOME
 
Modernizing Twitter for Windows as a Progressive Web App
Modernizing Twitter for Windows as a Progressive Web AppModernizing Twitter for Windows as a Progressive Web App
Modernizing Twitter for Windows as a Progressive Web App
 
Holograms for trade education, built for students, by students with Immersive...
Holograms for trade education, built for students, by students with Immersive...Holograms for trade education, built for students, by students with Immersive...
Holograms for trade education, built for students, by students with Immersive...
 
Designing Inclusive Experiences to Maximize Reach and Satisfaction
Designing Inclusive Experiences to Maximize Reach and Satisfaction Designing Inclusive Experiences to Maximize Reach and Satisfaction
Designing Inclusive Experiences to Maximize Reach and Satisfaction
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

Build 2016 - P489 - Async Programming Improvements for C++ and UWP