Displaying 1 result from an estimated 1 matches for "wh_keyboard_l".
Did you mean:
wh_keyboard_ll
2009 Aug 06
1
WH_KEYBOARD_LL vs GetKeyState
...gt;vkCode, key->scanCode, keyState, &chars, 0)) {
if((char)chars == '\r') putchar('\n');
else putchar(chars);
}
}
return CallNextHookEx(NULL, nCode, wParam, lParam);
}
int main(int argc, char** argv) {
HHOOK hhk = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc,
GetModuleHandle(NULL), 0);
MSG msg;
while(GetMessage(&msg, NULL, 0, 0) > 0);
UnhookWindowsHookEx(hhk);
return 0;