Results 1 to 4 of 4

Thread: [RESOLVED] hook question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Resolved [RESOLVED] hook question

    I want to filter keyboards events, of other (not mine at all) application,

    of course with pure API calls.

    so i need a way to install a pointer to my procedure, that executed,
    on each keyboard/message event, and after that proceed to that other application

    does someone have an example code ?


    I tried to use GetWindowLong/SetWindowLong
    to install my procedure, but these don't work with other threads handles.

    I saw also SetWindowsHookEx that may do that, but i couldn't understand exactly, it seems that i need to pre-install this hook function, in a dll.
    Last edited by whatsup; Nov 19th, 2009 at 03:31 PM.

  2. #2

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: hook question

    This is from moeur, it will allow you to subclass external programs.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    Re: hook question

    thank you very much, both, Guys.
    fast valuable help !

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