i am having trouble incorporating this createprocess function with opening a execultable.. it is in c++ and i keep getting 2 error messages which are
C:\Program Files\Microsoft Visual Studio\MyProjects\process\process.cpp(24) : error C2143: syntax error : missing ')' before ';'
C:\Program Files\Microsoft Visual Studio\MyProjects\process\process.cpp(27) : error C2065: 'IpApplicationName' : undeclared identifier
and here is my code
bool CreateProcess(
char IpApplicationName[1000];
STARTUPINFO StartInfo;
PROCESS_INFORMATION ProcessInfo;
strcpy(IpApplicationName, "c:\\windows\\system32\\calc.exe");
ZeroMemory(&StartInfo, sizeof(StartInfo));
StartInfo.cb = sizeof(StartInfo);
if (!CreateProcess(IpApplicationName, NULL, NULL, NULL, FALSE,
HIGH_PRIORITY_CLASS | CREATE_NEW_CONSOLE, NULL, NULL,
&StartInfo, &ProcessInfo))
printf("===Closing the copy File Process, continue>===\n\n");
CloseHandle(&ProcessInfo.hThread);
CloseHandle(&ProcessInfo.hProcess);
}