// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Storage_Pickers_Provider_0_H #define WINRT_Windows_Storage_Pickers_Provider_0_H WINRT_EXPORT namespace winrt::Windows::Foundation { struct EventRegistrationToken; template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; } WINRT_EXPORT namespace winrt::Windows::Storage { struct IStorageFile; } WINRT_EXPORT namespace winrt::Windows::Storage::Pickers::Provider { enum class AddFileResult : int32_t { Added = 0, AlreadyAdded = 1, NotAllowed = 2, Unavailable = 3, }; enum class FileSelectionMode : int32_t { Single = 0, Multiple = 1, }; enum class SetFileNameResult : int32_t { Succeeded = 0, NotAllowed = 1, Unavailable = 2, }; struct IFileOpenPickerUI; struct IFileRemovedEventArgs; struct IFileSavePickerUI; struct IPickerClosingDeferral; struct IPickerClosingEventArgs; struct IPickerClosingOperation; struct ITargetFileRequest; struct ITargetFileRequestDeferral; struct ITargetFileRequestedEventArgs; struct FileOpenPickerUI; struct FileRemovedEventArgs; struct FileSavePickerUI; struct PickerClosingDeferral; struct PickerClosingEventArgs; struct PickerClosingOperation; struct TargetFileRequest; struct TargetFileRequestDeferral; struct TargetFileRequestedEventArgs; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.FileOpenPickerUI"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.FileRemovedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.FileSavePickerUI"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.PickerClosingDeferral"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.PickerClosingOperation"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.TargetFileRequest"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.TargetFileRequestDeferral"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.AddFileResult"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.FileSelectionMode"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.SetFileNameResult"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.IFileOpenPickerUI"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.IFileRemovedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.IFileSavePickerUI"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.IPickerClosingDeferral"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.IPickerClosingEventArgs"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.IPickerClosingOperation"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.ITargetFileRequest"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.ITargetFileRequestDeferral"; template <> inline constexpr auto& name_v = L"Windows.Storage.Pickers.Provider.ITargetFileRequestedEventArgs"; template <> inline constexpr guid guid_v{ 0xDDA45A10,0xF9D4,0x40C4,{ 0x8A,0xF5,0xC5,0xB6,0xB5,0xA6,0x1D,0x1D } }; // DDA45A10-F9D4-40C4-8AF5-C5B6B5A61D1D template <> inline constexpr guid guid_v{ 0x13043DA7,0x7FCA,0x4C2B,{ 0x9E,0xCA,0x68,0x90,0xF9,0xF0,0x01,0x85 } }; // 13043DA7-7FCA-4C2B-9ECA-6890F9F00185 template <> inline constexpr guid guid_v{ 0x9656C1E7,0x3E56,0x43CC,{ 0x8A,0x39,0x33,0xC7,0x3D,0x9D,0x54,0x2B } }; // 9656C1E7-3E56-43CC-8A39-33C73D9D542B template <> inline constexpr guid guid_v{ 0x7AF7F71E,0x1A67,0x4A31,{ 0xAE,0x80,0xE9,0x07,0x70,0x8A,0x61,0x9B } }; // 7AF7F71E-1A67-4A31-AE80-E907708A619B template <> inline constexpr guid guid_v{ 0x7E59F224,0xB332,0x4F12,{ 0x8B,0x9F,0xA8,0xC2,0xF0,0x6B,0x32,0xCD } }; // 7E59F224-B332-4F12-8B9F-A8C2F06B32CD template <> inline constexpr guid guid_v{ 0x4CE9FB84,0xBEEE,0x4E39,{ 0xA7,0x73,0xFC,0x5F,0x0E,0xAE,0x32,0x8D } }; // 4CE9FB84-BEEE-4E39-A773-FC5F0EAE328D template <> inline constexpr guid guid_v{ 0x42BD3355,0x7F88,0x478B,{ 0x8E,0x81,0x69,0x0B,0x20,0x34,0x06,0x78 } }; // 42BD3355-7F88-478B-8E81-690B20340678 template <> inline constexpr guid guid_v{ 0x4AEE9D91,0xBF15,0x4DA9,{ 0x95,0xF6,0xF6,0xB7,0xD5,0x58,0x22,0x5B } }; // 4AEE9D91-BF15-4DA9-95F6-F6B7D558225B template <> inline constexpr guid guid_v{ 0xB163DBC1,0x1B51,0x4C89,{ 0xA5,0x91,0x0F,0xD4,0x0B,0x3C,0x57,0xC9 } }; // B163DBC1-1B51-4C89-A591-0FD40B3C57C9 template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::IFileOpenPickerUI; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::IFileRemovedEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::IFileSavePickerUI; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::IPickerClosingDeferral; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::IPickerClosingEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::IPickerClosingOperation; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::ITargetFileRequest; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::ITargetFileRequestDeferral; }; template <> struct default_interface{ using type = winrt::Windows::Storage::Pickers::Provider::ITargetFileRequestedEventArgs; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall AddFile(void*, void*, int32_t*) noexcept = 0; virtual int32_t __stdcall RemoveFile(void*) noexcept = 0; virtual int32_t __stdcall ContainsFile(void*, bool*) noexcept = 0; virtual int32_t __stdcall CanAddFile(void*, bool*) noexcept = 0; virtual int32_t __stdcall get_AllowedFileTypes(void**) noexcept = 0; virtual int32_t __stdcall get_SelectionMode(int32_t*) noexcept = 0; virtual int32_t __stdcall get_SettingsIdentifier(void**) noexcept = 0; virtual int32_t __stdcall get_Title(void**) noexcept = 0; virtual int32_t __stdcall put_Title(void*) noexcept = 0; virtual int32_t __stdcall add_FileRemoved(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_FileRemoved(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_Closing(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_Closing(winrt::event_token) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Id(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Title(void**) noexcept = 0; virtual int32_t __stdcall put_Title(void*) noexcept = 0; virtual int32_t __stdcall get_AllowedFileTypes(void**) noexcept = 0; virtual int32_t __stdcall get_SettingsIdentifier(void**) noexcept = 0; virtual int32_t __stdcall get_FileName(void**) noexcept = 0; virtual int32_t __stdcall TrySetFileName(void*, int32_t*) noexcept = 0; virtual int32_t __stdcall add_FileNameChanged(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_FileNameChanged(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_TargetFileRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_TargetFileRequested(winrt::event_token) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall Complete() noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_ClosingOperation(void**) noexcept = 0; virtual int32_t __stdcall get_IsCanceled(bool*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall GetDeferral(void**) noexcept = 0; virtual int32_t __stdcall get_Deadline(int64_t*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_TargetFile(void**) noexcept = 0; virtual int32_t __stdcall put_TargetFile(void*) noexcept = 0; virtual int32_t __stdcall GetDeferral(void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall Complete() noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_Request(void**) noexcept = 0; }; }; template struct consume_Windows_Storage_Pickers_Provider_IFileOpenPickerUI { auto AddFile(param::hstring const& id, winrt::Windows::Storage::IStorageFile const& file) const; auto RemoveFile(param::hstring const& id) const; auto ContainsFile(param::hstring const& id) const; auto CanAddFile(winrt::Windows::Storage::IStorageFile const& file) const; [[nodiscard]] auto AllowedFileTypes() const; [[nodiscard]] auto SelectionMode() const; [[nodiscard]] auto SettingsIdentifier() const; [[nodiscard]] auto Title() const; auto Title(param::hstring const& value) const; auto FileRemoved(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using FileRemoved_revoker = impl::event_revoker::remove_FileRemoved>; [[nodiscard]] auto FileRemoved(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto FileRemoved(winrt::event_token const& token) const noexcept; auto Closing(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using Closing_revoker = impl::event_revoker::remove_Closing>; [[nodiscard]] auto Closing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto Closing(winrt::event_token const& token) const noexcept; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_IFileOpenPickerUI; }; template struct consume_Windows_Storage_Pickers_Provider_IFileRemovedEventArgs { [[nodiscard]] auto Id() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_IFileRemovedEventArgs; }; template struct consume_Windows_Storage_Pickers_Provider_IFileSavePickerUI { [[nodiscard]] auto Title() const; auto Title(param::hstring const& value) const; [[nodiscard]] auto AllowedFileTypes() const; [[nodiscard]] auto SettingsIdentifier() const; [[nodiscard]] auto FileName() const; auto TrySetFileName(param::hstring const& value) const; auto FileNameChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using FileNameChanged_revoker = impl::event_revoker::remove_FileNameChanged>; [[nodiscard]] auto FileNameChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto FileNameChanged(winrt::event_token const& token) const noexcept; auto TargetFileRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using TargetFileRequested_revoker = impl::event_revoker::remove_TargetFileRequested>; [[nodiscard]] auto TargetFileRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto TargetFileRequested(winrt::event_token const& token) const noexcept; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_IFileSavePickerUI; }; template struct consume_Windows_Storage_Pickers_Provider_IPickerClosingDeferral { auto Complete() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_IPickerClosingDeferral; }; template struct consume_Windows_Storage_Pickers_Provider_IPickerClosingEventArgs { [[nodiscard]] auto ClosingOperation() const; [[nodiscard]] auto IsCanceled() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_IPickerClosingEventArgs; }; template struct consume_Windows_Storage_Pickers_Provider_IPickerClosingOperation { auto GetDeferral() const; [[nodiscard]] auto Deadline() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_IPickerClosingOperation; }; template struct consume_Windows_Storage_Pickers_Provider_ITargetFileRequest { [[nodiscard]] auto TargetFile() const; auto TargetFile(winrt::Windows::Storage::IStorageFile const& value) const; auto GetDeferral() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_ITargetFileRequest; }; template struct consume_Windows_Storage_Pickers_Provider_ITargetFileRequestDeferral { auto Complete() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_ITargetFileRequestDeferral; }; template struct consume_Windows_Storage_Pickers_Provider_ITargetFileRequestedEventArgs { [[nodiscard]] auto Request() const; }; template <> struct consume { template using type = consume_Windows_Storage_Pickers_Provider_ITargetFileRequestedEventArgs; }; } #endif