I want to control when a user close an Aplication. For example: I want to control when the user close de Internet Explorer. Please, I need the name of the Windows API function to do that.
You could use the EnumWindows() API function and check the title of each top level window.
Remember that the caption of IE also contains the title of the current web page, so you might want to check for the class name instead (Use a tool like WinSight to get this).
A more flexible approach would be to hook into IE with COM, but I'll leave that to someone more experienced in COM stuff. --
Robert
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.