I am new in HOOK technology on Windows. I meet a problem as below:
When I capture keyboard events I use WH_KEYBOARD mode in SetWindowsHookEx function and it seems ok (my hook function lies in my code project, the window I want to set hook is current window). I send the event to remote computer and force other application perform the event. I checked the connection is ok, received data is ok. And I use keybd_event() function to perform the event but it doesn't work.
I try with WH_KEYBOARD_LL but it doesn't work (notice: my hook function lies in my code project, not in a library. I only change to WH_KEYBOARD_LL mode instead of WH_KEYBOARD mode). I wonder whether I must put all hook functions in a library with WH_KEYBOARD_LL mode or not?
And another question is “To capture a keyboard event and send it to remote computer, what mode I should use (WH_KEYBOARD or WH_KEYBOARD_LL)”.
Please bring me to sunshine!
Please help me with the problem!
Sorry for my bad English!
Last Visit: 21-Aug-19 20:50 Last Update: 21-Aug-19 20:50