unknown
2009-11-25 06:04:32 UTC
I have an application that, under certain circumstances, doesn't shut down
properly so that I have to run Task Manager to end it..
I didn't write it.
I thought maybe I could keep tabs on it using CreateProcess( ) to run the
exe and use a Wait function to find out when it's trying to close.
For example, MsgWaitForMultipleObjects( ) will return when a message is
posted, but I don't know if I can, or how to intercept a WM_DESTROY message.
Is it possible to do it this way?
Regards,
Ron Francis
www.RonaldFrancis.com
properly so that I have to run Task Manager to end it..
I didn't write it.
I thought maybe I could keep tabs on it using CreateProcess( ) to run the
exe and use a Wait function to find out when it's trying to close.
For example, MsgWaitForMultipleObjects( ) will return when a message is
posted, but I don't know if I can, or how to intercept a WM_DESTROY message.
Is it possible to do it this way?
Regards,
Ron Francis
www.RonaldFrancis.com