乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      CreateProcess執(zhí)行一個控制臺程序,隱藏DOS窗口

       水中麒麟 2015-11-19
      引用:

      http://www.cnblogs.com/liuweilinlin/archive/2012/08/20/2647168.html


      STARTUPINFO   StartupInfo;//創(chuàng)建進程所需的信息結(jié)構(gòu)變量    
      GetStartupInfo(&StartupInfo);    
      StartupInfo.lpReserved=NULL;    
      StartupInfo.lpDesktop=NULL;    
      StartupInfo.lpTitle=NULL;    
      StartupInfo.dwX=0;    
      StartupInfo.dwY=0;    
      StartupInfo.dwXSize=0;    
      StartupInfo.dwYSize=0;    
      StartupInfo.dwXCountChars=500;    
      StartupInfo.dwYCountChars=500;    
      StartupInfo.dwFlags=STARTF_USESHOWWINDOW;    
      StartupInfo.wShowWindow=SW_HIDE;    
      //說明進程將以隱藏的方式在后臺執(zhí)行    
      StartupInfo.cbReserved2=0;    
      StartupInfo.lpReserved2=NULL;    
      StartupInfo.hStdInput=stdin;    
      StartupInfo.hStdOutput=stdout;    
      StartupInfo.hStdError=stderr;    
      PROCESS_INFORMATION   piProcess;    
      BOOL   bRet;    
      bRet   =   CreateProcess(modName,NULL,NULL,NULL,TRUE,CREATE_NO_WINDOW ,NULL,NULL,&StartupInfo,&piProcess);   
      if(bRet)    
      CloseHandle(piProcess.hThread);        
      CloseHandle(piProcess.hProcess); 
      注意其中的StartupInfo.dwFlags=STARTF_USESHOWWINDOW;是必須的,要不然showwindow的參數(shù)將無效,詳細的MSDN上寫得清楚

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多