How do I close a program through C++?
How do I close a program through C++?
That depends wut you mean... Close a window or remove a proccess?
SPH
I meant if something like Internet Explorer was open, how would I close it using C++?
I had the same question so if anyone would reply it would be very helpful.....
If you wanted to close an Internet Explorer window, you could use EnumWindows() to loop through all windows one at a time, calling GetWindowText() in your proc to get the title. If "Internet Explorer" is found in the title, send the window a WM_CLOSE message, and you're done.
"Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C