System.Reflection.MethodImportAttributes
Specifies flags for the unmanaged method import attributes.
Specifies that the best-fit mapping behavior when converting Unicode characters to ANSI characters is disabled.
BestFitMappingEnable = 16
Specifies that the best-fit mapping behavior when converting Unicode characters to ANSI characters is enabled.
BestFitMappingMask = 48
Specifies whether the best-fit mapping behavior when converting Unicode characters to ANSI characters is enabled or disabled.
CallingConventionCDecl = 512
Specifies that the calling convention is CDecl.
CallingConventionFastCall = 1280
Specifies that the calling convention is FastCall.
CallingConventionMask = 1792
Specifies the calling convention.
CallingConventionStdCall = 768
Specifies that the calling convention is StdCall.
CallingConventionThisCall = 1024
Specifies that the calling convention is ThisCall.
CallingConventionWinApi = 256
Specifies that the default platform calling convention is used.
CharSetAnsi = 2
Specifies that strings are marshalled as multiple-byte character strings: the system default Windows (ANSI) code page on Windows, and UTF-8 on Unix.
CharSetAuto = 6
Specifies that the character set is chosen automatically. See Charsets and marshaling for details.
CharSetMask = 6
Specifies the character set used for string marshalling.
CharSetUnicode = 4
Specifies that strings are marshalled as Unicode 2-byte character strings.
ExactSpelling = 1
Specifies that the Common Language Runtime should not try an entry-point names with charset-specific suffixes when searching for the imported method.
None = 0
Specifies default method import attributes.
SetLastError = 64
Specifies that the imported method calls the SetLastError Windows API function before returning.
ThrowOnUnmappableCharDisable = 8192
Specifies that an exception should not be thrown when an unmappable Unicode character is converted to an ANSI character.
ThrowOnUnmappableCharEnable = 4096
Specifies that an exception should be thrown when an unmappable Unicode character is converted to an ANSI character.
ThrowOnUnmappableCharMask = 12288
Specifies whether an exception should be thrown when an unmappable Unicode character is converted to an ANSI character.