// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #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.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->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 { WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IAsyncCausalityTracerStatics)->remove_TracingStatusChanged(impl::bind_in(cookie)); } template auto consume_Windows_Foundation_Diagnostics_IErrorDetails::Description() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IErrorDetails)->get_Description(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IErrorDetails::LongDescription() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IErrorDetails)->get_LongDescription(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_IErrorDetails::HelpUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IErrorDetails)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IErrorDetailsStatics)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IErrorReportingSettings)->SetErrorOptions(static_cast(value))); } template auto consume_Windows_Foundation_Diagnostics_IErrorReportingSettings::GetErrorOptions() const { winrt::Windows::Foundation::Diagnostics::ErrorOptions value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IErrorReportingSettings)->GetErrorOptions(reinterpret_cast(&value))); return value; } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->AddLoggingChannelWithLevel(*(void**)(&loggingChannel), static_cast(maxLevel))); } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::RemoveLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->RemoveLoggingChannel(*(void**)(&loggingChannel))); } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSession::CloseAndSaveToFileAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->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 { WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSession)->remove_LogFileGenerated(impl::bind_in(token)); } template auto consume_Windows_Foundation_Diagnostics_IFileLoggingSessionFactory::Create(param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::IFileLoggingSessionFactory)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILogFileGeneratedEventArgs)->get_File(&value)); return winrt::Windows::Storage::StorageFile{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivity)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity::Id() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivity)->get_Id(put_abi(value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity2::Channel() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivity2)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivity2)->StopActivity(*(void**)(&stopEventName))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingActivity2::StopActivity(param::hstring const& stopEventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivity2)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivity2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivityFactory)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingActivityFactory)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::Enabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->get_Enabled(&value)); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::Level() const { winrt::Windows::Foundation::Diagnostics::LoggingLevel value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->get_Level(reinterpret_cast(&value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogMessage(param::hstring const& eventString) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->LogMessage(*(void**)(&eventString))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogMessage(param::hstring const& eventString, winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->LogMessageWithLevel(*(void**)(&eventString), static_cast(level))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel::LogValuePair(param::hstring const& value1, int32_t value2) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->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 { WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel)->remove_LoggingEnabled(impl::bind_in(token)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannel2::Id() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannel2)->get_Id(put_abi(value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelFactory::Create(param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannelFactory)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannelFactory2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannelFactory2)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannelOptions)->get_Group(put_abi(value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelOptions::Group(winrt::guid const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannelOptions)->put_Group(impl::bind_in(value))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingChannelOptionsFactory::Create(winrt::guid const& group) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingChannelOptionsFactory)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->Clear()); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::BeginStruct(param::hstring const& name) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->BeginStruct(*(void**)(&name))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::BeginStruct(param::hstring const& name, int32_t tags) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->BeginStructWithTags(*(void**)(&name), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::EndStruct() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->EndStruct()); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddEmpty(param::hstring const& name) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddEmpty(*(void**)(&name))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddEmpty(param::hstring const& name, winrt::Windows::Foundation::Diagnostics::LoggingFieldFormat const& format) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddEmptyWithFormatAndTags(*(void**)(&name), static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8(param::hstring const& name, uint8_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddUInt8WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt8Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddInt16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt16Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddUInt16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt16Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddInt32WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt32Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddUInt32WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt32Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddInt64WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddInt64Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddUInt64WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddUInt64Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddSingleWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddSingleArray(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddDoubleWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddDoubleArray(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddChar16WithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddChar16Array(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddBooleanWithFormatAndTags(*(void**)(&name), value, static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingFields::AddBooleanArray(param::hstring const& name, array_view value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingFields)->AddRectArrayWithFormatAndTags(*(void**)(&name), value.size(), get_abi(value), static_cast(format), tags)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Keywords() const { int64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->get_Keywords(&value)); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Keywords(int64_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->put_Keywords(value)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Tags() const { int32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->get_Tags(&value)); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Tags(int32_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->put_Tags(value)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Task() const { int16_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->get_Task(&value)); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Task(int16_t value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->put_Task(value)); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Opcode() const { winrt::Windows::Foundation::Diagnostics::LoggingOpcode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->get_Opcode(reinterpret_cast(&value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::Opcode(winrt::Windows::Foundation::Diagnostics::LoggingOpcode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->put_Opcode(static_cast(value))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->get_ActivityId(put_abi(value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::ActivityId(winrt::guid const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->put_ActivityId(impl::bind_in(value))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::RelatedActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->get_RelatedActivityId(put_abi(value))); return value; } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptions::RelatedActivityId(winrt::guid const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptions)->put_RelatedActivityId(impl::bind_in(value))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingOptionsFactory::CreateWithKeywords(int64_t keywords) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingOptionsFactory)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingSession)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingSession)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingSession)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingSession)->AddLoggingChannelWithLevel(*(void**)(&loggingChannel), static_cast(maxLevel))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingSession::RemoveLoggingChannel(winrt::Windows::Foundation::Diagnostics::ILoggingChannel const& loggingChannel) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingSession)->RemoveLoggingChannel(*(void**)(&loggingChannel))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingSessionFactory::Create(param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingSessionFactory)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->IsEnabled(&result)); return result; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::IsEnabled(winrt::Windows::Foundation::Diagnostics::LoggingLevel const& level) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->IsEnabledWithLevelAndKeywords(static_cast(level), keywords, &result)); return result; } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::LogEvent(param::hstring const& eventName) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->LogEvent(*(void**)(&eventName))); } template auto consume_Windows_Foundation_Diagnostics_ILoggingTarget::LogEvent(param::hstring const& eventName, winrt::Windows::Foundation::Diagnostics::LoggingFields const& fields) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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 { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ILoggingTarget)->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{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ITracingStatusChangedEventArgs)->get_Enabled(&enabled)); return enabled; } template auto consume_Windows_Foundation_Diagnostics_ITracingStatusChangedEventArgs::TraceLevel() const { winrt::Windows::Foundation::Diagnostics::CausalityTraceLevel value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Foundation::Diagnostics::ITracingStatusChangedEventArgs)->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