In other words, what I want to say is:Quote:
Yes you need a space, but that's not in order to put the argument at the second position, that's just to separate the Arguments from the executable path. All applications require this.
Code:
void main(){
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&si, 0, sizeof(si));
memset(&pi, 0, sizeof(pi));
si.cb = sizeof(si);
char * procName = "D:\\Conquer Online 2.0\\Conquer.exe";
[SIZE="4"][B]char * procArg = " blacknull";[/B][/SIZE]
if(CreateProcess(procName,procArg,0,0,0,CREATE_DEFAULT_ERROR_MODE,0,"D:\\Conquer Online 2.0",&si,&pi))
return 0;
printf("CreateProcess failed (%d).\n", GetLastError() );
system("Pause");
}