Write HidGuardian whitelist key when application is started

Will fail silently if not run as admin
This commit is contained in:
Travis Nickles 2017-11-21 03:30:41 -06:00
parent 12aedd3724
commit 7909e57620

View File

@ -104,12 +104,12 @@ namespace DS4Windows
//if (mutex.WaitOne(TimeSpan.Zero, true)) //if (mutex.WaitOne(TimeSpan.Zero, true))
//{ //{
createControlService(); createControlService();
//rootHub.createHidGuardKey(); rootHub.createHidGuardKey();
//rootHub = new ControlService(); //rootHub = new ControlService();
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new DS4Form(args)); Application.Run(new DS4Form(args));
//rootHub.removeHidGuardKey(); rootHub.removeHidGuardKey();
//mutex.ReleaseMutex(); //mutex.ReleaseMutex();
//} //}