Programming, System Programming, Win32, C.
printf("too many arguments..\n\n"); return; } if (!SetEnvironmentVariable(g_params[1], g_nparams == 3 ? g_params[2] : NULL)) { PrintSysErr(); return; } } void RunProcess(void) { STARTUPINFO si = {sizeof(STARTUPINFO)}; PROCESS_INFORMATION pi; char cmdLine[MAX_CMD_LINE]; TrimCmd(cmdLine);