CSDN博客

img plusir

调用ShellExecuteEx执行应用程序

发表于2004/6/27 3:54:00  1762人阅读

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);

0 0

相关博文

我的热门文章

img
取 消
img