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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulating .EXE files

Status
Not open for further replies.

plingingo

Programmer
Jul 3, 2001
1
GB
I want to write a program that will open up internet explorer and then shut it down through the program. I think I know how to open up explorer but to then be able to shut it down has lost me. If someone knows how to do this i will be very gratefull.
cheers!
 
OK, I just read the documentation on ExitProcess and realized that it doesn't take a handle as a parameter. So apparently it can be used only to close your own program (??). I'm a bonehead. Maybe the CloseHandle function will do it.

But I really don't know what I'm talking about, so hopefully somebody with a clue will give you a better answer.
 
As I remember there exists some %CloseHandle% function for processes and/or for threads. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top