Example #1
0
 public void StartListeningForDesktopSwitch(Hooker hooker)
 {
     hookerDelegater = hooker;
     
     SetWinEventHook(EVENT_SYSTEM_DESKTOPSWITCH, EVENT_SYSTEM_DESKTOPSWITCH,
         IntPtr.Zero, callback, 0, 0, WINEVENT_OUTOFCONTEXT | WINEVENT_SKIPOWNTHREAD);
 }
Example #2
0
        public KeyMouseController(string[] parentQuitMsg)
        {
            InitializeComponent();

            hooker                 = new Hooker();
            taskMgrController      = new TaskMgrController();
            ctrlAltDeleteScreenMgr = new CtrlAltDeleteScreen();

            this.parentQuitMsg = parentQuitMsg;
        }