// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_System_Diagnostics_TraceReporting_0_H #define WINRT_Windows_System_Diagnostics_TraceReporting_0_H WINRT_EXPORT namespace winrt::Windows::Foundation::Collections { template struct WINRT_IMPL_EMPTY_BASES IMapView; } WINRT_EXPORT namespace winrt::Windows::System::Diagnostics::TraceReporting { enum class PlatformDiagnosticActionState : int32_t { Success = 0, FreeNetworkNotAvailable = 1, ACPowerNotAvailable = 2, }; enum class PlatformDiagnosticEscalationType : int32_t { OnCompletion = 0, OnFailure = 1, }; enum class PlatformDiagnosticEventBufferLatencies : uint32_t { Normal = 0x1, CostDeferred = 0x2, Realtime = 0x4, }; enum class PlatformDiagnosticTracePriority : int32_t { Normal = 0, UserElevated = 1, }; enum class PlatformDiagnosticTraceSlotState : int32_t { NotRunning = 0, Running = 1, Throttled = 2, }; enum class PlatformDiagnosticTraceSlotType : int32_t { Alternative = 0, AlwaysOn = 1, Mini = 2, }; struct IPlatformDiagnosticActionsStatics; struct IPlatformDiagnosticTraceInfo; struct IPlatformDiagnosticTraceRuntimeInfo; struct PlatformDiagnosticActions; struct PlatformDiagnosticTraceInfo; struct PlatformDiagnosticTraceRuntimeInfo; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActionState"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticEscalationType"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticEventBufferLatencies"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTracePriority"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceSlotState"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceSlotType"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.IPlatformDiagnosticActionsStatics"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.IPlatformDiagnosticTraceInfo"; template <> inline constexpr auto& name_v = L"Windows.System.Diagnostics.TraceReporting.IPlatformDiagnosticTraceRuntimeInfo"; template <> inline constexpr guid guid_v{ 0xC1145CFA,0x9292,0x4267,{ 0x89,0x0A,0x9E,0xA3,0xED,0x07,0x23,0x12 } }; // C1145CFA-9292-4267-890A-9EA3ED072312 template <> inline constexpr guid guid_v{ 0xF870ED97,0xD597,0x4BF7,{ 0x88,0xDC,0xCF,0x5C,0x7D,0xC2,0xA1,0xD2 } }; // F870ED97-D597-4BF7-88DC-CF5C7DC2A1D2 template <> inline constexpr guid guid_v{ 0x3D4D5E2D,0x01D8,0x4768,{ 0x85,0x54,0x1E,0xB1,0xCA,0x61,0x09,0x86 } }; // 3D4D5E2D-01D8-4768-8554-1EB1CA610986 template <> struct default_interface{ using type = winrt::Windows::System::Diagnostics::TraceReporting::IPlatformDiagnosticTraceInfo; }; template <> struct default_interface{ using type = winrt::Windows::System::Diagnostics::TraceReporting::IPlatformDiagnosticTraceRuntimeInfo; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall IsScenarioEnabled(winrt::guid, bool*) noexcept = 0; virtual int32_t __stdcall TryEscalateScenario(winrt::guid, int32_t, void*, bool, bool, void*, bool*) noexcept = 0; virtual int32_t __stdcall DownloadLatestSettingsForNamespace(void*, void*, bool, bool, bool, int32_t*) noexcept = 0; virtual int32_t __stdcall GetActiveScenarioList(void**) noexcept = 0; virtual int32_t __stdcall ForceUpload(uint32_t, bool, bool, int32_t*) noexcept = 0; virtual int32_t __stdcall IsTraceRunning(int32_t, winrt::guid, uint64_t, int32_t*) noexcept = 0; virtual int32_t __stdcall GetActiveTraceRuntime(int32_t, void**) noexcept = 0; virtual int32_t __stdcall GetKnownTraceList(int32_t, void**) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_ScenarioId(winrt::guid*) noexcept = 0; virtual int32_t __stdcall get_ProfileHash(uint64_t*) noexcept = 0; virtual int32_t __stdcall get_IsExclusive(bool*) noexcept = 0; virtual int32_t __stdcall get_IsAutoLogger(bool*) noexcept = 0; virtual int32_t __stdcall get_MaxTraceDurationFileTime(int64_t*) noexcept = 0; virtual int32_t __stdcall get_Priority(int32_t*) noexcept = 0; }; }; template <> struct abi { struct WINRT_IMPL_NOVTABLE type : inspectable_abi { virtual int32_t __stdcall get_RuntimeFileTime(int64_t*) noexcept = 0; virtual int32_t __stdcall get_EtwRuntimeFileTime(int64_t*) noexcept = 0; }; }; template struct consume_Windows_System_Diagnostics_TraceReporting_IPlatformDiagnosticActionsStatics { auto IsScenarioEnabled(winrt::guid const& scenarioId) const; auto TryEscalateScenario(winrt::guid const& scenarioId, winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticEscalationType const& escalationType, param::hstring const& outputDirectory, bool timestampOutputDirectory, bool forceEscalationUpload, param::map_view const& triggers) const; auto DownloadLatestSettingsForNamespace(param::hstring const& partner, param::hstring const& feature, bool isScenarioNamespace, bool downloadOverCostedNetwork, bool downloadOverBattery) const; auto GetActiveScenarioList() const; auto ForceUpload(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticEventBufferLatencies const& latency, bool uploadOverCostedNetwork, bool uploadOverBattery) const; auto IsTraceRunning(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType const& slotType, winrt::guid const& scenarioId, uint64_t traceProfileHash) const; auto GetActiveTraceRuntime(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType const& slotType) const; auto GetKnownTraceList(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType const& slotType) const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_TraceReporting_IPlatformDiagnosticActionsStatics; }; template struct consume_Windows_System_Diagnostics_TraceReporting_IPlatformDiagnosticTraceInfo { [[nodiscard]] auto ScenarioId() const; [[nodiscard]] auto ProfileHash() const; [[nodiscard]] auto IsExclusive() const; [[nodiscard]] auto IsAutoLogger() const; [[nodiscard]] auto MaxTraceDurationFileTime() const; [[nodiscard]] auto Priority() const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_TraceReporting_IPlatformDiagnosticTraceInfo; }; template struct consume_Windows_System_Diagnostics_TraceReporting_IPlatformDiagnosticTraceRuntimeInfo { [[nodiscard]] auto RuntimeFileTime() const; [[nodiscard]] auto EtwRuntimeFileTime() const; }; template <> struct consume { template using type = consume_Windows_System_Diagnostics_TraceReporting_IPlatformDiagnosticTraceRuntimeInfo; }; } #endif