/Mono.Cecil/PInvokeAttributes.cs
C# | 44 lines | 25 code | 8 blank | 11 comment | 0 complexity | 65f69c4d5bd93c96f53b9ad95f97c627 MD5 | raw file
1// 2// Author: 3// Jb Evain (jbevain@gmail.com) 4// 5// Copyright (c) 2008 - 2015 Jb Evain 6// Copyright (c) 2008 - 2011 Novell, Inc. 7// 8// Licensed under the MIT/X11 license. 9// 10 11using System; 12 13namespace Mono.Cecil { 14 15 [Flags] 16 public enum PInvokeAttributes : ushort { 17 NoMangle = 0x0001, // PInvoke is to use the member name as specified 18 19 // Character set 20 CharSetMask = 0x0006, 21 CharSetNotSpec = 0x0000, 22 CharSetAnsi = 0x0002, 23 CharSetUnicode = 0x0004, 24 CharSetAuto = 0x0006, 25 26 SupportsLastError = 0x0040, // Information about target function. Not relevant for fields 27 28 // Calling convetion 29 CallConvMask = 0x0700, 30 CallConvWinapi = 0x0100, 31 CallConvCdecl = 0x0200, 32 CallConvStdCall = 0x0300, 33 CallConvThiscall = 0x0400, 34 CallConvFastcall = 0x0500, 35 36 BestFitMask = 0x0030, 37 BestFitEnabled = 0x0010, 38 BestFitDisabled = 0x0020, 39 40 ThrowOnUnmappableCharMask = 0x3000, 41 ThrowOnUnmappableCharEnabled = 0x1000, 42 ThrowOnUnmappableCharDisabled = 0x2000, 43 } 44}