资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

可不可以设置ExitCode

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

可不可以设置ExitCode  
  怎样写,怎样调用。  
   
  (只是想把ExitCode返回给后台程序)  
 

网友回答:

发表者:beyondtkl

比如说  
  进程的   VOID   ExitProcess(  
      UINT   uExitCode       //   exit   code   for   all   threads  
  );  
   
  GetExitCodeProcess  
  The   GetExitCodeProcess   function   retrieves   the   termination   status   of   the   specified   process.    
   
  BOOL   GetExitCodeProcess(  
      HANDLE   hProcess,           //   handle   to   the   process  
      LPDWORD   lpExitCode       //   address   to   receive   termination   status  
  );  
   
  线程的   GetExitCodeThread  
  The   GetExitCodeThread   function   retrieves   the   termination   status   of   the   specified   thread.    
   
  BOOL   GetExitCodeThread(  
      HANDLE   hThread,             //   handle   to   the   thread  
      LPDWORD   lpExitCode       //   address   to   receive   termination   status  
  );  
   
  比如C++的   main  
  int   main()  
  {  
      return   0;   //   就是ExitCode.  
  }  
   
  应该可以通过上面的函数获取。


 

 
热门推荐笔记本: 惠普笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved