Click to See Complete Forum and Search --> : EVENTMSG structure in JournalProc of SetWindowsHookEx
Dinesh_MS
Oct 6th, 2000, 03:57 AM
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
<dinesh_Ms@bigfoot.com>
V(ery) Basic
Oct 7th, 2000, 08:24 AM
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.
Dinesh_MS
Oct 8th, 2000, 08:14 AM
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
<dinesh_ms@bigfoot.com>
V(ery) Basic
Oct 8th, 2000, 11:32 AM
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 .
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.