STARTUPINFO StartUpInfo;
PROCESS_INFORMATION ProcessInfo;
StartUpInfo.cb = sizeof( StartUpInfo );
StartUpInfo.lpReserved = NULL;
StartUpInfo.dwFlags = 0;
StartUpInfo.cbReserved2 = 0;
StartUpInfo.lpReserved2 = NULL;
StartUpInfo.lpDesktop = NULL;
StartUpInfo.lpTitle = NULL;
StartUpInfo.dwX = 0;
StartUpInfo.dwY = 0;
StartUpInfo.dwXSize = 0;
StartUpInfo.dwYSize = 0;
StartUpInfo.dwXCountChars = 0;
StartUpInfo.dwYCountChars = 0;
StartUpInfo.dwFillAttribute = 0;
StartUpInfo.dwFlags = 0;
StartUpInfo.wShowWindow = 0;
StartUpInfo.hStdInput = NULL;
StartUpInfo.hStdOutput = NULL;
StartUpInfo.hStdError = NULL;
if( !CreateProcess( "C://Windows//System32//***.exe", //file,
"C://Windows//System32//***.exe", //commandLine,
NULL,
NULL,
FALSE,
HIGH_PRIORITY_CLASS,//0,
NULL,
NULL,
&StartUpInfo,
&ProcessInfo ) ){
MessageBox(NULL,"Create Process failed","Prompt",NULL);
}
CloseHandle( ProcessInfo.hThread );
CloseHandle( ProcessInfo.hProcess );
PROCESS_INFORMATION ProcessInfo;
StartUpInfo.cb = sizeof( StartUpInfo );
StartUpInfo.lpReserved = NULL;
StartUpInfo.dwFlags = 0;
StartUpInfo.cbReserved2 = 0;
StartUpInfo.lpReserved2 = NULL;
StartUpInfo.lpDesktop = NULL;
StartUpInfo.lpTitle = NULL;
StartUpInfo.dwX = 0;
StartUpInfo.dwY = 0;
StartUpInfo.dwXSize = 0;
StartUpInfo.dwYSize = 0;
StartUpInfo.dwXCountChars = 0;
StartUpInfo.dwYCountChars = 0;
StartUpInfo.dwFillAttribute = 0;
StartUpInfo.dwFlags = 0;
StartUpInfo.wShowWindow = 0;
StartUpInfo.hStdInput = NULL;
StartUpInfo.hStdOutput = NULL;
StartUpInfo.hStdError = NULL;
if( !CreateProcess( "C://Windows//System32//***.exe", //file,
"C://Windows//System32//***.exe", //commandLine,
NULL,
NULL,
FALSE,
HIGH_PRIORITY_CLASS,//0,
NULL,
NULL,
&StartUpInfo,
&ProcessInfo ) ){
MessageBox(NULL,"Create Process failed","Prompt",NULL);
}
CloseHandle( ProcessInfo.hThread );
CloseHandle( ProcessInfo.hProcess );