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); }
static GlobalHotkey() { // Set the hook hookId = InterceptKeys.SetHook(&LowLevelKeyboardProc); }