ExitProcess 参数问题

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一般是自己人工终止程序的时候给出的一个信号量,表明什么原因退出进程,这个标志可以人为的约定好的。

 

转载于:http://topic.csdn.net/t/20041117/09/3560093.html

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值