69,371
社区成员
发帖
与我相关
我的任务
分享
int fn_exec (char *command)
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
ZeroMemory( &pi, sizeof(pi) );
si.cb = sizeof(STARTUPINFO);
si.lpReserved = NULL;
si.dwX = si.dwY = si.dwXSize = si.dwYSize = 0L;
si.dwFlags=STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
si.lpReserved2 = NULL;
si.cbReserved2 = 0;
if(!CreateProcess( NULL,
command,
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi )
)
return ER;
return OK;
}