Windows events

This is a discussion on Windows events within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, I am writing a generic publish/subscribe event system for my application. I want to hook into Windows events ...

  1. #1
    Unregistered
    Guest

    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,
    M

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

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, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21