I'm trying to test a small concept to replace one of the features of the Logitech MS3200 keyboard (zoom feature) I am I have the keys to be sent from the zoom control. Therefore, I have a main app, and a Dell that has a hook process.
Here's the main app:
#include & lt; Stdio.h & gt; #include & lt; Windows.h & gt; Handle HHOOK; Int main () {Histah hMod = GetModuleHandle (NULL); HHook = SetWindowsHookEx (WH_KEYBOARD, hook prop, 0,0); If (hHook == NULL) printf ("unable to set hook! Error:% d", GetLastError ()); Else printf ("hook set successfully!"); While (TRUE) {sleep (1000); } Return 0; }
And here's the hook process:
#include
What I have returned from DLL by SetWindowsHookEx (hHook), so callNextHookEx () should be able to call to call.
Instead, hook the hook setting code to DLL. Oh, and I think that you handle the DLL module on the hook setting function, tap
Comments
Post a Comment