/* * Copyright (c) 2002 Sergey Chaban */ using System; namespace Mono.PEToolkit.Metadata { /// /// Flags for ImplMap. /// /// /// See Partition II, 22.1.7; /// This is similar to PInvokeMap enum found /// in older XML library spec (all.xml). /// [Flags] public enum PInvokeAttributes { /// /// PInvoke is to use the member name as specified. /// NoMangle = 0x0001, /// /// CharSetMask = 0x0006, /// /// CharSetNotSpec = 0x0000, /// /// CharSetAnsi = 0x0002, // specs: CharSetAns /// /// CharSetUnicode = 0x0004, /// /// CharSetAuto = 0x0006, CallConvMask = 0x0700, CallConvWinapi = 0x0100, CallConvCdecl = 0x0200, CallConvStdcall = 0x0300, CallConvThiscall = 0x0400, CallConvFastcall = 0x0500, PinvokeOLE = 0x0020, // as reported by verifier, not in specs // also value from all.xml SupportsLastError = 0x0040, } }