|
|
От: | Aretyk | |
| Дата: | 18.08.09 14:50 | ||
| Оценка: | |||
STARTUPINFO startupInfo = {0};
startupInfo.cb = sizeof(startupInfo);
PROCESS_INFORMATION processInformation;
// Try to start the process
BOOL result = ::CreateProcess(
NULL,
_T("C:\\bin32\\AION.bin -ip:127.0.0.1 -ng -noweb"),
NULL,
NULL,
FALSE,
NORMAL_PRIORITY_CLASS,
NULL,
NULL,
&startupInfo,
&processInformation);
if(result == 0) throw std::runtime_error("Could not create process");