Thread: Windows events

  1. #1

    Windows events

    Hi all,

    I am writing a generic publish/subscribe event system for my application. I want to hook into Windows events system so that I can send it my msgs and let it handle the queuing and broadcasting of my msgs. I realize I can do this myself however I prefer to let Windows handle it as it improves performance and is more efficient, IMHO.

    My question is as follows: How do I hook into Win events and are there any tutorials that I can take a look at? I've googled it and nothing useful came up. Thanks in advance.

    Happy Holidays,

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    You can use the API function SetWindowsHookEx(). Try searching for this on google and you'll probably find some tutorials.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to handle keyboard and mouse events for all windows
    By manav-II in forum Windows Programming
    Replies: 3
    Last Post: 08-25-2008, 09:03 AM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM