調用ShellExecuteEx執行應用程序

SHELLEXECUTEINFO ShExecInfo = { 0 } ;
ShExecInfo.cbSize = sizeof( SHELLEXECUTEINFO ) ;
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS ;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = "DRSINJECT.exe";
ShExecInfo.lpParameters = " gamedata_x1 /Y";
ShExecInfo.lpDirectory = "Game//Data//" ;
ShExecInfo.nShow = SW_SHOW;
ShExecInfo.hInstApp = NULL ;
ShellExecuteEx(&ShExecInfo);
WaitForSingleObject(ShExecInfo.hProcess,INFINITE);

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章