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 Config() { if (_injector.IsInjected == true) { _injector.GetDWMExObject(out _dwm); button1.Text = "Unload"; checkBox1.Checked = true; } else { button1.Text = "Inject"; checkBox1.Checked = false; } }