|
-
March 7th, 2000, 12:45 AM
#1
closing time
how would i kill the program that is running, without an error?
Subzero
-
March 7th, 2000, 05:49 AM
#2
Re: closing time
Get the main window handle of that program and post it a WM_Close event. That should make it shutdown gracefully, if it is written well.
RK
-
March 7th, 2000, 08:03 AM
#3
Re: closing time
If you REALLY need this program to close, you should do a couple of steps. Get a handle to the application and send the WM_CLOSE message. At this point, you could give the program a small amount of time to terminate and, if it's still running, use the TerminateThread API. If you have an understanding of C, check out the TLIST example on MSDN.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|