If you call the WinAPI function CreateProcess ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx ), you can choose if the new process should inherit the ErrorMode of the caller.
My question is if a process started with the C# Process.Start-method ( http://msdn.microsoft.com/en-us/library/e8zac0ca.aspx ) inherits the ErrorMode of the caller, of if it gets the default ErrorMode?
I can't seem to find this in the documentation on MSDN...
If you watch with resharper/ilspy and/or you watch the sources of .NET you'll see that in Process.StartWithCreateProcess(ProcessStartInfo startInfo)
all the magic happens.
num2
is the variable that contains the dwCreationFlags
. Your flag isn't visible anywhere. Sometimes StartWithCreateProcess
sets the 0x8000000 ( CREATE_NO_WINDOW
) (if the CreateNoWindow
parameter is set) and the 0x400 ( CREATE_UNICODE_ENVIRONMENT
) (if the system is NT based) flags, but that's all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.