3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 * Copyright (c) 2002 Sergey Chaban <serge@wildwestsoftware.com>
26 namespace Mono
.PEToolkit
{
30 public enum Subsystem
: short {
33 /// Unknown subsystem.
36 /// IMAGE_SUBSYSTEM_UNKNOWN
41 /// Image doesn't require a subsystem.
44 /// IMAGE_SUBSYSTEM_NATIVE
49 /// Image runs in the Windows GUI subsystem.
52 /// IMAGE_SUBSYSTEM_WINDOWS_GUI
57 /// Image runs in the Windows character subsystem.
60 /// IMAGE_SUBSYSTEM_WINDOWS_CUI
65 /// Image runs in the OS/2 character subsystem.
68 /// IMAGE_SUBSYSTEM_OS2_CUI
73 /// Image runs in the Posix character subsystem.
76 /// IMAGE_SUBSYSTEM_POSIX_CUI
81 /// Image is a native Win9x driver.
84 /// IMAGE_SUBSYSTEM_NATIVE_WINDOWS
89 /// Image runs in the Windows CE subsystem.
92 /// IMAGE_SUBSYSTEM_WINDOWS_CE_GUI
99 /// IMAGE_SUBSYSTEM_EFI_APPLICATION
101 EFI_APPLICATION
= 10,
106 /// IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER
108 EFI_BOOT_SERVICE_DRIVER
= 11,
113 /// IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER
115 EFI_RUNTIME_DRIVER
= 12,
120 /// IMAGE_SUBSYSTEM_EFI_ROM
127 /// IMAGE_SUBSYSTEM_XBOX