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 Form1_Load(object sender, EventArgs e) { _injector = new DWMInjector(); Config(); }