Создаём класс Enums.cs
using System;
internal class Enums
{
[Flags]
public enum ExeType : int
{
None = 0,
WinNT = 0x04000000,
PE = 'P' | ('E' << 8),
NE = 'N' | ('E' << 8),
MZ = 'M' | ('Z' << 8),
}
}
Создаём класс NativeMethods.cs
using System;
using...