Programming, System Programming, Win32, C.
PROCESS_INFORMATION pi; TCHAR cmdLine[] = TEXT("Notepad.exe"); if (!CreateProcess(NULL, cmdLine, NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &si, &pi)) { _ftprintf(stderr, TEXT("Cannot create process!..\n")); exit(EXIT_FAILURE); } _tprintf(TEXT("Press ENTER to exit")); getchar(); return 0; }