CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Location
    California
    Posts
    136

    Intercept Global Messages / Events

    Hi all,

    I have been trying to figure out how to intercept global messages, but I was not able to find relevent topics online.
    I would like to intercept global messages / events such as keyboard strokes as well as mouse clicks.
    Could someone give me some guidance on how to accomplish it.

    I am using VS2005 c++ as my development tool.

    Thank you for your help,
    kab

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Intercept Global Messages / Events

    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Jun 2007
    Location
    California
    Posts
    136

    Re: Intercept Global Messages / Events

    Quote Originally Posted by Marc G
    Hi Marc G,

    The third parameter in SetWindowsHookEx() is a handle to a DLL.
    I have not yet built a DLL of my own before, so I am hoping to accomplish this without using any DLL; is it possible?

    Thank you,
    kab

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

Featured