Source.c 419 B

12345678910111213
  1. #include <stdio.h>
  2. #include <Windows.h>
  3. int main() {
  4. STARTUPINFO si = { 0 };
  5. PROCESS_INFORMATION pi = { 0 };
  6. char* koef = "zzz";
  7. char path2[256];
  8. char* path = "..\\x64\\Debug\\child.exe";
  9. sprintf(path2, "%s \"%s\"", path, koef);
  10. CreateProcessA(path, koef, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &si, &pi);
  11. CreateProcessA(NULL, path2, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &si, &pi);
  12. }