diff --git a/src/modules/windowwalker/dll/dllmain.cpp b/src/modules/windowwalker/dll/dllmain.cpp index b0d4321ffcb1..920f850b78f8 100644 --- a/src/modules/windowwalker/dll/dllmain.cpp +++ b/src/modules/windowwalker/dll/dllmain.cpp @@ -143,6 +143,7 @@ class WindowWalker : public PowertoyModuleIface m_hProcess = sei.hProcess; m_enabled = true; + Trace::EnableWindowWalker(true); } // Disable the powertoy @@ -154,6 +155,7 @@ class WindowWalker : public PowertoyModuleIface } m_enabled = false; + Trace::EnableWindowWalker(false); } // Returns if the powertoys is enabled diff --git a/src/modules/windowwalker/dll/trace.cpp b/src/modules/windowwalker/dll/trace.cpp index 1ba411198c9e..1e30965dcf5a 100644 --- a/src/modules/windowwalker/dll/trace.cpp +++ b/src/modules/windowwalker/dll/trace.cpp @@ -18,11 +18,12 @@ void Trace::UnregisterProvider() TraceLoggingUnregister(g_hProvider); } -void Trace::MyEvent() +void Trace::EnableWindowWalker(const bool enabled) noexcept { TraceLoggingWrite( g_hProvider, - "PowerToyName_MyEvent", + "WindowWalker_EnableWindowWalker", + TraceLoggingBoolean(enabled, "Enabled"), ProjectTelemetryPrivacyDataTag(ProjectTelemetryTag_ProductAndServicePerformance), TraceLoggingBoolean(TRUE, "UTCReplace_AppSessionGuid"), TraceLoggingKeyword(PROJECT_KEYWORD_MEASURE)); diff --git a/src/modules/windowwalker/dll/trace.h b/src/modules/windowwalker/dll/trace.h index acd37a7a2051..c1d67be0240d 100644 --- a/src/modules/windowwalker/dll/trace.h +++ b/src/modules/windowwalker/dll/trace.h @@ -5,5 +5,5 @@ class Trace public: static void RegisterProvider(); static void UnregisterProvider(); - static void MyEvent(); + static void EnableWindowWalker(const bool enabled) noexcept; };