views:

75

answers:

2

Hi.

Where can I get the list of Windows application's exit codes?

Thank you in advance

+4  A: 

An application can specify any exit code it wants. The convention is that zero indicates no error, but other than that there is no standard.

Did you perhaps mean Win32 error codes ? Those are in winerror.h

Bob Moore
I will try to explain more precisely.Application ends with "return -1". How can I monitor it with another application?
Leonid
Assuming you started the process, you call GetExitCodeProcess. Read up on the APIs for CreateProcess (or ShellExecuteEx), WaitForSingleObject, GetExitCodeProcess. Code for launch-and-wait is on my website here: http://bobmoore.mvps.org/Win32/w32tip58.htm Imagine adding a call to GetExitCodeProcess once that wait has completed.
Bob Moore
A: 

Try this.

Hal