[Mono-list] (no subject)

fgonthier@hermes.usherb.ca fgonthier@hermes.usherb.ca
Thu, 07 Nov 2002 14:08:25 -0500 (EST)


There is an error (I think) in:

namespace System.Reflection.Emit {
        public enum PEFileKinds {
                Dll = 1,
                ConsoleApplication = 2,
                WindowApplication = 3
        }
}

From WinNT.h I see:

#define IMAGE_SUBSYSTEM_WINDOWS_GUI 2 // Image runs in the Windows GUI 
subsystem.
#define IMAGE_SUBSYSTEM_WINDOWS_CUI 3 // Image runs in the Windows character 
subsystem.

This is the solution to bug #32287.  PE files with the subsystem field set to 
Windows GUI won't use the console.

Perhaps I mixed few things but this look like true because if I change that 
subsystem field manually in a file produced by .NET, I don't get any console 
outputs.

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/GO d+(-) s a-- C++ UL? P L+(++) E--- W N+ o-- K- w++ O--- M? V? PS PE Y+ 
PGP- t+ 5(+) X-- R tv+ b+ DI+++(++++) D+(++) G-- !e h-- r++ y+
------END GEEK CODE BLOCK------