19#include <windows.foundation.h>
20#include <windows.storage.h>
49inline HRESULT Await(
const Microsoft::WRL::ComPtr<T> &Operation)
54 Microsoft::WRL::ComPtr<ABI::Windows::Foundation::IAsyncInfo> Info;
55 HRESULT Result=Operation.As(&Info);
59 ABI::Windows::Foundation::AsyncStatus Status;
60 while (SUCCEEDED(Result=Info->get_Status(&Status)) && Status==Started)
63 if (FAILED(Result) || Status!=Completed) {
65 Result=Info->get_ErrorCode(&Error_Code);
74HRESULT Add_Item_To_FUA(Microsoft::WRL::Wrappers::HStringReference Path, Microsoft::WRL::ComPtr<ABI::Windows::Storage::IStorageItem> &Item);
75HRESULT Get_File(Microsoft::WRL::Wrappers::HStringReference File_Name, Microsoft::WRL::ComPtr<ABI::Windows::Storage::IStorageFile> &File);
76HRESULT Get_Folder(Microsoft::WRL::Wrappers::HStringReference Folder_Name, Microsoft::WRL::ComPtr<ABI::Windows::Storage::IStorageFolder> &Folder);
String manipulation (based on std::(w)string)
Definition Ztring.h:50
Definition BitStream.h:24
Ztring OpenFolder_Show(void *Handle, const Ztring &Title, const Ztring &Caption)
void Shell_Execute(const Ztring &ToExecute)