I implemented a system wide hook to detect when error dialogs from the WebBrowser are created. Therefore the callback function is in a DLL. My main program needs to know when an attempt to create one of these windows occur. But only the callback function in the dll knows. How can the dll tell my main program that something occured so that the main program can display a message.