// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Storage_Pickers_H #define WINRT_Windows_Storage_Pickers_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Storage.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.System.2.h" #include "winrt/impl/Windows.Storage.Pickers.2.h" namespace winrt::impl { template auto consume_Windows_Storage_Pickers_IFileOpenPicker::ViewMode() const { winrt::Windows::Storage::Pickers::PickerViewMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->get_ViewMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::ViewMode(winrt::Windows::Storage::Pickers::PickerViewMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->put_ViewMode(static_cast(value))); } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::SettingsIdentifier() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->get_SettingsIdentifier(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::SettingsIdentifier(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->put_SettingsIdentifier(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::SuggestedStartLocation() const { winrt::Windows::Storage::Pickers::PickerLocationId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->get_SuggestedStartLocation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::SuggestedStartLocation(winrt::Windows::Storage::Pickers::PickerLocationId const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->put_SuggestedStartLocation(static_cast(value))); } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::CommitButtonText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->get_CommitButtonText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::CommitButtonText(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->put_CommitButtonText(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::FileTypeFilter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->get_FileTypeFilter(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::PickSingleFileAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->PickSingleFileAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker::PickMultipleFilesAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker)->PickMultipleFilesAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker2::ContinuationData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker2)->get_ContinuationData(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPicker2::PickSingleFileAndContinue() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker2)->PickSingleFileAndContinue()); } template auto consume_Windows_Storage_Pickers_IFileOpenPicker2::PickMultipleFilesAndContinue() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker2)->PickMultipleFilesAndContinue()); } template auto consume_Windows_Storage_Pickers_IFileOpenPicker3::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPicker3)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPickerStatics::ResumePickSingleFileAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPickerStatics)->ResumePickSingleFileAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPickerStatics2::CreateForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPickerStatics2)->CreateForUser(*(void**)(&user), &result)); return winrt::Windows::Storage::Pickers::FileOpenPicker{ result, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileOpenPickerWithOperationId::PickSingleFileAsync(param::hstring const& pickerOperationId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileOpenPickerWithOperationId)->PickSingleFileAsync(*(void**)(&pickerOperationId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SettingsIdentifier() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_SettingsIdentifier(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SettingsIdentifier(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->put_SettingsIdentifier(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SuggestedStartLocation() const { winrt::Windows::Storage::Pickers::PickerLocationId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_SuggestedStartLocation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SuggestedStartLocation(winrt::Windows::Storage::Pickers::PickerLocationId const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->put_SuggestedStartLocation(static_cast(value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker::CommitButtonText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_CommitButtonText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::CommitButtonText(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->put_CommitButtonText(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker::FileTypeChoices() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_FileTypeChoices(&value)); return winrt::Windows::Foundation::Collections::IMap>{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::DefaultFileExtension() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_DefaultFileExtension(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::DefaultFileExtension(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->put_DefaultFileExtension(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SuggestedSaveFile() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_SuggestedSaveFile(&value)); return winrt::Windows::Storage::StorageFile{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SuggestedSaveFile(winrt::Windows::Storage::StorageFile const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->put_SuggestedSaveFile(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SuggestedFileName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->get_SuggestedFileName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker::SuggestedFileName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->put_SuggestedFileName(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker::PickSaveFileAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker)->PickSaveFileAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker2::ContinuationData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker2)->get_ContinuationData(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker2::PickSaveFileAndContinue() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker2)->PickSaveFileAndContinue()); } template auto consume_Windows_Storage_Pickers_IFileSavePicker3::EnterpriseId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker3)->get_EnterpriseId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePicker3::EnterpriseId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker3)->put_EnterpriseId(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFileSavePicker4::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePicker4)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFileSavePickerStatics::CreateForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFileSavePickerStatics)->CreateForUser(*(void**)(&user), &result)); return winrt::Windows::Storage::Pickers::FileSavePicker{ result, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPicker::ViewMode() const { winrt::Windows::Storage::Pickers::PickerViewMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->get_ViewMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Storage_Pickers_IFolderPicker::ViewMode(winrt::Windows::Storage::Pickers::PickerViewMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->put_ViewMode(static_cast(value))); } template auto consume_Windows_Storage_Pickers_IFolderPicker::SettingsIdentifier() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->get_SettingsIdentifier(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPicker::SettingsIdentifier(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->put_SettingsIdentifier(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFolderPicker::SuggestedStartLocation() const { winrt::Windows::Storage::Pickers::PickerLocationId value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->get_SuggestedStartLocation(reinterpret_cast(&value))); return value; } template auto consume_Windows_Storage_Pickers_IFolderPicker::SuggestedStartLocation(winrt::Windows::Storage::Pickers::PickerLocationId const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->put_SuggestedStartLocation(static_cast(value))); } template auto consume_Windows_Storage_Pickers_IFolderPicker::CommitButtonText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->get_CommitButtonText(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPicker::CommitButtonText(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->put_CommitButtonText(*(void**)(&value))); } template auto consume_Windows_Storage_Pickers_IFolderPicker::FileTypeFilter() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->get_FileTypeFilter(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPicker::PickSingleFolderAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker)->PickSingleFolderAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPicker2::ContinuationData() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker2)->get_ContinuationData(&value)); return winrt::Windows::Foundation::Collections::ValueSet{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPicker2::PickFolderAndContinue() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker2)->PickFolderAndContinue()); } template auto consume_Windows_Storage_Pickers_IFolderPicker3::User() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPicker3)->get_User(&value)); return winrt::Windows::System::User{ value, take_ownership_from_abi }; } template auto consume_Windows_Storage_Pickers_IFolderPickerStatics::CreateForUser(winrt::Windows::System::User const& user) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Storage::Pickers::IFolderPickerStatics)->CreateForUser(*(void**)(&user), &result)); return winrt::Windows::Storage::Pickers::FolderPicker{ result, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViewMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SettingsIdentifier(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SettingsIdentifier()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SettingsIdentifier(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SettingsIdentifier(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuggestedStartLocation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuggestedStartLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuggestedStartLocation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuggestedStartLocation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CommitButtonText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommitButtonText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CommitButtonText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CommitButtonText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FileTypeFilter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FileTypeFilter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickSingleFileAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PickSingleFileAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickMultipleFilesAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().PickMultipleFilesAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContinuationData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContinuationData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickSingleFileAndContinue() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PickSingleFileAndContinue(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickMultipleFilesAndContinue() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PickMultipleFilesAndContinue(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall ResumePickSingleFileAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ResumePickSingleFileAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall PickSingleFileAsync(void* pickerOperationId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PickSingleFileAsync(*reinterpret_cast(&pickerOperationId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SettingsIdentifier(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SettingsIdentifier()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SettingsIdentifier(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SettingsIdentifier(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuggestedStartLocation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuggestedStartLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuggestedStartLocation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuggestedStartLocation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CommitButtonText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommitButtonText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CommitButtonText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CommitButtonText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FileTypeChoices(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>>(this->shim().FileTypeChoices()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultFileExtension(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultFileExtension()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DefaultFileExtension(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DefaultFileExtension(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuggestedSaveFile(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuggestedSaveFile()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuggestedSaveFile(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuggestedSaveFile(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuggestedFileName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuggestedFileName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuggestedFileName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuggestedFileName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickSaveFileAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PickSaveFileAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContinuationData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContinuationData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickSaveFileAndContinue() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PickSaveFileAndContinue(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EnterpriseId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnterpriseId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EnterpriseId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnterpriseId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ViewMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SettingsIdentifier(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SettingsIdentifier()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SettingsIdentifier(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SettingsIdentifier(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SuggestedStartLocation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SuggestedStartLocation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SuggestedStartLocation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SuggestedStartLocation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CommitButtonText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommitButtonText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CommitButtonText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CommitButtonText(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FileTypeFilter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().FileTypeFilter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickSingleFolderAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().PickSingleFolderAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContinuationData(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContinuationData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PickFolderAndContinue() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PickFolderAndContinue(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_User(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().User()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateForUser(void* user, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateForUser(*reinterpret_cast(&user))); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Storage::Pickers { inline FileOpenPicker::FileOpenPicker() : FileOpenPicker(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto FileOpenPicker::ResumePickSingleFileAsync() { return impl::call_factory_cast(*)(IFileOpenPickerStatics const&), FileOpenPicker, IFileOpenPickerStatics>([](IFileOpenPickerStatics const& f) { return f.ResumePickSingleFileAsync(); }); } inline auto FileOpenPicker::CreateForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IFileOpenPickerStatics2 const& f) { return f.CreateForUser(user); }); } inline FileSavePicker::FileSavePicker() : FileSavePicker(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto FileSavePicker::CreateForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IFileSavePickerStatics const& f) { return f.CreateForUser(user); }); } inline FolderPicker::FolderPicker() : FolderPicker(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto FolderPicker::CreateForUser(winrt::Windows::System::User const& user) { return impl::call_factory([&](IFolderPickerStatics const& f) { return f.CreateForUser(user); }); } } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif