Ejemplo n.º 1
0
 private GlobalHotkey()
 {
     // We have to store the LowLevelKeyboardProc, so that it is not garbage collected runtime
     hookedLowLevelKeyboardProc = LowLevelKeyboardProc;
     // Set the hook
     hookId = InterceptKeys.SetHook(hookedLowLevelKeyboardProc);
 }
Ejemplo n.º 2
0
 static GlobalHotkey()
 {
     // Set the hook
     hookId = InterceptKeys.SetHook(&LowLevelKeyboardProc);
 }