Results 1 to 4 of 4

Thread: EVENTMSG structure in JournalProc of SetWindowsHookEx

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    India, Visakhapatnam
    Posts
    19

    Post

    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]>

    Dinesh
    reply to
    <[email protected]>

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    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.
    Courgettes.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    India, Visakhapatnam
    Posts
    19
    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]>
    Dinesh
    reply to
    <[email protected]>

  4. #4
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    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. I'm a naughty boy .
    Courgettes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width