/Mono.Cecil/PInvokeAttributes.cs

http://github.com/jbevain/cecil · 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. using System;
  11. namespace Mono.Cecil {
  12. [Flags]
  13. public enum PInvokeAttributes : ushort {
  14. NoMangle = 0x0001, // PInvoke is to use the member name as specified
  15. // Character set
  16. CharSetMask = 0x0006,
  17. CharSetNotSpec = 0x0000,
  18. CharSetAnsi = 0x0002,
  19. CharSetUnicode = 0x0004,
  20. CharSetAuto = 0x0006,
  21. SupportsLastError = 0x0040, // Information about target function. Not relevant for fields
  22. // Calling convetion
  23. CallConvMask = 0x0700,
  24. CallConvWinapi = 0x0100,
  25. CallConvCdecl = 0x0200,
  26. CallConvStdCall = 0x0300,
  27. CallConvThiscall = 0x0400,
  28. CallConvFastcall = 0x0500,
  29. BestFitMask = 0x0030,
  30. BestFitEnabled = 0x0010,
  31. BestFitDisabled = 0x0020,
  32. ThrowOnUnmappableCharMask = 0x3000,
  33. ThrowOnUnmappableCharEnabled = 0x1000,
  34. ThrowOnUnmappableCharDisabled = 0x2000,
  35. }
  36. }