2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mcs / class / Mono.PEToolkit / ExeSignature.cs
1 \r
2 //\r
3 // Permission is hereby granted, free of charge, to any person obtaining\r
4 // a copy of this software and associated documentation files (the\r
5 // "Software"), to deal in the Software without restriction, including\r
6 // without limitation the rights to use, copy, modify, merge, publish,\r
7 // distribute, sublicense, and/or sell copies of the Software, and to\r
8 // permit persons to whom the Software is furnished to do so, subject to\r
9 // the following conditions:\r
10 // \r
11 // The above copyright notice and this permission notice shall be\r
12 // included in all copies or substantial portions of the Software.\r
13 // \r
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
21 //\r
22 /*\r
23  * Copyright (c) 2002 Sergey Chaban <serge@wildwestsoftware.com>\r
24  */\r
25 \r
26 namespace Mono.PEToolkit {\r
27 \r
28         public enum ExeSignature : ushort {\r
29 \r
30                 UNKNOWN = 0,\r
31 \r
32                 /// <summary>\r
33                 ///  "MZ"\r
34                 /// </summary>\r
35                 /// <remarks>\r
36                 ///  IMAGE_DOS_SIGNATURE\r
37                 /// </remarks>\r
38                 DOS = 0x5A4D,\r
39 \r
40 \r
41                 /// <summary>\r
42                 /// "NE"\r
43                 /// </summary>\r
44                 /// <remarks>\r
45                 ///  IMAGE_OS2_SIGNATURE\r
46                 /// </remarks>\r
47                 OS2 = 0x454E,\r
48 \r
49 \r
50                 /// <summary>\r
51                 ///  "LE"\r
52                 /// </summary>\r
53                 /// <remarks>\r
54                 ///  IMAGE_OS2_SIGNATURE_LE\r
55                 /// </remarks>\r
56                 OS2_LE = 0x454C,\r
57 \r
58 \r
59                 /// <summary>\r
60                 ///  "LE"\r
61                 /// </summary>\r
62                 /// <remarks>\r
63                 ///  IMAGE_VXD_SIGNATURE\r
64                 /// </remarks>\r
65                 VXD = OS2_LE,\r
66 \r
67 \r
68                 /// <summary>\r
69                 ///  "PE", the complete signature is "PE\0\0"\r
70                 ///  (that is, NT followed by NT2).\r
71                 /// </summary>\r
72                 /// <remarks>\r
73                 ///  IMAGE_NT_SIGNATURE\r
74                 /// </remarks>\r
75                 NT = 0x4550,\r
76                 NT2 = 0\r
77         }\r
78 \r
79 }\r