19 #include <windows.foundation.h> 20 #include <windows.storage.h> 49 #if defined(WINDOWS) && !defined(WINDOWS_UWP) && !defined(UNICODE) && !defined(ZENLIB_USEWX) 53 std::wstring FileName_To_Wide_Existing(
const Ztring &File_Name);
60 Ztring
OpenFolder_Show(
void* Handle,
const Ztring &Title,
const Ztring &Caption);
67 inline HRESULT Await(
const Microsoft::WRL::ComPtr<T> &Operation)
72 Microsoft::WRL::ComPtr<ABI::Windows::Foundation::IAsyncInfo> Info;
73 HRESULT Result=Operation.As(&Info);
77 ABI::Windows::Foundation::AsyncStatus Status;
78 while (SUCCEEDED(Result=Info->get_Status(&Status)) && Status==Started)
81 if (FAILED(Result) || Status!=Completed) {
83 Result=Info->get_ErrorCode(&Error_Code);
92 HRESULT Add_Item_To_FUA(Microsoft::WRL::Wrappers::HStringReference Path, Microsoft::WRL::ComPtr<ABI::Windows::Storage::IStorageItem> &Item);
93 HRESULT Get_File(Microsoft::WRL::Wrappers::HStringReference File_Name, Microsoft::WRL::ComPtr<ABI::Windows::Storage::IStorageFile> &File);
94 HRESULT Get_Folder(Microsoft::WRL::Wrappers::HStringReference Folder_Name, Microsoft::WRL::ComPtr<ABI::Windows::Storage::IStorageFolder> &Folder);
void Shell_Execute(const Ztring &ToExecute)
Definition: BitStream.h:23
Ztring FileName_From_Native(const char *File_Name)
std::string FileName_To_Native(const Ztring &File_Name)
Ztring OpenFolder_Show(void *Handle, const Ztring &Title, const Ztring &Caption)