-
I am having a problem with the EVENTMSG structure of the JournalProc. I set a JournalRecord Hook and the SetwindowsHookEx was succesful the Callback function is being called regularly but i am unable to interpret the EVENTMSG structure. i Declared the EVENTMSG structure based on the MSDN declaration.
Can anybody help me.
reply to
<[email protected]>
-
Code:
Type EVENTMSG
wMsg As Long '//Message
lParamLow As Long '//Low-order bit of lParam
lParamHigh As Long '//High-order bit of lParam
' msgTime As Long
' hWndMsg As Long
End Type
and wMsg can only be mouse or keyboard messages, since it is a journalproc thing.
If you already knew this, please post back because I have a working journalproc and I don't see why your's shouldn't work.
Moi.
-
that was the exact way in which i declared but you seemed to comment out the time and hwnd members which i did not do. when i sent a string buffer i got the key codes but it was difficult in that matter. could you send me your project. also do you know anyone who has achevied system hooks without C Dll's i was succesfull with thread hooks but not system hooks.
Thank for your reply.
reply to
<[email protected]>
-
I'm afraid that you really do need an external DLL (which VB cannot make) to hook other threads. I'll send you the project. I'ts just a kind of keylogger. :cool: I'm a naughty boy .