blob: 8c1d9c8fd200783fd10d2848acc2b5168ed9ab67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Compiler options: -platform:x86
using System;
using System.Reflection;
class Program {
public static int Main ()
{
PortableExecutableKinds pekind;
ImageFileMachine machine;
typeof (Program).Module.GetPEKind (out pekind, out machine);
if ((pekind & PortableExecutableKinds.ILOnly) == 0)
return 1;
if ((pekind & PortableExecutableKinds.Required32Bit) == 0)
return 2;
if (machine != ImageFileMachine.I386)
return 3;
return 0;
}
}
|