예제 #1
0
        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");
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (_injector.IsInjected == false)
            {
                _injector.Inject();
            }
            else
            {
                _injector.Unload();
            }

            Config();

            //if (_injector.IsInjected == true)
            //    _dwm.StartConsole();
        }