Beispiel #1
0
 public void Enable()
 {
     if (Hook == 0)
     {
         HPI = new HookProcInterno(Proc);
         Hook = SetWindowsHookEx((int)HookTypes.WH_KEYBOARD_LL, HPI, (IntPtr)0, 0);
     }
 }
Beispiel #2
0
 public static extern int SetWindowsHookEx(int idHook, HookProcInterno lpfn, IntPtr hInstance, int threadId);