// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_Foundation_Diagnostics_H #define WINRT_Windows_Foundation_Diagnostics_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Windows.Foundation.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Storage.2.h" #include "winrt/impl/Windows.Foundation.Diagnostics.2.h" namespace winrt::impl { template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TraceOperationCreation(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, param::hstring const& operationName, uint64_t relatedContext) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TraceOperationCreation(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, *(void**)(&operationName), relatedContext)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TraceOperationCreation(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, *(void**)(&operationName), relatedContext)); } } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TraceOperationCompletion(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, winrt::Windows::Foundation::AsyncStatus const& status) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TraceOperationCompletion(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, static_cast(status))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TraceOperationCompletion(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, static_cast(status))); } } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TraceOperationRelation(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, winrt::Windows::Foundation::Diagnostics::CausalityRelation const& relation) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TraceOperationRelation(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, static_cast(relation))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TraceOperationRelation(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, static_cast(relation))); } } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TraceSynchronousWorkStart(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, winrt::Windows::Foundation::Diagnostics::CausalitySynchronousWork const& work) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TraceSynchronousWorkStart(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, static_cast(work))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TraceSynchronousWorkStart(static_cast(traceLevel), static_cast(source), impl::bind_in(platformId), operationId, static_cast(work))); } } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TraceSynchronousWorkCompletion(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::Windows::Foundation::Diagnostics::CausalitySynchronousWork const& work) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TraceSynchronousWorkCompletion(static_cast(traceLevel), static_cast(source), static_cast(work))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TraceSynchronousWorkCompletion(static_cast(traceLevel), static_cast(source), static_cast(work))); } } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TracingStatusChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token cookie{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_TracingStatusChanged(*(void**)(&handler), put_abi(cookie))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_TracingStatusChanged(*(void**)(&handler), put_abi(cookie))); } return cookie; } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TracingStatusChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, TracingStatusChanged(handler)); } template auto consume_Windows_Foundation_Diagnostics_IAsyncCausalityTracerStatics::TracingStatusChanged(winrt::event_token const& cookie) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_TracingStatusChanged(impl::bind_in(cookie)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_TracingStatusChanged(impl::bind_in(cookie)); } } template auto consume_Windows_Foundation_Diagnostics_IErrorDetails::Description() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Description(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Description(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IErrorDetails::LongDescription() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LongDescription(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LongDescription(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IErrorDetails::HelpUri() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HelpUri(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HelpUri(&value)); } return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IErrorDetailsStatics::CreateFromHResultAsync(int32_t errorCode) const { void* operation{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateFromHResultAsync(errorCode, &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateFromHResultAsync(errorCode, &operation)); } return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IErrorReportingSettings::SetErrorOptions(winrt::Windows::Foundation::Diagnostics::ErrorOptions const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetErrorOptions(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetErrorOptions(static_cast(value))); } } template auto consume_Windows_Foundation_Diagnostics_IErrorReportingSettings::GetErrorOptions() const { winrt::Windows::Foundation::Diagnostics::ErrorOptions value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetErrorOptions(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetErrorOptions(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::Name() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::AddLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddLoggingChannel(*(void**)(&loggingChannel))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddLoggingChannel(*(void**)(&loggingChannel))); } } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::AddLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& maxLevel) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddLoggingChannelWithLevel(*(void**)(&loggingChannel), static_cast(maxLevel))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddLoggingChannelWithLevel(*(void**)(&loggingChannel), static_cast(maxLevel))); } } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::RemoveLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->RemoveLoggingChannel(*(void**)(&loggingChannel))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemoveLoggingChannel(*(void**)(&loggingChannel))); } } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::CloseAndSaveToFileAsync() const { void* operation{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CloseAndSaveToFileAsync(&operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CloseAndSaveToFileAsync(&operation)); } return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::LogFileGenerated(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_LogFileGenerated(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_LogFileGenerated(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::LogFileGenerated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LogFileGenerated(handler)); } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::LogFileGenerated(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_LogFileGenerated(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_LogFileGenerated(impl::bind_in(token)); } } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSessionFactory::Create(param::hstring const& name) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(*(void**)(&name), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(*(void**)(&name), &result)); } return winrt::Windows::Foundation::Diagnostics::FileLoggingSession{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILogFileGeneratedEventArgs::File() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_File(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_File(&value)); } return winrt::Windows::Storage::StorageFile{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity::Name() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity::Id() const { winrt::guid value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Id(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(put_abi(value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity2::Channel() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Channel(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Channel(&value)); } return winrt::Windows::Foundation::Diagnostics::LoggingChannel{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity2::StopActivity(param::hstring const& stopEventName) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StopActivity(*(void**)(&stopEventName))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StopActivity(*(void**)(&stopEventName))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity2::StopActivity(param::hstring const& stopEventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StopActivityWithFields(*(void**)(&stopEventName), *(void**)(&fields))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StopActivityWithFields(*(void**)(&stopEventName), *(void**)(&fields))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity2::StopActivity(param::hstring const& stopEventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields, winrt::Windows::Foundation::Diagnostics::LoggingOptions const& options) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StopActivityWithFieldsAndOptions(*(void**)(&stopEventName), *(void**)(&fields), *(void**)(&options))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StopActivityWithFieldsAndOptions(*(void**)(&stopEventName), *(void**)(&fields), *(void**)(&options))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivityFactory::CreateLoggingActivity(param::hstring const& activityName, winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { void* loggingActivity{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateLoggingActivity(*(void**)(&activityName), *(void**)(&loggingChannel), &loggingActivity)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateLoggingActivity(*(void**)(&activityName), *(void**)(&loggingChannel), &loggingActivity)); } return winrt::Windows::Foundation::Diagnostics::LoggingActivity{ loggingActivity, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivityFactory::CreateLoggingActivityWithLevel(param::hstring const& activityName, winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { void* loggingActivity{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateLoggingActivityWithLevel(*(void**)(&activityName), *(void**)(&loggingChannel), static_cast(level), &loggingActivity)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateLoggingActivityWithLevel(*(void**)(&activityName), *(void**)(&loggingChannel), static_cast(level), &loggingActivity)); } return winrt::Windows::Foundation::Diagnostics::LoggingActivity{ loggingActivity, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::Name() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::Enabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Enabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Enabled(&value)); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::Level() const { winrt::Windows::Foundation::Diagnostics::LoggingLevel value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Level(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Level(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogMessage(param::hstring const& eventString) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogMessage(*(void**)(&eventString))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogMessage(*(void**)(&eventString))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogMessage(param::hstring const& eventString, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogMessageWithLevel(*(void**)(&eventString), static_cast(level))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogMessageWithLevel(*(void**)(&eventString), static_cast(level))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogValuePair(param::hstring const& value1, int32_t value2) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogValuePair(*(void**)(&value1), value2)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogValuePair(*(void**)(&value1), value2)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogValuePair(param::hstring const& value1, int32_t value2, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogValuePairWithLevel(*(void**)(&value1), value2, static_cast(level))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogValuePairWithLevel(*(void**)(&value1), value2, static_cast(level))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LoggingEnabled(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_LoggingEnabled(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_LoggingEnabled(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LoggingEnabled(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LoggingEnabled(handler)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LoggingEnabled(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_LoggingEnabled(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_LoggingEnabled(impl::bind_in(token)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel2::Id() const { winrt::guid value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Id(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Id(put_abi(value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelFactory::Create(param::hstring const& name) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(*(void**)(&name), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(*(void**)(&name), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingChannel{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelFactory2::CreateWithOptions(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingChannelOptions const& options) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateWithOptions(*(void**)(&name), *(void**)(&options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateWithOptions(*(void**)(&name), *(void**)(&options), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingChannel{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelFactory2::CreateWithOptionsAndId(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingChannelOptions const& options, winrt::guid const& id) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateWithOptionsAndId(*(void**)(&name), *(void**)(&options), impl::bind_in(id), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateWithOptionsAndId(*(void**)(&name), *(void**)(&options), impl::bind_in(id), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingChannel{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelOptions::Group() const { winrt::guid value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Group(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Group(put_abi(value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelOptions::Group(winrt::guid const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Group(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Group(impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelOptionsFactory::Create(winrt::guid const& group) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(impl::bind_in(group), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(impl::bind_in(group), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingChannelOptions{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::Clear() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Clear()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Clear()); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::BeginStruct(param::hstring const& name) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->BeginStruct(*(void**)(&name))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->BeginStruct(*(void**)(&name))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::BeginStruct(param::hstring const& name, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->BeginStructWithTags(*(void**)(&name), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->BeginStructWithTags(*(void**)(&name), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::EndStruct() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->EndStruct()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->EndStruct()); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddEmpty(param::hstring const& name) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddEmpty(*(void**)(&name))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddEmpty(*(void**)(&name))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddEmpty(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddEmptyWithFormat(*(void**)(&name), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddEmptyWithFormat(*(void**)(&name), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddEmpty(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddEmptyWithFormatAndTags(*(void**)(&name), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddEmptyWithFormatAndTags(*(void**)(&name), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8(param::hstring const& name, uint8_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt8(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt8(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8(param::hstring const& name, uint8_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt8WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt8WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8(param::hstring const& name, uint8_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt8WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt8WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt8Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt8Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt8ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt8ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt8ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt8ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16(param::hstring const& name, int16_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt16(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt16(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16(param::hstring const& name, int16_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt16WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt16WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16(param::hstring const& name, int16_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt16Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt16Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt16ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt16ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt16ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt16ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16(param::hstring const& name, uint16_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt16(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt16(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16(param::hstring const& name, uint16_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt16WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt16WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16(param::hstring const& name, uint16_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt16Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt16Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt16ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt16ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt16ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt16ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32(param::hstring const& name, int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt32(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt32(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32(param::hstring const& name, int32_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt32WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt32WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32(param::hstring const& name, int32_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt32WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt32WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt32Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt32Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt32ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt32ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt32ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt32ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32(param::hstring const& name, uint32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt32(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt32(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32(param::hstring const& name, uint32_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt32WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt32WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32(param::hstring const& name, uint32_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt32WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt32WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt32Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt32Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt32ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt32ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt32ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt32ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64(param::hstring const& name, int64_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt64(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt64(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64(param::hstring const& name, int64_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt64WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt64WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64(param::hstring const& name, int64_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt64WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt64WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt64Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt64Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt64ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt64ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddInt64ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddInt64ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64(param::hstring const& name, uint64_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt64(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt64(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64(param::hstring const& name, uint64_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt64WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt64WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64(param::hstring const& name, uint64_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt64WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt64WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt64Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt64Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt64ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt64ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddUInt64ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddUInt64ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingle(param::hstring const& name, float value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSingle(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSingle(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingle(param::hstring const& name, float value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSingleWithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSingleWithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingle(param::hstring const& name, float value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSingleWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSingleWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingleArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSingleArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSingleArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingleArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSingleArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSingleArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingleArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSingleArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSingleArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDouble(param::hstring const& name, double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDouble(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDouble(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDouble(param::hstring const& name, double value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDoubleWithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDoubleWithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDouble(param::hstring const& name, double value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDoubleWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDoubleWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDoubleArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDoubleArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDoubleArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDoubleArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDoubleArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDoubleArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDoubleArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDoubleArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDoubleArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16(param::hstring const& name, char16_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddChar16(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddChar16(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16(param::hstring const& name, char16_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddChar16WithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddChar16WithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16(param::hstring const& name, char16_t value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddChar16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddChar16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16Array(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddChar16Array(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddChar16Array(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddChar16ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddChar16ArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16Array(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddChar16ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddChar16ArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBoolean(param::hstring const& name, bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddBoolean(*(void**)(&name), value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddBoolean(*(void**)(&name), value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBoolean(param::hstring const& name, bool value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddBooleanWithFormat(*(void**)(&name), value, static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddBooleanWithFormat(*(void**)(&name), value, static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBoolean(param::hstring const& name, bool value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddBooleanWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddBooleanWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBooleanArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddBooleanArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddBooleanArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBooleanArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddBooleanArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddBooleanArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBooleanArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddBooleanArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddBooleanArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddString(param::hstring const& name, param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddString(*(void**)(&name), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddString(*(void**)(&name), *(void**)(&value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddString(param::hstring const& name, param::hstring const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddStringWithFormat(*(void**)(&name), *(void**)(&value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddStringWithFormat(*(void**)(&name), *(void**)(&value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddString(param::hstring const& name, param::hstring const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddStringWithFormatAndTags(*(void**)(&name), *(void**)(&value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddStringWithFormatAndTags(*(void**)(&name), *(void**)(&value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddStringArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddStringArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddStringArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddStringArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddStringArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddStringArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddStringArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddStringArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddStringArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddGuid(param::hstring const& name, winrt::guid const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddGuid(*(void**)(&name), impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddGuid(*(void**)(&name), impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddGuid(param::hstring const& name, winrt::guid const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddGuidWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddGuidWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddGuid(param::hstring const& name, winrt::guid const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddGuidWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddGuidWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddGuidArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddGuidArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddGuidArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddGuidArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddGuidArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddGuidArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddGuidArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddGuidArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddGuidArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDateTime(param::hstring const& name, winrt::Windows::Foundation::DateTime const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDateTime(*(void**)(&name), impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDateTime(*(void**)(&name), impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDateTime(param::hstring const& name, winrt::Windows::Foundation::DateTime const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDateTimeWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDateTimeWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDateTime(param::hstring const& name, winrt::Windows::Foundation::DateTime const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDateTimeWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDateTimeWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDateTimeArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDateTimeArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDateTimeArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDateTimeArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDateTimeArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDateTimeArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDateTimeArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddDateTimeArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddDateTimeArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddTimeSpan(param::hstring const& name, winrt::Windows::Foundation::TimeSpan const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTimeSpan(*(void**)(&name), impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTimeSpan(*(void**)(&name), impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddTimeSpan(param::hstring const& name, winrt::Windows::Foundation::TimeSpan const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTimeSpanWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTimeSpanWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddTimeSpan(param::hstring const& name, winrt::Windows::Foundation::TimeSpan const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTimeSpanWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTimeSpanWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddTimeSpanArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTimeSpanArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTimeSpanArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddTimeSpanArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTimeSpanArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTimeSpanArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddTimeSpanArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddTimeSpanArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddTimeSpanArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddPoint(param::hstring const& name, winrt::Windows::Foundation::Point const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddPoint(*(void**)(&name), impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPoint(*(void**)(&name), impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddPoint(param::hstring const& name, winrt::Windows::Foundation::Point const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddPointWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPointWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddPoint(param::hstring const& name, winrt::Windows::Foundation::Point const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddPointWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPointWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddPointArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddPointArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPointArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddPointArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddPointArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPointArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddPointArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddPointArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddPointArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSize(param::hstring const& name, winrt::Windows::Foundation::Size const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSize(*(void**)(&name), impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSize(*(void**)(&name), impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSize(param::hstring const& name, winrt::Windows::Foundation::Size const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSizeWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSizeWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSize(param::hstring const& name, winrt::Windows::Foundation::Size const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSizeWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSizeWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSizeArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSizeArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSizeArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSizeArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSizeArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSizeArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSizeArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddSizeArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddSizeArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddRect(param::hstring const& name, winrt::Windows::Foundation::Rect const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddRect(*(void**)(&name), impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddRect(*(void**)(&name), impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddRect(param::hstring const& name, winrt::Windows::Foundation::Rect const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddRectWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddRectWithFormat(*(void**)(&name), impl::bind_in(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddRect(param::hstring const& name, winrt::Windows::Foundation::Rect const& value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddRectWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddRectWithFormatAndTags(*(void**)(&name), impl::bind_in(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddRectArray(param::hstring const& name, array_view value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddRectArray(*(void**)(&name), value.size(), get_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddRectArray(*(void**)(&name), value.size(), get_abi(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddRectArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddRectArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddRectArrayWithFormat(*(void**)(&name), value.size(), get_abi(value), static_cast(format))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddRectArray(param::hstring const& name, array_view value, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format, int32_t tags) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddRectArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddRectArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Keywords() const { int64_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Keywords(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Keywords(&value)); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Keywords(int64_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Keywords(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Keywords(value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Tags() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Tags(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Tags(&value)); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Tags(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Tags(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Tags(value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Task() const { int16_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Task(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Task(&value)); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Task(int16_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Task(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Task(value)); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Opcode() const { winrt::Windows::Foundation::Diagnostics::LoggingOpcode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Opcode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Opcode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Opcode(winrt::Windows::Foundation::Diagnostics::LoggingOpcode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Opcode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Opcode(static_cast(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::ActivityId() const { winrt::guid value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ActivityId(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ActivityId(put_abi(value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::ActivityId(winrt::guid const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ActivityId(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ActivityId(impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::RelatedActivityId() const { winrt::guid value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RelatedActivityId(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RelatedActivityId(put_abi(value))); } return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::RelatedActivityId(winrt::guid const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RelatedActivityId(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RelatedActivityId(impl::bind_in(value))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptionsFactory::CreateWithKeywords(int64_t keywords) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateWithKeywords(keywords, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateWithKeywords(keywords, &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingOptions{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingSession::Name() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Name(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Name(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingSession::SaveToFileAsync(winrt::Windows::Storage::IStorageFolder const& folder, param::hstring const& fileName) const { void* operation{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SaveToFileAsync(*(void**)(&folder), *(void**)(&fileName), &operation)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SaveToFileAsync(*(void**)(&folder), *(void**)(&fileName), &operation)); } return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingSession::AddLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddLoggingChannel(*(void**)(&loggingChannel))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddLoggingChannel(*(void**)(&loggingChannel))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingSession::AddLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& maxLevel) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->AddLoggingChannelWithLevel(*(void**)(&loggingChannel), static_cast(maxLevel))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->AddLoggingChannelWithLevel(*(void**)(&loggingChannel), static_cast(maxLevel))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingSession::RemoveLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->RemoveLoggingChannel(*(void**)(&loggingChannel))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->RemoveLoggingChannel(*(void**)(&loggingChannel))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingSessionFactory::Create(param::hstring const& name) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Create(*(void**)(&name), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Create(*(void**)(&name), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingSession{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::IsEnabled() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsEnabled(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsEnabled(&result)); } return result; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::IsEnabled(winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsEnabledWithLevel(static_cast(level), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsEnabledWithLevel(static_cast(level), &result)); } return result; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::IsEnabled(winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level, int64_t keywords) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->IsEnabledWithLevelAndKeywords(static_cast(level), keywords, &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->IsEnabledWithLevelAndKeywords(static_cast(level), keywords, &result)); } return result; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::LogEvent(param::hstring const& eventName) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogEvent(*(void**)(&eventName))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogEvent(*(void**)(&eventName))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::LogEvent(param::hstring const& eventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogEventWithFields(*(void**)(&eventName), *(void**)(&fields))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogEventWithFields(*(void**)(&eventName), *(void**)(&fields))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::LogEvent(param::hstring const& eventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogEventWithFieldsAndLevel(*(void**)(&eventName), *(void**)(&fields), static_cast(level))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogEventWithFieldsAndLevel(*(void**)(&eventName), *(void**)(&fields), static_cast(level))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::LogEvent(param::hstring const& eventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level, winrt::Windows::Foundation::Diagnostics::LoggingOptions const& options) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LogEventWithFieldsAndOptions(*(void**)(&eventName), *(void**)(&fields), static_cast(level), *(void**)(&options))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LogEventWithFieldsAndOptions(*(void**)(&eventName), *(void**)(&fields), static_cast(level), *(void**)(&options))); } } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::StartActivity(param::hstring const& startEventName) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StartActivity(*(void**)(&startEventName), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StartActivity(*(void**)(&startEventName), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingActivity{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::StartActivity(param::hstring const& startEventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StartActivityWithFields(*(void**)(&startEventName), *(void**)(&fields), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StartActivityWithFields(*(void**)(&startEventName), *(void**)(&fields), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingActivity{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::StartActivity(param::hstring const& startEventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StartActivityWithFieldsAndLevel(*(void**)(&startEventName), *(void**)(&fields), static_cast(level), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StartActivityWithFieldsAndLevel(*(void**)(&startEventName), *(void**)(&fields), static_cast(level), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingActivity{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::StartActivity(param::hstring const& startEventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level, winrt::Windows::Foundation::Diagnostics::LoggingOptions const& options) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->StartActivityWithFieldsAndOptions(*(void**)(&startEventName), *(void**)(&fields), static_cast(level), *(void**)(&options), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->StartActivityWithFieldsAndOptions(*(void**)(&startEventName), *(void**)(&fields), static_cast(level), *(void**)(&options), &result)); } return winrt::Windows::Foundation::Diagnostics::LoggingActivity{ result, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ITracingStatusChangedEventArgs::Enabled() const { bool enabled{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Enabled(&enabled)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Enabled(&enabled)); } return enabled; } template auto consume_Windows_Foundation_Diagnostics_ITracingStatusChangedEventArgs::TraceLevel() const { winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TraceLevel(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TraceLevel(reinterpret_cast(&value))); } return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall TraceOperationCreation(int32_t traceLevel, int32_t source, winrt::guid platformId, uint64_t operationId, void* operationName, uint64_t relatedContext) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TraceOperationCreation(*reinterpret_cast(&traceLevel), *reinterpret_cast(&source), *reinterpret_cast(&platformId), operationId, *reinterpret_cast(&operationName), relatedContext); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TraceOperationCompletion(int32_t traceLevel, int32_t source, winrt::guid platformId, uint64_t operationId, int32_t status) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TraceOperationCompletion(*reinterpret_cast(&traceLevel), *reinterpret_cast(&source), *reinterpret_cast(&platformId), operationId, *reinterpret_cast(&status)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TraceOperationRelation(int32_t traceLevel, int32_t source, winrt::guid platformId, uint64_t operationId, int32_t relation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TraceOperationRelation(*reinterpret_cast(&traceLevel), *reinterpret_cast(&source), *reinterpret_cast(&platformId), operationId, *reinterpret_cast(&relation)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TraceSynchronousWorkStart(int32_t traceLevel, int32_t source, winrt::guid platformId, uint64_t operationId, int32_t work) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TraceSynchronousWorkStart(*reinterpret_cast(&traceLevel), *reinterpret_cast(&source), *reinterpret_cast(&platformId), operationId, *reinterpret_cast(&work)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TraceSynchronousWorkCompletion(int32_t traceLevel, int32_t source, int32_t work) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TraceSynchronousWorkCompletion(*reinterpret_cast(&traceLevel), *reinterpret_cast(&source), *reinterpret_cast(&work)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_TracingStatusChanged(void* handler, winrt::event_token* cookie) noexcept final try { zero_abi(cookie); typename D::abi_guard guard(this->shim()); *cookie = detach_from(this->shim().TracingStatusChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_TracingStatusChanged(winrt::event_token cookie) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().TracingStatusChanged(*reinterpret_cast(&cookie)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Description(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Description()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LongDescription(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LongDescription()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HelpUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HelpUri()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromHResultAsync(int32_t errorCode, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CreateFromHResultAsync(errorCode)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall SetErrorOptions(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetErrorOptions(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetErrorOptions(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GetErrorOptions()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { 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 AddLoggingChannel(void* loggingChannel) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddLoggingChannelWithLevel(void* loggingChannel, int32_t maxLevel) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel), *reinterpret_cast(&maxLevel)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveLoggingChannel(void* loggingChannel) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveLoggingChannel(*reinterpret_cast(&loggingChannel)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CloseAndSaveToFileAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CloseAndSaveToFileAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_LogFileGenerated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LogFileGenerated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LogFileGenerated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LogFileGenerated(*reinterpret_cast(&token)); return 0; } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_File(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().File()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 get_Id(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Channel(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Channel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopActivity(void* stopEventName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopActivity(*reinterpret_cast(&stopEventName)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopActivityWithFields(void* stopEventName, void* fields) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopActivity(*reinterpret_cast(&stopEventName), *reinterpret_cast(&fields)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopActivityWithFieldsAndOptions(void* stopEventName, void* fields, void* options) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopActivity(*reinterpret_cast(&stopEventName), *reinterpret_cast(&fields), *reinterpret_cast(&options)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateLoggingActivity(void* activityName, void* loggingChannel, void** loggingActivity) noexcept final try { clear_abi(loggingActivity); typename D::abi_guard guard(this->shim()); *loggingActivity = detach_from(this->shim().CreateLoggingActivity(*reinterpret_cast(&activityName), *reinterpret_cast(&loggingChannel))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateLoggingActivityWithLevel(void* activityName, void* loggingChannel, int32_t level, void** loggingActivity) noexcept final try { clear_abi(loggingActivity); typename D::abi_guard guard(this->shim()); *loggingActivity = detach_from(this->shim().CreateLoggingActivityWithLevel(*reinterpret_cast(&activityName), *reinterpret_cast(&loggingChannel), *reinterpret_cast(&level))); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { 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 get_Enabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Enabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Level(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Level()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogMessage(void* eventString) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogMessage(*reinterpret_cast(&eventString)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogMessageWithLevel(void* eventString, int32_t level) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogMessage(*reinterpret_cast(&eventString), *reinterpret_cast(&level)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogValuePair(void* value1, int32_t value2) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogValuePair(*reinterpret_cast(&value1), value2); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogValuePairWithLevel(void* value1, int32_t value2, int32_t level) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogValuePair(*reinterpret_cast(&value1), value2, *reinterpret_cast(&level)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_LoggingEnabled(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LoggingEnabled(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LoggingEnabled(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LoggingEnabled(*reinterpret_cast(&token)); return 0; } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWithOptions(void* name, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithOptions(*reinterpret_cast(&name), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithOptionsAndId(void* name, void* options, winrt::guid id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithOptionsAndId(*reinterpret_cast(&name), *reinterpret_cast(&options), *reinterpret_cast(&id))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Group(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Group()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Group(winrt::guid value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Group(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(winrt::guid group, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&group))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BeginStruct(void* name) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BeginStruct(*reinterpret_cast(&name)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BeginStructWithTags(void* name, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BeginStruct(*reinterpret_cast(&name), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall EndStruct() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EndStruct(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddEmpty(void* name) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddEmpty(*reinterpret_cast(&name)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddEmptyWithFormat(void* name, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddEmpty(*reinterpret_cast(&name), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddEmptyWithFormatAndTags(void* name, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddEmpty(*reinterpret_cast(&name), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt8(void* name, uint8_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt8(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt8WithFormat(void* name, uint8_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt8(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt8WithFormatAndTags(void* name, uint8_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt8(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt8Array(void* name, uint32_t __valueSize, uint8_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt8Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt8ArrayWithFormat(void* name, uint32_t __valueSize, uint8_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt8Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt8ArrayWithFormatAndTags(void* name, uint32_t __valueSize, uint8_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt8Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt16(void* name, int16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt16(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt16WithFormat(void* name, int16_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt16(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt16WithFormatAndTags(void* name, int16_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt16(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt16Array(void* name, uint32_t __valueSize, int16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt16ArrayWithFormat(void* name, uint32_t __valueSize, int16_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt16ArrayWithFormatAndTags(void* name, uint32_t __valueSize, int16_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt16(void* name, uint16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt16(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt16WithFormat(void* name, uint16_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt16(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt16WithFormatAndTags(void* name, uint16_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt16(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt16Array(void* name, uint32_t __valueSize, uint16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt16ArrayWithFormat(void* name, uint32_t __valueSize, uint16_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt16ArrayWithFormatAndTags(void* name, uint32_t __valueSize, uint16_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32(void* name, int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32WithFormat(void* name, int32_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32WithFormatAndTags(void* name, int32_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32Array(void* name, uint32_t __valueSize, int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32ArrayWithFormat(void* name, uint32_t __valueSize, int32_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt32ArrayWithFormatAndTags(void* name, uint32_t __valueSize, int32_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt32Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt32(void* name, uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt32(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt32WithFormat(void* name, uint32_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt32(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt32WithFormatAndTags(void* name, uint32_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt32(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt32Array(void* name, uint32_t __valueSize, uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt32Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt32ArrayWithFormat(void* name, uint32_t __valueSize, uint32_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt32Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt32ArrayWithFormatAndTags(void* name, uint32_t __valueSize, uint32_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt32Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt64(void* name, int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt64(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt64WithFormat(void* name, int64_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt64(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt64WithFormatAndTags(void* name, int64_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt64(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt64Array(void* name, uint32_t __valueSize, int64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt64Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt64ArrayWithFormat(void* name, uint32_t __valueSize, int64_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt64Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddInt64ArrayWithFormatAndTags(void* name, uint32_t __valueSize, int64_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInt64Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt64(void* name, uint64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt64(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt64WithFormat(void* name, uint64_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt64(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt64WithFormatAndTags(void* name, uint64_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt64(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt64Array(void* name, uint32_t __valueSize, uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt64Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt64ArrayWithFormat(void* name, uint32_t __valueSize, uint64_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt64Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddUInt64ArrayWithFormatAndTags(void* name, uint32_t __valueSize, uint64_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddUInt64Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSingle(void* name, float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSingle(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSingleWithFormat(void* name, float value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSingle(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSingleWithFormatAndTags(void* name, float value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSingle(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSingleArray(void* name, uint32_t __valueSize, float* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSingleArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSingleArrayWithFormat(void* name, uint32_t __valueSize, float* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSingleArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSingleArrayWithFormatAndTags(void* name, uint32_t __valueSize, float* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSingleArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDouble(void* name, double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDouble(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDoubleWithFormat(void* name, double value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDouble(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDoubleWithFormatAndTags(void* name, double value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDouble(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDoubleArray(void* name, uint32_t __valueSize, double* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDoubleArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDoubleArrayWithFormat(void* name, uint32_t __valueSize, double* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDoubleArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDoubleArrayWithFormatAndTags(void* name, uint32_t __valueSize, double* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDoubleArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddChar16(void* name, char16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddChar16(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddChar16WithFormat(void* name, char16_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddChar16(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddChar16WithFormatAndTags(void* name, char16_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddChar16(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddChar16Array(void* name, uint32_t __valueSize, char16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddChar16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddChar16ArrayWithFormat(void* name, uint32_t __valueSize, char16_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddChar16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddChar16ArrayWithFormatAndTags(void* name, uint32_t __valueSize, char16_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddChar16Array(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddBoolean(void* name, bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddBoolean(*reinterpret_cast(&name), value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddBooleanWithFormat(void* name, bool value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddBoolean(*reinterpret_cast(&name), value, *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddBooleanWithFormatAndTags(void* name, bool value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddBoolean(*reinterpret_cast(&name), value, *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddBooleanArray(void* name, uint32_t __valueSize, bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddBooleanArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddBooleanArrayWithFormat(void* name, uint32_t __valueSize, bool* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddBooleanArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddBooleanArrayWithFormatAndTags(void* name, uint32_t __valueSize, bool* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddBooleanArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddString(void* name, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddString(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddStringWithFormat(void* name, void* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddString(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddStringWithFormatAndTags(void* name, void* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddString(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddStringArray(void* name, uint32_t __valueSize, void** value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddStringArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddStringArrayWithFormat(void* name, uint32_t __valueSize, void** value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddStringArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddStringArrayWithFormatAndTags(void* name, uint32_t __valueSize, void** value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddStringArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddGuid(void* name, winrt::guid value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddGuid(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddGuidWithFormat(void* name, winrt::guid value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddGuid(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddGuidWithFormatAndTags(void* name, winrt::guid value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddGuid(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddGuidArray(void* name, uint32_t __valueSize, winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddGuidArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddGuidArrayWithFormat(void* name, uint32_t __valueSize, winrt::guid* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddGuidArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddGuidArrayWithFormatAndTags(void* name, uint32_t __valueSize, winrt::guid* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddGuidArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDateTime(void* name, int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDateTime(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDateTimeWithFormat(void* name, int64_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDateTime(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDateTimeWithFormatAndTags(void* name, int64_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDateTime(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDateTimeArray(void* name, uint32_t __valueSize, int64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDateTimeArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDateTimeArrayWithFormat(void* name, uint32_t __valueSize, int64_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDateTimeArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddDateTimeArrayWithFormatAndTags(void* name, uint32_t __valueSize, int64_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddDateTimeArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTimeSpan(void* name, int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTimeSpan(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTimeSpanWithFormat(void* name, int64_t value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTimeSpan(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTimeSpanWithFormatAndTags(void* name, int64_t value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTimeSpan(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTimeSpanArray(void* name, uint32_t __valueSize, int64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTimeSpanArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTimeSpanArrayWithFormat(void* name, uint32_t __valueSize, int64_t* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTimeSpanArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddTimeSpanArrayWithFormatAndTags(void* name, uint32_t __valueSize, int64_t* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddTimeSpanArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPoint(void* name, winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddPoint(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPointWithFormat(void* name, winrt::Windows::Foundation::Point value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddPoint(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPointWithFormatAndTags(void* name, winrt::Windows::Foundation::Point value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddPoint(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPointArray(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Point* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddPointArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPointArrayWithFormat(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Point* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddPointArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddPointArrayWithFormatAndTags(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Point* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddPointArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSize(void* name, winrt::Windows::Foundation::Size value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSize(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSizeWithFormat(void* name, winrt::Windows::Foundation::Size value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSize(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSizeWithFormatAndTags(void* name, winrt::Windows::Foundation::Size value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSize(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSizeArray(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Size* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSizeArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSizeArrayWithFormat(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Size* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSizeArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddSizeArrayWithFormatAndTags(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Size* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddSizeArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddRect(void* name, winrt::Windows::Foundation::Rect value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddRect(*reinterpret_cast(&name), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddRectWithFormat(void* name, winrt::Windows::Foundation::Rect value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddRect(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddRectWithFormatAndTags(void* name, winrt::Windows::Foundation::Rect value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddRect(*reinterpret_cast(&name), *reinterpret_cast(&value), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddRectArray(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Rect* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddRectArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddRectArrayWithFormat(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Rect* value, int32_t format) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddRectArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddRectArrayWithFormatAndTags(void* name, uint32_t __valueSize, winrt::Windows::Foundation::Rect* value, int32_t format, int32_t tags) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddRectArray(*reinterpret_cast(&name), array_view(reinterpret_cast(value), reinterpret_cast(value) + __valueSize), *reinterpret_cast(&format), tags); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Keywords(int64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Keywords()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Keywords(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Keywords(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tags(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tags()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Tags(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tags(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Task(int16_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Task()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Task(int16_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Task(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Opcode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Opcode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Opcode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Opcode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActivityId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActivityId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ActivityId(winrt::guid value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ActivityId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RelatedActivityId(winrt::guid* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RelatedActivityId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RelatedActivityId(winrt::guid value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RelatedActivityId(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWithKeywords(int64_t keywords, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreateWithKeywords(keywords)); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { 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 SaveToFileAsync(void* folder, void* fileName, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().SaveToFileAsync(*reinterpret_cast(&folder), *reinterpret_cast(&fileName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddLoggingChannel(void* loggingChannel) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddLoggingChannelWithLevel(void* loggingChannel, int32_t maxLevel) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddLoggingChannel(*reinterpret_cast(&loggingChannel), *reinterpret_cast(&maxLevel)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveLoggingChannel(void* loggingChannel) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveLoggingChannel(*reinterpret_cast(&loggingChannel)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Create(void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall IsEnabled(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsEnabledWithLevel(int32_t level, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsEnabled(*reinterpret_cast(&level))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall IsEnabledWithLevelAndKeywords(int32_t level, int64_t keywords, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().IsEnabled(*reinterpret_cast(&level), keywords)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogEvent(void* eventName) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogEvent(*reinterpret_cast(&eventName)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogEventWithFields(void* eventName, void* fields) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogEvent(*reinterpret_cast(&eventName), *reinterpret_cast(&fields)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogEventWithFieldsAndLevel(void* eventName, void* fields, int32_t level) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogEvent(*reinterpret_cast(&eventName), *reinterpret_cast(&fields), *reinterpret_cast(&level)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LogEventWithFieldsAndOptions(void* eventName, void* fields, int32_t level, void* options) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LogEvent(*reinterpret_cast(&eventName), *reinterpret_cast(&fields), *reinterpret_cast(&level), *reinterpret_cast(&options)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartActivity(void* startEventName, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartActivity(*reinterpret_cast(&startEventName))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartActivityWithFields(void* startEventName, void* fields, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartActivity(*reinterpret_cast(&startEventName), *reinterpret_cast(&fields))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartActivityWithFieldsAndLevel(void* startEventName, void* fields, int32_t level, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartActivity(*reinterpret_cast(&startEventName), *reinterpret_cast(&fields), *reinterpret_cast(&level))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartActivityWithFieldsAndOptions(void* startEventName, void* fields, int32_t level, void* options, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().StartActivity(*reinterpret_cast(&startEventName), *reinterpret_cast(&fields), *reinterpret_cast(&level), *reinterpret_cast(&options))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Enabled(bool* enabled) noexcept final try { typename D::abi_guard guard(this->shim()); *enabled = detach_from(this->shim().Enabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TraceLevel(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TraceLevel()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Foundation::Diagnostics { constexpr auto operator|(ErrorOptions const left, ErrorOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(ErrorOptions& left, ErrorOptions const right) noexcept { left = left | right; return left; } constexpr auto operator&(ErrorOptions const left, ErrorOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(ErrorOptions& left, ErrorOptions const right) noexcept { left = left & right; return left; } constexpr auto operator~(ErrorOptions const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(ErrorOptions const left, ErrorOptions const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(ErrorOptions& left, ErrorOptions const right) noexcept { left = left ^ right; return left; } inline auto AsyncCausalityTracer::TraceOperationCreation(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, param::hstring const& operationName, uint64_t relatedContext) { impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TraceOperationCreation(traceLevel, source, platformId, operationId, operationName, relatedContext); }); } inline auto AsyncCausalityTracer::TraceOperationCompletion(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, winrt::Windows::Foundation::AsyncStatus const& status) { impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TraceOperationCompletion(traceLevel, source, platformId, operationId, status); }); } inline auto AsyncCausalityTracer::TraceOperationRelation(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, winrt::Windows::Foundation::Diagnostics::CausalityRelation const& relation) { impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TraceOperationRelation(traceLevel, source, platformId, operationId, relation); }); } inline auto AsyncCausalityTracer::TraceSynchronousWorkStart(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::guid const& platformId, uint64_t operationId, winrt::Windows::Foundation::Diagnostics::CausalitySynchronousWork const& work) { impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TraceSynchronousWorkStart(traceLevel, source, platformId, operationId, work); }); } inline auto AsyncCausalityTracer::TraceSynchronousWorkCompletion(winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel const& traceLevel, winrt::Windows::Foundation::Diagnostics::CausalitySource const& source, winrt::Windows::Foundation::Diagnostics::CausalitySynchronousWork const& work) { impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TraceSynchronousWorkCompletion(traceLevel, source, work); }); } inline auto AsyncCausalityTracer::TracingStatusChanged(winrt::Windows::Foundation::EventHandler const& handler) { return impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TracingStatusChanged(handler); }); } inline auto AsyncCausalityTracer::TracingStatusChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) { auto f = get_activation_factory(); return AsyncCausalityTracer::TracingStatusChanged_revoker{ f, f.TracingStatusChanged(handler) }; } inline auto AsyncCausalityTracer::TracingStatusChanged(winrt::event_token const& cookie) { impl::call_factory([&](IAsyncCausalityTracerStatics const& f) { return f.TracingStatusChanged(cookie); }); } inline auto ErrorDetails::CreateFromHResultAsync(int32_t errorCode) { return impl::call_factory([&](IErrorDetailsStatics const& f) { return f.CreateFromHResultAsync(errorCode); }); } inline FileLoggingSession::FileLoggingSession(param::hstring const& name) : FileLoggingSession(impl::call_factory([&](IFileLoggingSessionFactory const& f) { return f.Create(name); })) { } inline LoggingActivity::LoggingActivity(param::hstring const& activityName, winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) : LoggingActivity(impl::call_factory([&](ILoggingActivityFactory const& f) { return f.CreateLoggingActivity(activityName, loggingChannel); })) { } inline LoggingActivity::LoggingActivity(param::hstring const& activityName, winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) : LoggingActivity(impl::call_factory([&](ILoggingActivityFactory const& f) { return f.CreateLoggingActivityWithLevel(activityName, loggingChannel, level); })) { } inline LoggingChannel::LoggingChannel(param::hstring const& name) : LoggingChannel(impl::call_factory([&](ILoggingChannelFactory const& f) { return f.Create(name); })) { } inline LoggingChannel::LoggingChannel(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingChannelOptions const& options) : LoggingChannel(impl::call_factory([&](ILoggingChannelFactory2 const& f) { return f.CreateWithOptions(name, options); })) { } inline LoggingChannel::LoggingChannel(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingChannelOptions const& options, winrt::guid const& id) : LoggingChannel(impl::call_factory([&](ILoggingChannelFactory2 const& f) { return f.CreateWithOptionsAndId(name, options, id); })) { } inline LoggingChannelOptions::LoggingChannelOptions() : LoggingChannelOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline LoggingChannelOptions::LoggingChannelOptions(winrt::guid const& group) : LoggingChannelOptions(impl::call_factory([&](ILoggingChannelOptionsFactory const& f) { return f.Create(group); })) { } inline LoggingFields::LoggingFields() : LoggingFields(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline LoggingOptions::LoggingOptions() : LoggingOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline LoggingOptions::LoggingOptions(int64_t keywords) : LoggingOptions(impl::call_factory([&](ILoggingOptionsFactory const& f) { return f.CreateWithKeywords(keywords); })) { } inline LoggingSession::LoggingSession(param::hstring const& name) : LoggingSession(impl::call_factory([&](ILoggingSessionFactory const& f) { return f.Create(name); })) { } inline RuntimeBrokerErrorSettings::RuntimeBrokerErrorSettings() : RuntimeBrokerErrorSettings(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 {}; 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