// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14 #pragma once #ifndef WINRT_Windows_Web_Http_Diagnostics_H #define WINRT_Windows_Web_Http_Diagnostics_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.210930.14"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.210930.14" #include "winrt/Windows.Web.Http.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.System.Diagnostics.2.h" #include "winrt/impl/Windows.Web.Http.2.h" #include "winrt/impl/Windows.Web.Http.Diagnostics.2.h" namespace winrt::impl { template WINRT_IMPL_AUTO(void) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->Start()); } template WINRT_IMPL_AUTO(void) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->Stop()); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestSent(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->add_RequestSent(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestSent_revoker consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestSent(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RequestSent(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestSent(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->remove_RequestSent(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::ResponseReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->add_ResponseReceived(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::ResponseReceived_revoker consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::ResponseReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ResponseReceived(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::ResponseReceived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->remove_ResponseReceived(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::event_token) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestResponseCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->add_RequestResponseCompleted(*(void**)(&handler), put_abi(token))); return token; } template typename consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestResponseCompleted_revoker consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestResponseCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, RequestResponseCompleted(handler)); } template WINRT_IMPL_AUTO(void) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProvider::RequestResponseCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProvider)->remove_RequestResponseCompleted(impl::bind_in(token)); } template WINRT_IMPL_AUTO(winrt::guid) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_ActivityId(put_abi(value))); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticProviderRequestResponseTimestamps) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::Timestamps() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_Timestamps(&value)); return winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticProviderRequestResponseTimestamps{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Uri) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::RequestedUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_RequestedUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(uint32_t) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::ProcessId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_ProcessId(&value)); return value; } template WINRT_IMPL_AUTO(uint32_t) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::ThreadId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_ThreadId(&value)); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticRequestInitiator) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::Initiator() const { winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticRequestInitiator value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_Initiator(reinterpret_cast(&value))); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseCompletedEventArgs::SourceLocations() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseCompletedEventArgs)->get_SourceLocations(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::CacheCheckedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_CacheCheckedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::ConnectionInitiatedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_ConnectionInitiatedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::NameResolvedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_NameResolvedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::SslNegotiatedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_SslNegotiatedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::ConnectionCompletedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_ConnectionCompletedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::RequestSentTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_RequestSentTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::RequestCompletedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_RequestCompletedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::ResponseReceivedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_ResponseReceivedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::IReference) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestResponseTimestamps::ResponseCompletedTimestamp() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestResponseTimestamps)->get_ResponseCompletedTimestamp(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::DateTime) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::Timestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_Timestamp(put_abi(value))); return value; } template WINRT_IMPL_AUTO(winrt::guid) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_ActivityId(put_abi(value))); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Web::Http::HttpRequestMessage) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_Message(&value)); return winrt::Windows::Web::Http::HttpRequestMessage{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(uint32_t) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::ProcessId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_ProcessId(&value)); return value; } template WINRT_IMPL_AUTO(uint32_t) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::ThreadId() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_ThreadId(&value)); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticRequestInitiator) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::Initiator() const { winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticRequestInitiator value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_Initiator(reinterpret_cast(&value))); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderRequestSentEventArgs::SourceLocations() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderRequestSentEventArgs)->get_SourceLocations(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::DateTime) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderResponseReceivedEventArgs::Timestamp() const { winrt::Windows::Foundation::DateTime value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderResponseReceivedEventArgs)->get_Timestamp(put_abi(value))); return value; } template WINRT_IMPL_AUTO(winrt::guid) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderResponseReceivedEventArgs::ActivityId() const { winrt::guid value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderResponseReceivedEventArgs)->get_ActivityId(put_abi(value))); return value; } template WINRT_IMPL_AUTO(winrt::Windows::Web::Http::HttpResponseMessage) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderResponseReceivedEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderResponseReceivedEventArgs)->get_Message(&value)); return winrt::Windows::Web::Http::HttpResponseMessage{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticProvider) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticProviderStatics::CreateFromProcessDiagnosticInfo(winrt::Windows::System::Diagnostics::ProcessDiagnosticInfo const& processDiagnosticInfo) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticProviderStatics)->CreateFromProcessDiagnosticInfo(*(void**)(&processDiagnosticInfo), &value)); return winrt::Windows::Web::Http::Diagnostics::HttpDiagnosticProvider{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(winrt::Windows::Foundation::Uri) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticSourceLocation::SourceUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticSourceLocation)->get_SourceUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template WINRT_IMPL_AUTO(uint64_t) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticSourceLocation::LineNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticSourceLocation)->get_LineNumber(&value)); return value; } template WINRT_IMPL_AUTO(uint64_t) consume_Windows_Web_Http_Diagnostics_IHttpDiagnosticSourceLocation::ColumnNumber() const { uint64_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::Http::Diagnostics::IHttpDiagnosticSourceLocation)->get_ColumnNumber(&value)); return value; } #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_RequestSent(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RequestSent(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RequestSent(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RequestSent(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ResponseReceived(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ResponseReceived(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ResponseReceived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ResponseReceived(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RequestResponseCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RequestResponseCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RequestResponseCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RequestResponseCompleted(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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 get_Timestamps(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamps()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestedUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ThreadId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ThreadId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Initiator(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Initiator()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceLocations(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SourceLocations()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CacheCheckedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().CacheCheckedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ConnectionInitiatedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ConnectionInitiatedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NameResolvedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().NameResolvedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SslNegotiatedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SslNegotiatedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ConnectionCompletedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ConnectionCompletedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestSentTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RequestSentTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestCompletedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().RequestCompletedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseReceivedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ResponseReceivedTimestamp()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ResponseCompletedTimestamp(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ResponseCompletedTimestamp()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Timestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); 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 get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProcessId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProcessId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ThreadId(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ThreadId()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Initiator(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Initiator()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SourceLocations(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().SourceLocations()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Timestamp(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Timestamp()); 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 get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateFromProcessDiagnosticInfo(void* processDiagnosticInfo, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateFromProcessDiagnosticInfo(*reinterpret_cast(&processDiagnosticInfo))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SourceUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SourceUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LineNumber(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LineNumber()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ColumnNumber(uint64_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColumnNumber()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Web::Http::Diagnostics { inline auto HttpDiagnosticProvider::CreateFromProcessDiagnosticInfo(winrt::Windows::System::Diagnostics::ProcessDiagnosticInfo const& processDiagnosticInfo) { return impl::call_factory([&](IHttpDiagnosticProviderStatics const& f) { return f.CreateFromProcessDiagnosticInfo(processDiagnosticInfo); }); } } 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 {}; #endif #ifdef __cpp_lib_format #endif } #endif