Exemplo n.º 1
0
 public void Unhook()
 {
     UnhookWindowsHookEx(hhook);
     this.signals = null;
     this.signal = null;
     this.apiHelper = null;
 }
Exemplo 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();
 }