public WindowManager() { windowTable = new Dictionary <SystemWindow, State>(); tasks = new Queue <Action>(); injector = new DWMInjector(); if (!injector.IsInjected) { injector.Inject(); } injector.GetDWMExObject(out dwm); Debug.Assert(dwm != null, "DWM is NULL"); }
private void button1_Click(object sender, EventArgs e) { if (_injector.IsInjected == false) { _injector.Inject(); } else { _injector.Unload(); } Config(); //if (_injector.IsInjected == true) // _dwm.StartConsole(); }