Program Termination...
-
How can i understand one program is terminated? for example suppose the NOTEPAD.EXE is running ,now i want to be notified whenever that it is terminated? It is very important for me to understand.Please Help Me. Please excuse me for bad comments,my english isn't well. Thanks a lot.
-
How can i understand one program is terminated? for example suppose the NOTEPAD.EXE is running ,now i want to be notified whenever that it is terminated? It is very important for me to understand.Please Help Me. Please excuse me for bad comments,my english isn't well. Thanks a lot.
If you have it's process handle, you can wait on the handle using one of the WaitForXXXX API calls. Else if you have the HWND of the window, just do an IsWindow on it and then do a GetWindowText etc... and verify that it;s the same window. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
-
If you have it's process handle, you can wait on the handle using one of the WaitForXXXX API calls. Else if you have the HWND of the window, just do an IsWindow on it and then do a GetWindowText etc... and verify that it;s the same window. Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]
check out my winsock hook - api hooking revealed article , hook the TerminateProcess() function and get notified of any process closing ! //more in the article //rate me or hate me I am the mighty keeper of the book on knowledge . Contact me to get your copy .