// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_VoiceCommands_H #define WINRT_Windows_ApplicationModel_VoiceCommands_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.ApplicationModel.h" #include "winrt/impl/Windows.ApplicationModel.AppService.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Globalization.2.h" #include "winrt/impl/Windows.Media.SpeechRecognition.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.ApplicationModel.VoiceCommands.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommand::CommandName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommand)->get_CommandName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommand::Properties() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommand)->get_Properties(&value)); return winrt::Windows::Foundation::Collections::IMapView>{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommand::SpeechRecognitionResult() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommand)->get_SpeechRecognitionResult(&value)); return winrt::Windows::Media::SpeechRecognition::SpeechRecognitionResult{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandCompletedEventArgs::Reason() const { winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandCompletionReason value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandCompletedEventArgs)->get_Reason(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandConfirmationResult::Confirmed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandConfirmationResult)->get_Confirmed(&value)); return value; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::Title() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_Title(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::Title(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_Title(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::TextLine1() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_TextLine1(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::TextLine1(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_TextLine1(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::TextLine2() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_TextLine2(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::TextLine2(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_TextLine2(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::TextLine3() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_TextLine3(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::TextLine3(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_TextLine3(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::Image() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_Image(&value)); return winrt::Windows::Storage::IStorageFile{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::Image(winrt::Windows::Storage::IStorageFile const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_Image(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::AppContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_AppContext(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::AppContext(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_AppContext(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::AppLaunchArgument() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_AppLaunchArgument(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::AppLaunchArgument(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_AppLaunchArgument(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::ContentTileType() const { winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->get_ContentTileType(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandContentTile::ContentTileType(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTileType const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandContentTile)->put_ContentTileType(static_cast(value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandDefinition::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandDefinition)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandDefinition::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandDefinition)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandDefinition::SetPhraseListAsync(param::hstring const& phraseListName, param::async_iterable const& phraseList) const { void* updateAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandDefinition)->SetPhraseListAsync(*(void**)(&phraseListName), *(void**)(&phraseList), &updateAction)); return winrt::Windows::Foundation::IAsyncAction{ updateAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandDefinitionManagerStatics::InstallCommandDefinitionsFromStorageFileAsync(winrt::Windows::Storage::StorageFile const& file) const { void* installAction{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandDefinitionManagerStatics)->InstallCommandDefinitionsFromStorageFileAsync(*(void**)(&file), &installAction)); return winrt::Windows::Foundation::IAsyncAction{ installAction, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandDefinitionManagerStatics::InstalledCommandDefinitions() const { void* voiceCommandDefinitions{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandDefinitionManagerStatics)->get_InstalledCommandDefinitions(&voiceCommandDefinitions)); return winrt::Windows::Foundation::Collections::IMapView{ voiceCommandDefinitions, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandDisambiguationResult::SelectedItem() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandDisambiguationResult)->get_SelectedItem(&value)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandContentTile{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->get_Message(&value)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::Message(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->put_Message(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::RepeatMessage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->get_RepeatMessage(&value)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::RepeatMessage(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->put_RepeatMessage(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::AppLaunchArgument() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->get_AppLaunchArgument(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::AppLaunchArgument(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->put_AppLaunchArgument(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponse::VoiceCommandContentTiles() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponse)->get_VoiceCommandContentTiles(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponseStatics::MaxSupportedVoiceCommandContentTiles() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponseStatics)->get_MaxSupportedVoiceCommandContentTiles(&value)); return value; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponseStatics::CreateResponse(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& userMessage) const { void* response{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponseStatics)->CreateResponse(*(void**)(&userMessage), &response)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse{ response, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponseStatics::CreateResponse(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& message, param::iterable const& contentTiles) const { void* response{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponseStatics)->CreateResponseWithTiles(*(void**)(&message), *(void**)(&contentTiles), &response)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse{ response, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponseStatics::CreateResponseForPrompt(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& message, winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& repeatMessage) const { void* response{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponseStatics)->CreateResponseForPrompt(*(void**)(&message), *(void**)(&repeatMessage), &response)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse{ response, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandResponseStatics::CreateResponseForPrompt(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& message, winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& repeatMessage, param::iterable const& contentTiles) const { void* response{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandResponseStatics)->CreateResponseForPromptWithTiles(*(void**)(&message), *(void**)(&repeatMessage), *(void**)(&contentTiles), &response)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse{ response, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::GetVoiceCommandAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->GetVoiceCommandAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::RequestConfirmationAsync(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse const& response) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->RequestConfirmationAsync(*(void**)(&response), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::RequestDisambiguationAsync(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse const& response) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->RequestDisambiguationAsync(*(void**)(&response), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::ReportProgressAsync(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse const& response) const { void* action{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->ReportProgressAsync(*(void**)(&response), &action)); return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::ReportSuccessAsync(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse const& response) const { void* action{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->ReportSuccessAsync(*(void**)(&response), &action)); return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::ReportFailureAsync(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse const& response) const { void* action{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->ReportFailureAsync(*(void**)(&response), &action)); return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::RequestAppLaunchAsync(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandResponse const& response) const { void* action{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->RequestAppLaunchAsync(*(void**)(&response), &action)); return winrt::Windows::Foundation::IAsyncAction{ action, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::Language() const { void* language{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->get_Language(&language)); return winrt::Windows::Globalization::Language{ language, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::VoiceCommandCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->add_VoiceCommandCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::VoiceCommandCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, VoiceCommandCompleted(handler)); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnection::VoiceCommandCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnection)->remove_VoiceCommandCompleted(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandServiceConnectionStatics::FromAppServiceTriggerDetails(winrt::Windows::ApplicationModel::AppService::AppServiceTriggerDetails const& triggerDetails) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandServiceConnectionStatics)->FromAppServiceTriggerDetails(*(void**)(&triggerDetails), &value)); return winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandServiceConnection{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandUserMessage::DisplayMessage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandUserMessage)->get_DisplayMessage(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandUserMessage::DisplayMessage(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandUserMessage)->put_DisplayMessage(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandUserMessage::SpokenMessage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandUserMessage)->get_SpokenMessage(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_VoiceCommands_IVoiceCommandUserMessage::SpokenMessage(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::VoiceCommands::IVoiceCommandUserMessage)->put_SpokenMessage(*(void**)(&value))); } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CommandName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommandName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Properties(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>>(this->shim().Properties()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpeechRecognitionResult(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpeechRecognitionResult()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Reason(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Reason()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Confirmed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Confirmed()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Title(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Title()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Title(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Title(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextLine1(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextLine1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TextLine1(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TextLine1(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextLine2(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextLine2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TextLine2(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TextLine2(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TextLine3(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TextLine3()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TextLine3(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TextLine3(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Image(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Image()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Image(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Image(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppContext(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppContext(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppLaunchArgument(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppLaunchArgument()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppLaunchArgument(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppLaunchArgument(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentTileType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentTileType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentTileType(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentTileType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Language(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetPhraseListAsync(void* phraseListName, void* phraseList, void** updateAction) noexcept final try { clear_abi(updateAction); typename D::abi_guard guard(this->shim()); *updateAction = detach_from(this->shim().SetPhraseListAsync(*reinterpret_cast(&phraseListName), *reinterpret_cast const*>(&phraseList))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall InstallCommandDefinitionsFromStorageFileAsync(void* file, void** installAction) noexcept final try { clear_abi(installAction); typename D::abi_guard guard(this->shim()); *installAction = detach_from(this->shim().InstallCommandDefinitionsFromStorageFileAsync(*reinterpret_cast(&file))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InstalledCommandDefinitions(void** voiceCommandDefinitions) noexcept final try { clear_abi(voiceCommandDefinitions); typename D::abi_guard guard(this->shim()); *voiceCommandDefinitions = detach_from>(this->shim().InstalledCommandDefinitions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedItem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItem()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Message(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Message(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RepeatMessage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RepeatMessage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RepeatMessage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RepeatMessage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AppLaunchArgument(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AppLaunchArgument()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AppLaunchArgument(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AppLaunchArgument(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VoiceCommandContentTiles(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().VoiceCommandContentTiles()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MaxSupportedVoiceCommandContentTiles(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxSupportedVoiceCommandContentTiles()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResponse(void* userMessage, void** response) noexcept final try { clear_abi(response); typename D::abi_guard guard(this->shim()); *response = detach_from(this->shim().CreateResponse(*reinterpret_cast(&userMessage))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResponseWithTiles(void* message, void* contentTiles, void** response) noexcept final try { clear_abi(response); typename D::abi_guard guard(this->shim()); *response = detach_from(this->shim().CreateResponse(*reinterpret_cast(&message), *reinterpret_cast const*>(&contentTiles))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResponseForPrompt(void* message, void* repeatMessage, void** response) noexcept final try { clear_abi(response); typename D::abi_guard guard(this->shim()); *response = detach_from(this->shim().CreateResponseForPrompt(*reinterpret_cast(&message), *reinterpret_cast(&repeatMessage))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateResponseForPromptWithTiles(void* message, void* repeatMessage, void* contentTiles, void** response) noexcept final try { clear_abi(response); typename D::abi_guard guard(this->shim()); *response = detach_from(this->shim().CreateResponseForPrompt(*reinterpret_cast(&message), *reinterpret_cast(&repeatMessage), *reinterpret_cast const*>(&contentTiles))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetVoiceCommandAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetVoiceCommandAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestConfirmationAsync(void* response, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestConfirmationAsync(*reinterpret_cast(&response))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestDisambiguationAsync(void* response, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestDisambiguationAsync(*reinterpret_cast(&response))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportProgressAsync(void* response, void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().ReportProgressAsync(*reinterpret_cast(&response))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportSuccessAsync(void* response, void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().ReportSuccessAsync(*reinterpret_cast(&response))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReportFailureAsync(void* response, void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().ReportFailureAsync(*reinterpret_cast(&response))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestAppLaunchAsync(void* response, void** action) noexcept final try { clear_abi(action); typename D::abi_guard guard(this->shim()); *action = detach_from(this->shim().RequestAppLaunchAsync(*reinterpret_cast(&response))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Language(void** language) noexcept final try { clear_abi(language); typename D::abi_guard guard(this->shim()); *language = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_VoiceCommandCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VoiceCommandCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VoiceCommandCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VoiceCommandCompleted(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromAppServiceTriggerDetails(void* triggerDetails, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FromAppServiceTriggerDetails(*reinterpret_cast(&triggerDetails))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DisplayMessage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayMessage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisplayMessage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisplayMessage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SpokenMessage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpokenMessage()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpokenMessage(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpokenMessage(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::VoiceCommands { inline VoiceCommandContentTile::VoiceCommandContentTile() : VoiceCommandContentTile(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto VoiceCommandDefinitionManager::InstallCommandDefinitionsFromStorageFileAsync(winrt::Windows::Storage::StorageFile const& file) { return impl::call_factory([&](IVoiceCommandDefinitionManagerStatics const& f) { return f.InstallCommandDefinitionsFromStorageFileAsync(file); }); } inline auto VoiceCommandDefinitionManager::InstalledCommandDefinitions() { return impl::call_factory_cast(*)(IVoiceCommandDefinitionManagerStatics const&), VoiceCommandDefinitionManager, IVoiceCommandDefinitionManagerStatics>([](IVoiceCommandDefinitionManagerStatics const& f) { return f.InstalledCommandDefinitions(); }); } inline auto VoiceCommandResponse::MaxSupportedVoiceCommandContentTiles() { return impl::call_factory_cast([](IVoiceCommandResponseStatics const& f) { return f.MaxSupportedVoiceCommandContentTiles(); }); } inline auto VoiceCommandResponse::CreateResponse(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& userMessage) { return impl::call_factory([&](IVoiceCommandResponseStatics const& f) { return f.CreateResponse(userMessage); }); } inline auto VoiceCommandResponse::CreateResponse(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& message, param::iterable const& contentTiles) { return impl::call_factory([&](IVoiceCommandResponseStatics const& f) { return f.CreateResponse(message, contentTiles); }); } inline auto VoiceCommandResponse::CreateResponseForPrompt(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& message, winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& repeatMessage) { return impl::call_factory([&](IVoiceCommandResponseStatics const& f) { return f.CreateResponseForPrompt(message, repeatMessage); }); } inline auto VoiceCommandResponse::CreateResponseForPrompt(winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& message, winrt::Windows::ApplicationModel::VoiceCommands::VoiceCommandUserMessage const& repeatMessage, param::iterable const& contentTiles) { return impl::call_factory([&](IVoiceCommandResponseStatics const& f) { return f.CreateResponseForPrompt(message, repeatMessage, contentTiles); }); } inline auto VoiceCommandServiceConnection::FromAppServiceTriggerDetails(winrt::Windows::ApplicationModel::AppService::AppServiceTriggerDetails const& triggerDetails) { return impl::call_factory([&](IVoiceCommandServiceConnectionStatics const& f) { return f.FromAppServiceTriggerDetails(triggerDetails); }); } inline VoiceCommandUserMessage::VoiceCommandUserMessage() : VoiceCommandUserMessage(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } } 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 {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif