我正在尝试通过baracode扫描仪(连接为键盘)为日志特定的扫描代码编写后台应用程序。我编写代码并且工作正常,但我想定义可以向我的应用程序发送输入的设备
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
...
hhkLowLevelKybd = ::SetWindowsHookEx(WH_KEYBOARD_LL, (HOOKPROC)LowLevelKeyboardProc, 0, 0);
...
}
LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
here i need check device
// check and log code
}
感谢