[Mono-list] Re: [Gtk-sharp-list] Dos window - when launch app onWin32 OS - how to remove it ?

Francis Brosnan Blazquez francis at aspl.es
Fri Jul 15 09:20:49 EDT 2005


El vie, 15-07-2005 a las 11:37 +0200, Kornél Pál escribió:

> 
> Managed applications are not native Win32 applications so the console window
> (official name of dos box) is not dependent on them. It is dependent however
> on the exe file that was used to create the native Win32 process. In the
> case of MS .NET Framework runtime this is the managed exe file altough it's
> runned against the runtime. In case of Mono this is mono.exe. There is a
> flag in PE header (IMAGE_OPTIONAL_HEADER.Subsystem) that specifies a
> subsystem (for example Win32 GUI, Win32 CUI) used by the application. If it
> is IMAGE_SUBSYSTEM_WINDOWS_CUI it will be attached to the existing console
> or a new console window will be created it the process group hasn't got one.
> If it is IMAGE_SUBSYSTEM_WINDOWS_GUI no new console window will be created
> and the process will not be attached to the existing console window. Mono
> has IMAGE_SUBSYSTEM_WINDOWS_CUI to be able to provide /target:exe (console)
> functionality. This results however in a console window for /target:winexe
> (GUI) applications as well.
Hi Kornél,

Thanks for your reply,

Does this mean that using mono on windos will imply to have allways a
dos box, no matter the value used for the /target option?

Does this also mean that in the future, mono runtime on windows will
allways generate a dos box withtout being a bug, according to your
description?

Cheers,


> 
> Kornél
> 
> 
> 
-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.



More information about the Mono-list mailing list