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

Closing a Program Opened With a Shell

Status
Not open for further replies.

chicagirl55

Programmer
Oct 9, 2002
5
0
0
US
I recently learned how to open a program using a shell in the text, but is there a way to close the program too? I've done some research on MSDN but have only found how to minimize and hide the program. Any help?

[pacman]
 
Find the Window using the FindWindow API and send that window the WM_CLOSE message via the SendMessage API

.. off of the top of my heaad ..

Rob
 
Hi chicagirl55,

Does thread222-387111 help you? CaKiwi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top