Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows API

Status
Not open for further replies.

OXIGEN

Programmer
Mar 12, 2002
11
0
0
PY
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.

Thanks.
 
Do you have ask this on tek-tips windows forum Laurent.

;-)
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top