Win32: Get message notification of other application's close/exit?

Get a list of PIDs using PSAPI. Then get a handle on each process using OpenProcess(). Use WaitForMultipleObjects() to be signalled when one of the processes exits.

You could try the RegisterShellHookWindow() API and filter for HSHELL_WINDOWCREATED and HSHELL_WINDOWDESTROYED messages. Of course, that will only get you notified about applications that have a window.

I would avoid registering global hooks except as an extreme last resort. – jeffamaphone May 16 '09 at 18:16.

Yes, plenty. See on Win32 group (system notifications, without any hook).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions