RE: System.Diagnostics.ProcessStartInfo
- From: Mark <mmodrall@xxxxxxxxxxxxx>
- Date: Fri, 1 Feb 2008 06:29:02 -0800
Hi Jeffrey, Peter...
The thing that made me curious is that the app I'm launching is a console
app, but it still spawns a separate window.
To be specific, I'm writing a little application that helps with installing
an ASP.Net website, so my .net program is spawning aspnet_regiis.exe to make
sure the right version of .net is the default. That's a console app.
But when I use the Process.Start() code I posted, it ignores the
CreateNoWindow option and spawns a separate window. My .net app is also a
console app.
It seems that the flag just doesn't do anything at all.
Thanks
Mark
""Jeffrey Tan[MSFT]"" wrote:
Hi Mark,.
Yes, Pete is right. CreateNoWindow property internally encapsulates the
CREATE_NO_WINDOW flag passing to the Win32 CreateProcess API. From the
document below, you will see that it is merely used to hide the console
application window. This flag is ignored if the application is not a
console application:
http://msdn2.microsoft.com/en-us/library/ms684863(VS.85).aspx
If one GUI application is intended to be used to perform the background
processing work, it should accept certain command line arguments to run
without any GUI. Letting the end user to hide its GUI window is not a good
practise.
Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: System.Diagnostics.ProcessStartInfo
- From: "Jeffrey Tan[MSFT]"
- RE: System.Diagnostics.ProcessStartInfo
- References:
- RE: System.Diagnostics.ProcessStartInfo
- From: "Jeffrey Tan[MSFT]"
- RE: System.Diagnostics.ProcessStartInfo
- Prev by Date: Re: Dictionary<TKey, TValue> with user-defined class implementing IEquatable<T> as key
- Next by Date: Generics question
- Previous by thread: RE: System.Diagnostics.ProcessStartInfo
- Next by thread: RE: System.Diagnostics.ProcessStartInfo
- Index(es):
Relevant Pages
|