//CreateProcess fuction variables
STARTUPINFO si;
PROCESS_INFORMATION pi;
DWORD dwExit;
TCHAR szdrvInstX64[MAX_PATH];
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
wsprintf(szdrvInstX64, "%s%s", szCurModPath, ITEM2SETUPPATH);
if( !CreateProcess( NULL, szdrvInstX64, NULL, NULL, FALSE, 0, NULL, NULL,
&si, &pi) )
{
::AfxMessageBox("CreateProcess() failed!");
return;
}
//Set itself to bottom.
::ShowWindow(hWndMain, SW_MINIMIZE);
WaitForSingleObject( pi.hProcess, INFINITE ); // Wait until child process
exits.
GetExitCodeProcess(pi.hProcess, &dwExit);
CloseHandle( pi.hProcess ); // Close process and thread handles.
CloseHandle( pi.hThread );
::ShowWindow(hWndMain, SW_RESTORE);
==> 本文由 "Vannes <Van...@discussions.microsoft.com>"
> 於 news:72D3C3A1-E0E5-4FC2-B363-F33CFD80D9A4%40microsoft.com 發表
--
風禹科技驗證有限公司 ASP.NET Web News Reader 0.2.6 UTF-8 Beta
網站地圖 http://tlcheng.twbbs.org/wwwmap.htm
流域防洪/區域水資源/徐昇網/玫瑰圖/語音通訊 文章與程式
Basic/Fortran/Windows API/.Net/輔助說明檔 原始碼、文章與討論
微軟程式設計、系統管理使用新技術論壇討論區,網友回覆後即時簡訊、電子郵件通知:
MSDN: http://forums.microsoft.com/msdn-cht/default.aspx?siteid=14
TechNet: http://forums.microsoft.com/technet-cht/default.aspx?siteid=23
--
ASPNET News Reader http://tlcheng.twbbs.org/News/Reader.aspx
RSS 2.0 http://tlcheng.twbbs.org/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.vsnet
"璉璉" 來函:
==> 本文由 "Vannes <Van...@discussions.microsoft.com>"
> 於 news:789A93A7-CB1F-47BB-884E-01A6E9883EA2%40microsoft.com 發表