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!
They're more of a pain to use than ShellExecute, but I'd recommend giving the CreateProcess and ExitProcess functions a try. Here's some links to the Microsoft documentation:
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.
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.