VOID ExitProcess(
UINT uExitCode
);
uExitCode即退出代码,是个UINT 类型,这个代码一般没有用途,我们一般可以填入0。对于父进程(不一定是父进程,拥有该进程句柄都算)可以通过GetExitCodeThread获取进程的退出代码。这个代码用来告诉父进程程序退出原因,填入什么没有特别规定,可以自己约定,一般来说填入0表示正常退出,其他表示非正常退出。
转载于:http://wenwen.soso.com/z/q195158932.htm
引自MSDN:
VOID ExitProcess(
UINT uExitCode // exit code for all threads
);
Parameters
uExitCode
Specifies the exit code for the process, and for all threads that are terminated as a result of this call. Use the GetExitCodeProcess function to retrieve the process 's exit value. Use the GetExitCodeThread function to retrieve a thread 's exit value.
这个uExitCode一般是自己人工终止程序的时候给出的一个信号量,表明什么原因退出进程,这个标志可以人为的约定好的。