Пример #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);
 }
Пример #2
0
 static GlobalHotkey()
 {
     // Set the hook
     hookId = InterceptKeys.SetHook(&LowLevelKeyboardProc);
 }