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.
You can use the API function SetWindowsHookEx(). Try searching for this on google and you'll probably find some tutorials.