Esempio n. 1
0
 public void Unhook()
 {
     UnhookWindowsHookEx(hhook);
     this.signals = null;
     this.signal = null;
     this.apiHelper = null;
 }
Esempio n. 2
0
 public void Hook()
 {
     IntPtr hInstance = LoadLibrary("User32");
     hhook = SetWindowsHookEx(WH_KEYBOARD_LL, HookProc, hInstance, 0);
     this.signals = new List<Signal>();
     this.signal = new Signal();
     this.apiHelper = new ApiHelper();
 }