// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_ApplicationModel_ConversationalAgent_H #define WINRT_Windows_ApplicationModel_ConversationalAgent_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.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Media.Audio.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.ApplicationModel.ConversationalAgent.2.h" namespace winrt::impl { template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::SignalId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_SignalId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ModelId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_ModelId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::DisplayName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_DisplayName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::IsActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_IsActive(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::SetEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->SetEnabled(value)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::SetEnabledAsync(bool value) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->SetEnabledAsync(value, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::AvailabilityInfo() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_AvailabilityInfo(&value)); return winrt::Windows::ApplicationModel::ConversationalAgent::DetectionConfigurationAvailabilityInfo{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::AvailabilityChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->add_AvailabilityChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::AvailabilityChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AvailabilityChanged(handler)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::AvailabilityChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->remove_AvailabilityChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::SetModelData(param::hstring const& dataType, winrt::Windows::Storage::Streams::IInputStream const& data) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->SetModelData(*(void**)(&dataType), *(void**)(&data))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::SetModelDataAsync(param::hstring const& dataType, winrt::Windows::Storage::Streams::IInputStream const& data) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->SetModelDataAsync(*(void**)(&dataType), *(void**)(&data), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::GetModelDataType() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->GetModelDataType(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::GetModelDataTypeAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->GetModelDataTypeAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::GetModelData() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->GetModelData(&result)); return winrt::Windows::Storage::Streams::IInputStream{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::GetModelDataAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->GetModelDataAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ClearModelData() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->ClearModelData()); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ClearModelDataAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->ClearModelDataAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::TrainingStepsCompleted() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_TrainingStepsCompleted(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::TrainingStepsRemaining() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_TrainingStepsRemaining(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::TrainingDataFormat() const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionTrainingDataFormat value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->get_TrainingDataFormat(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ApplyTrainingData(winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionTrainingDataFormat const& trainingDataFormat, winrt::Windows::Storage::Streams::IInputStream const& trainingData) const { winrt::Windows::ApplicationModel::ConversationalAgent::DetectionConfigurationTrainingStatus result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->ApplyTrainingData(static_cast(trainingDataFormat), *(void**)(&trainingData), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ApplyTrainingDataAsync(winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionTrainingDataFormat const& trainingDataFormat, winrt::Windows::Storage::Streams::IInputStream const& trainingData) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->ApplyTrainingDataAsync(static_cast(trainingDataFormat), *(void**)(&trainingData), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ClearTrainingData() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->ClearTrainingData()); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration::ClearTrainingDataAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration)->ClearTrainingDataAsync(&operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration2::SetModelDataWithResult(param::hstring const& dataType, winrt::Windows::Storage::Streams::IInputStream const& data) const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfigurationSetModelDataResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration2)->SetModelDataWithResult(*(void**)(&dataType), *(void**)(&data), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration2::SetModelDataWithResultAsync(param::hstring const& dataType, winrt::Windows::Storage::Streams::IInputStream const& data) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration2)->SetModelDataWithResultAsync(*(void**)(&dataType), *(void**)(&data), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration2::SetEnabledWithResultAsync(bool value) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration2)->SetEnabledWithResultAsync(value, &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration2::SetEnabledWithResult(bool value) const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfigurationStateChangeResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration2)->SetEnabledWithResult(value, reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfiguration2::TrainingStepCompletionMaxAllowedTime() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfiguration2)->get_TrainingStepCompletionMaxAllowedTime(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfigurationCreationResult::Status() const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfigurationCreationStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfigurationCreationResult)->get_Status(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetectionConfigurationCreationResult::Configuration() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetectionConfigurationCreationResult)->get_Configuration(&value)); return winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfiguration{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::ProviderId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->get_ProviderId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::Kind() const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectorKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::CanCreateConfigurations() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->get_CanCreateConfigurations(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::SupportedModelDataTypes() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->get_SupportedModelDataTypes(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::SupportedTrainingDataFormats() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->get_SupportedTrainingDataFormats(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::SupportedPowerStates() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->get_SupportedPowerStates(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::GetSupportedModelIdsForSignalId(param::hstring const& signalId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->GetSupportedModelIdsForSignalId(*(void**)(&signalId), &result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::GetSupportedModelIdsForSignalIdAsync(param::hstring const& signalId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->GetSupportedModelIdsForSignalIdAsync(*(void**)(&signalId), &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::CreateConfiguration(param::hstring const& signalId, param::hstring const& modelId, param::hstring const& displayName) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->CreateConfiguration(*(void**)(&signalId), *(void**)(&modelId), *(void**)(&displayName))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::CreateConfigurationAsync(param::hstring const& signalId, param::hstring const& modelId, param::hstring const& displayName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->CreateConfigurationAsync(*(void**)(&signalId), *(void**)(&modelId), *(void**)(&displayName), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::GetConfigurations() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->GetConfigurations(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::GetConfigurationsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->GetConfigurationsAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::GetConfiguration(param::hstring const& signalId, param::hstring const& modelId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->GetConfiguration(*(void**)(&signalId), *(void**)(&modelId), &result)); return winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfiguration{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::GetConfigurationAsync(param::hstring const& signalId, param::hstring const& modelId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->GetConfigurationAsync(*(void**)(&signalId), *(void**)(&modelId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::RemoveConfiguration(param::hstring const& signalId, param::hstring const& modelId) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->RemoveConfiguration(*(void**)(&signalId), *(void**)(&modelId))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector::RemoveConfigurationAsync(param::hstring const& signalId, param::hstring const& modelId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector)->RemoveConfigurationAsync(*(void**)(&signalId), *(void**)(&modelId), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::GetAvailableModelIdsForSignalIdAsync(param::hstring const& signalId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->GetAvailableModelIdsForSignalIdAsync(*(void**)(&signalId), &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::GetAvailableModelIdsForSignalId(param::hstring const& signalId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->GetAvailableModelIdsForSignalId(*(void**)(&signalId), &result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::CreateConfigurationWithResultAsync(param::hstring const& signalId, param::hstring const& modelId, param::hstring const& displayName) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->CreateConfigurationWithResultAsync(*(void**)(&signalId), *(void**)(&modelId), *(void**)(&displayName), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::CreateConfigurationWithResult(param::hstring const& signalId, param::hstring const& modelId, param::hstring const& displayName) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->CreateConfigurationWithResult(*(void**)(&signalId), *(void**)(&modelId), *(void**)(&displayName), &result)); return winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfigurationCreationResult{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::RemoveConfigurationWithResultAsync(param::hstring const& signalId, param::hstring const& modelId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->RemoveConfigurationWithResultAsync(*(void**)(&signalId), *(void**)(&modelId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::RemoveConfigurationWithResult(param::hstring const& signalId, param::hstring const& modelId) const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectionConfigurationRemovalResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->RemoveConfigurationWithResult(*(void**)(&signalId), *(void**)(&modelId), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IActivationSignalDetector2::DetectorId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IActivationSignalDetector2)->get_DetectorId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManager::GetAllActivationSignalDetectors() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManager)->GetAllActivationSignalDetectors(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManager::GetAllActivationSignalDetectorsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManager)->GetAllActivationSignalDetectorsAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManager::GetActivationSignalDetectors(winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectorKind const& kind) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManager)->GetActivationSignalDetectors(static_cast(kind), &result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManager::GetActivationSignalDetectorsAsync(winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectorKind const& kind) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManager)->GetActivationSignalDetectorsAsync(static_cast(kind), &operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManager2::GetActivationSignalDetectorFromId(param::hstring const& detectorId) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManager2)->GetActivationSignalDetectorFromId(*(void**)(&detectorId), &result)); return winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetector{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManager2::GetActivationSignalDetectorFromIdAsync(param::hstring const& detectorId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManager2)->GetActivationSignalDetectorFromIdAsync(*(void**)(&detectorId), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentDetectorManagerStatics::Default() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentDetectorManagerStatics)->get_Default(&value)); return winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentDetectorManager{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SessionInterrupted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->add_SessionInterrupted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SessionInterrupted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SessionInterrupted(handler)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SessionInterrupted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->remove_SessionInterrupted(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SignalDetected(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->add_SignalDetected(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SignalDetected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SignalDetected(handler)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SignalDetected(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->remove_SignalDetected(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SystemStateChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->add_SystemStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SystemStateChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, SystemStateChanged(handler)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SystemStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->remove_SystemStateChanged(impl::bind_in(token)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::AgentState() const { winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_AgentState(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::Signal() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_Signal(&value)); return winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentSignal{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::IsIndicatorLightAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_IsIndicatorLightAvailable(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::IsScreenAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_IsScreenAvailable(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::IsUserAuthenticated() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_IsUserAuthenticated(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::IsVoiceActivationAvailable() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_IsVoiceActivationAvailable(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::IsInterruptible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_IsInterruptible(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::IsInterrupted() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->get_IsInterrupted(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::RequestInterruptibleAsync(bool interruptible) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->RequestInterruptibleAsync(interruptible, &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::RequestInterruptible(bool interruptible) const { winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentSessionUpdateResponse result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->RequestInterruptible(interruptible, reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::RequestAgentStateChangeAsync(winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentState const& state) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->RequestAgentStateChangeAsync(static_cast(state), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::RequestAgentStateChange(winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentState const& state) const { winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentSessionUpdateResponse result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->RequestAgentStateChange(static_cast(state), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::RequestForegroundActivationAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->RequestForegroundActivationAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::RequestForegroundActivation() const { winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentSessionUpdateResponse result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->RequestForegroundActivation(reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetAudioClientAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetAudioClientAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetAudioClient() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetAudioClient(&result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::CreateAudioDeviceInputNodeAsync(winrt::Windows::Media::Audio::AudioGraph const& graph) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->CreateAudioDeviceInputNodeAsync(*(void**)(&graph), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::CreateAudioDeviceInputNode(winrt::Windows::Media::Audio::AudioGraph const& graph) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->CreateAudioDeviceInputNode(*(void**)(&graph), &result)); return winrt::Windows::Media::Audio::AudioDeviceInputNode{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetAudioCaptureDeviceIdAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetAudioCaptureDeviceIdAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetAudioCaptureDeviceId() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetAudioCaptureDeviceId(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetAudioRenderDeviceIdAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetAudioRenderDeviceIdAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetAudioRenderDeviceId() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetAudioRenderDeviceId(&result)); return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetSignalModelIdAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetSignalModelIdAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetSignalModelId() const { uint32_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetSignalModelId(&result)); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SetSignalModelIdAsync(uint32_t signalModelId) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->SetSignalModelIdAsync(signalModelId, &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::SetSignalModelId(uint32_t signalModelId) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->SetSignalModelId(signalModelId, &result)); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetSupportedSignalModelIdsAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetSupportedSignalModelIdsAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession::GetSupportedSignalModelIds() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession)->GetSupportedSignalModelIds(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession2::RequestActivationAsync(winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentActivationKind const& activationKind) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession2)->RequestActivationAsync(static_cast(activationKind), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession2::RequestActivation(winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentActivationKind const& activationKind) const { winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentActivationResult result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession2)->RequestActivation(static_cast(activationKind), reinterpret_cast(&result))); return result; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession2::SetSupportLockScreenActivationAsync(bool lockScreenActivationSupported) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession2)->SetSupportLockScreenActivationAsync(lockScreenActivationSupported, &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession2::SetSupportLockScreenActivation(bool lockScreenActivationSupported) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession2)->SetSupportLockScreenActivation(lockScreenActivationSupported)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession2::GetMissingPrerequisites() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession2)->GetMissingPrerequisites(&result)); return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSession2::GetMissingPrerequisitesAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSession2)->GetMissingPrerequisitesAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation>{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSessionStatics::GetCurrentSessionAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSessionStatics)->GetCurrentSessionAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSessionStatics::GetCurrentSessionSync() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSessionStatics)->GetCurrentSessionSync(&result)); return winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentSession{ result, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::IsSignalVerificationRequired() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->get_IsSignalVerificationRequired(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::IsSignalVerificationRequired(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->put_IsSignalVerificationRequired(value)); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->get_SignalId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalId(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->put_SignalId(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalName() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->get_SignalName(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalName(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->put_SignalName(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->get_SignalContext(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalContext(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->put_SignalContext(*(void**)(&value))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalStart() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->get_SignalStart(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalStart(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->put_SignalStart(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalEnd() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->get_SignalEnd(put_abi(value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal::SignalEnd(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal)->put_SignalEnd(impl::bind_in(value))); } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal2::DetectorId() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal2)->get_DetectorId(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSignal2::DetectorKind() const { winrt::Windows::ApplicationModel::ConversationalAgent::ActivationSignalDetectorKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSignal2)->get_DetectorKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IConversationalAgentSystemStateChangedEventArgs::SystemStateChangeType() const { winrt::Windows::ApplicationModel::ConversationalAgent::ConversationalAgentSystemStateChangeType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IConversationalAgentSystemStateChangedEventArgs)->get_SystemStateChangeType(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IDetectionConfigurationAvailabilityChangedEventArgs::Kind() const { winrt::Windows::ApplicationModel::ConversationalAgent::DetectionConfigurationAvailabilityChangeKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IDetectionConfigurationAvailabilityChangedEventArgs)->get_Kind(reinterpret_cast(&value))); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IDetectionConfigurationAvailabilityInfo::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IDetectionConfigurationAvailabilityInfo)->get_IsEnabled(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IDetectionConfigurationAvailabilityInfo::HasSystemResourceAccess() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IDetectionConfigurationAvailabilityInfo)->get_HasSystemResourceAccess(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IDetectionConfigurationAvailabilityInfo::HasPermission() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IDetectionConfigurationAvailabilityInfo)->get_HasPermission(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IDetectionConfigurationAvailabilityInfo::HasLockScreenPermission() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IDetectionConfigurationAvailabilityInfo)->get_HasLockScreenPermission(&value)); return value; } template auto consume_Windows_ApplicationModel_ConversationalAgent_IDetectionConfigurationAvailabilityInfo2::UnavailableSystemResources() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::ApplicationModel::ConversationalAgent::IDetectionConfigurationAvailabilityInfo2)->get_UnavailableSystemResources(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SignalId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ModelId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ModelId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisplayName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisplayName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEnabledAsync(bool value, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SetEnabledAsync(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AvailabilityInfo(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AvailabilityInfo()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_AvailabilityChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AvailabilityChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AvailabilityChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AvailabilityChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall SetModelData(void* dataType, void* data) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetModelData(*reinterpret_cast(&dataType), *reinterpret_cast(&data)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetModelDataAsync(void* dataType, void* data, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SetModelDataAsync(*reinterpret_cast(&dataType), *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetModelDataType(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetModelDataType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetModelDataTypeAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetModelDataTypeAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetModelData(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetModelData()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetModelDataAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetModelDataAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearModelData() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearModelData(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearModelDataAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().ClearModelDataAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TrainingStepsCompleted(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TrainingStepsCompleted()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TrainingStepsRemaining(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TrainingStepsRemaining()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TrainingDataFormat(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TrainingDataFormat()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApplyTrainingData(int32_t trainingDataFormat, void* trainingData, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ApplyTrainingData(*reinterpret_cast(&trainingDataFormat), *reinterpret_cast(&trainingData))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ApplyTrainingDataAsync(int32_t trainingDataFormat, void* trainingData, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().ApplyTrainingDataAsync(*reinterpret_cast(&trainingDataFormat), *reinterpret_cast(&trainingData))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearTrainingData() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearTrainingData(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearTrainingDataAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().ClearTrainingDataAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetModelDataWithResult(void* dataType, void* data, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetModelDataWithResult(*reinterpret_cast(&dataType), *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetModelDataWithResultAsync(void* dataType, void* data, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SetModelDataWithResultAsync(*reinterpret_cast(&dataType), *reinterpret_cast(&data))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEnabledWithResultAsync(bool value, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SetEnabledWithResultAsync(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetEnabledWithResult(bool value, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetEnabledWithResult(value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TrainingStepCompletionMaxAllowedTime(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TrainingStepCompletionMaxAllowedTime()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Status(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Status()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Configuration(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Configuration()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ProviderId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProviderId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanCreateConfigurations(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanCreateConfigurations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedModelDataTypes(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedModelDataTypes()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedTrainingDataFormats(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedTrainingDataFormats()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SupportedPowerStates(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SupportedPowerStates()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSupportedModelIdsForSignalId(void* signalId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetSupportedModelIdsForSignalId(*reinterpret_cast(&signalId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSupportedModelIdsForSignalIdAsync(void* signalId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetSupportedModelIdsForSignalIdAsync(*reinterpret_cast(&signalId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateConfiguration(void* signalId, void* modelId, void* displayName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CreateConfiguration(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId), *reinterpret_cast(&displayName)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateConfigurationAsync(void* signalId, void* modelId, void* displayName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().CreateConfigurationAsync(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId), *reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConfigurations(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetConfigurations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConfigurationsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetConfigurationsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConfiguration(void* signalId, void* modelId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetConfiguration(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetConfigurationAsync(void* signalId, void* modelId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetConfigurationAsync(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveConfiguration(void* signalId, void* modelId) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveConfiguration(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveConfigurationAsync(void* signalId, void* modelId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().RemoveConfigurationAsync(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetAvailableModelIdsForSignalIdAsync(void* signalId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetAvailableModelIdsForSignalIdAsync(*reinterpret_cast(&signalId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAvailableModelIdsForSignalId(void* signalId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAvailableModelIdsForSignalId(*reinterpret_cast(&signalId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateConfigurationWithResultAsync(void* signalId, void* modelId, void* displayName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateConfigurationWithResultAsync(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId), *reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateConfigurationWithResult(void* signalId, void* modelId, void* displayName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateConfigurationWithResult(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId), *reinterpret_cast(&displayName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveConfigurationWithResultAsync(void* signalId, void* modelId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RemoveConfigurationWithResultAsync(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveConfigurationWithResult(void* signalId, void* modelId, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RemoveConfigurationWithResult(*reinterpret_cast(&signalId), *reinterpret_cast(&modelId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DetectorId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DetectorId()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetAllActivationSignalDetectors(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetAllActivationSignalDetectors()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAllActivationSignalDetectorsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetAllActivationSignalDetectorsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetActivationSignalDetectors(int32_t kind, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetActivationSignalDetectors(*reinterpret_cast(&kind))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetActivationSignalDetectorsAsync(int32_t kind, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetActivationSignalDetectorsAsync(*reinterpret_cast(&kind))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetActivationSignalDetectorFromId(void* detectorId, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetActivationSignalDetectorFromId(*reinterpret_cast(&detectorId))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetActivationSignalDetectorFromIdAsync(void* detectorId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetActivationSignalDetectorFromIdAsync(*reinterpret_cast(&detectorId))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Default(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Default()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_SessionInterrupted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SessionInterrupted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SessionInterrupted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SessionInterrupted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SignalDetected(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SignalDetected(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SignalDetected(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SignalDetected(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SystemStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SystemStateChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SystemStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SystemStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall get_AgentState(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AgentState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Signal(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Signal()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsIndicatorLightAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIndicatorLightAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsScreenAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScreenAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsUserAuthenticated(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsUserAuthenticated()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsVoiceActivationAvailable(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsVoiceActivationAvailable()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInterruptible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInterruptible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsInterrupted(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsInterrupted()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestInterruptibleAsync(bool interruptible, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestInterruptibleAsync(interruptible)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestInterruptible(bool interruptible, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestInterruptible(interruptible)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestAgentStateChangeAsync(int32_t state, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestAgentStateChangeAsync(*reinterpret_cast(&state))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestAgentStateChange(int32_t state, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestAgentStateChange(*reinterpret_cast(&state))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestForegroundActivationAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestForegroundActivationAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestForegroundActivation(int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestForegroundActivation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioClientAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetAudioClientAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioClient(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAudioClient()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAudioDeviceInputNodeAsync(void* graph, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateAudioDeviceInputNodeAsync(*reinterpret_cast(&graph))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateAudioDeviceInputNode(void* graph, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateAudioDeviceInputNode(*reinterpret_cast(&graph))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioCaptureDeviceIdAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetAudioCaptureDeviceIdAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioCaptureDeviceId(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAudioCaptureDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioRenderDeviceIdAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetAudioRenderDeviceIdAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAudioRenderDeviceId(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAudioRenderDeviceId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSignalModelIdAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetSignalModelIdAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSignalModelId(uint32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetSignalModelId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSignalModelIdAsync(uint32_t signalModelId, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SetSignalModelIdAsync(signalModelId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSignalModelId(uint32_t signalModelId, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().SetSignalModelId(signalModelId)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSupportedSignalModelIdsAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetSupportedSignalModelIdsAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetSupportedSignalModelIds(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetSupportedSignalModelIds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RequestActivationAsync(int32_t activationKind, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().RequestActivationAsync(*reinterpret_cast(&activationKind))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RequestActivation(int32_t activationKind, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RequestActivation(*reinterpret_cast(&activationKind))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSupportLockScreenActivationAsync(bool lockScreenActivationSupported, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().SetSupportLockScreenActivationAsync(lockScreenActivationSupported)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetSupportLockScreenActivation(bool lockScreenActivationSupported) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetSupportLockScreenActivation(lockScreenActivationSupported); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMissingPrerequisites(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetMissingPrerequisites()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetMissingPrerequisitesAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>>(this->shim().GetMissingPrerequisitesAsync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetCurrentSessionAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().GetCurrentSessionAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCurrentSessionSync(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetCurrentSessionSync()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSignalVerificationRequired(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSignalVerificationRequired()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSignalVerificationRequired(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSignalVerificationRequired(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignalId(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignalId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalName(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalName()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignalName(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignalName(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignalContext(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignalContext(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalStart(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalStart()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignalStart(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignalStart(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SignalEnd(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SignalEnd()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SignalEnd(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SignalEnd(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DetectorId(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DetectorId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DetectorKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DetectorKind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SystemStateChangeType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SystemStateChangeType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Kind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Kind()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasSystemResourceAccess(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasSystemResourceAccess()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasPermission(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasPermission()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasLockScreenPermission(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasLockScreenPermission()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UnavailableSystemResources(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().UnavailableSystemResources()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::ConversationalAgent { inline auto ConversationalAgentDetectorManager::Default() { return impl::call_factory_cast([](IConversationalAgentDetectorManagerStatics const& f) { return f.Default(); }); } inline auto ConversationalAgentSession::GetCurrentSessionAsync() { return impl::call_factory_cast(*)(IConversationalAgentSessionStatics const&), ConversationalAgentSession, IConversationalAgentSessionStatics>([](IConversationalAgentSessionStatics const& f) { return f.GetCurrentSessionAsync(); }); } inline auto ConversationalAgentSession::GetCurrentSessionSync() { return impl::call_factory_cast([](IConversationalAgentSessionStatics const& f) { return f.GetCurrentSessionSync(); }); } } 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 {}; 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