Opened 11 years ago
Closed 10 years ago
#13243 closed enhancement (fixed)
Propagate startupinfo to the child process (>= 4.3.14, Windows)
Reported by: | mskov | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.3.14 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Windows |
Description
With the hardening changes introduced with 4.3.14 it is not possible anymore to start a VM with the "hidden" window by executing virtualbox.exe --startvm with the SW_HIDE flag set in the STARTUPINFO data structure. It would be nice if this flag (and possibly other information) could be propagated to the child process created in "SUPR3HardenedMain-win.cpp". E.g., a fix like that:
@@ -1288,6 +1288,14 @@
SiEx.StartupInfo.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE); SiEx.StartupInfo.hStdError = GetStdHandle(STD_ERROR_HANDLE);
+ STARTUPINFOA si; + GetStartupInfoA(&si); + if (si.wShowWindow == SW_HIDE && (si.dwFlags & STARTF_USESHOWWINDOW)) + { + SiEx.StartupInfo.wShowWindow = SW_HIDE; + SiEx.StartupInfo.dwFlags = STARTF_USESHOWWINDOW; + } +
/*
- Set up security descriptors. */
This feature is nice, because it allows to hide the VM startup process from the user and only show the window when the VM is running. Alternatively, one could implement an option "start_minimized" or "start_hidden" controlled by vboxmanage.
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the report. I've addressed the issue, unfortunately it didn't make it in time for 4.3.16. So, I'm afraid you will have to wait for 4.3.18.
Sorry for the bad formatting.