Do not start manually C# EtwTrace. FZ engine exit event.

This commit is contained in:
Stefan Markovic
2024-10-14 13:52:36 +02:00
parent b1f260e3cc
commit 9f00966e67
16 changed files with 15 additions and 22 deletions

View File

@@ -57,8 +57,6 @@ namespace MouseWithoutBorders.Class
ETWTrace etwTrace = new ETWTrace();
etwTrace.Start();
if (PowerToys.GPOWrapper.GPOWrapper.GetConfiguredMouseWithoutBordersEnabledValue() == PowerToys.GPOWrapper.GpoRuleConfigured.Disabled)
{
Common.Log("Tried to start with a GPO policy setting the utility to always be disabled. Please contact your systems administrator.");

View File

@@ -40,7 +40,6 @@ namespace MouseWithoutBorders
}
ETWTrace etwTrace = new ETWTrace();
etwTrace.Start();
RunnerHelper.WaitForPowerToysRunnerExitFallback(() =>
{