Wenn sich die Executable im selben Verzeichnis befindet, geht das relativ einfach.
Entweder
Code:
std::string commandLine("Process.exe ");
commandLine += parameter;
oder
Code:
char szPath[MAX_PATH];
GetFullPathNameA("Process.exe", MAX_PATH, szPath, nullptr);
und anschließender CreateProcess so aufrufen:
Code:
CreateProcessA(nullptr, const_cast<char *>(commandLine.c_str()), nullptr, nullptr, FALSE, 0, nullptr, nullptr, &startupInfo, &processInfo)