When trying to execute cmd.exe with the SW_HIDE paramter:
ShellExecute(NULL, "open", "cmd.exe", NULL, NULL, SW_HIDE);
cmd.exe is actually executed hidden! I don't understand why this happened, does cmd.exe's console window considered to be a "normal" window that accepts the nCmdShow parameter, or does cmd.exe when executed sees that I passed SW_HIDE for the nCmdShow parameter and decides not to show the console window?
Note: I tried this code on Windows 7.
CreateProcess()with theCREATE_NO_WINDOWparameter, the system will not create any console window for cmd.exe? - James