Suppose I run an application, after some time this app will get closed by user. Is it possible to find out when the program exits? Can I get it\'s process id when I run that
In a quick search at google I found these two methods from msdn which can be useful:
CreateProcess and GetExitCodeProcess. This assuming you are creating a process within your application.
You can do a polling method checking the created process status. I never did this kind of thing, but seems a very strange approach to me.