You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can't do that with a const char* in general case because this parameter is actually being written to by windows runtime. It's better to copy the cmd line.
The text was updated successfully, but these errors were encountered:
if(!CreateProcess(NULL, // No module name (use command line)
(LPSTR) command,// Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inheritance to FALSE
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi) // Pointer to PROCESS_INFORMATION structure
)
(LPSTR) command,// Command line
you can't do that with a const char* in general case because this parameter is actually being written to by windows runtime. It's better to copy the cmd line.
The text was updated successfully, but these errors were encountered: