CreateProcess返回错误号6是怎么回事?
以下这个简单的程序返回错误6,请问如何解决?
//////////////////////////////////////////////////////////////
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{int derror;
char strName[100];
// strcpy(strName,"C:\\WINNT\\system32\\dllcache\\winmine.exe");
STARTUPINFO startInfo;
GetStartupInfo(&startInfo);
PROCESS_INFORMATION proInfo;
CreateProcess("C:\\WINNT\\system32 \\dllcache\\winmine.exe",NULL,NULL
,NULL,FALSE,NORMAL_PRIORITY_CLASS,
NULL,NULL,&startInfo,&proInfo);
derror=GetLastError();
return 0;
}