This sample consist of two VB6 projects. One displays a msgbox requesting information. It uses a timer to display the msgbox and logs the return value. The second detects creation of message boxes from the first application and posts a reply to that the message box. The second application uses the SpyWorks Windows Hook control (dwshk36.ocx). You should install that file to your system (or system32) folder and register that file using regsvr32.exe before running the samples. You must also install the dwspy36.dll file to your system (or system32) folder (no registration required).