Table of Contents

Enum ImplementationMapAttributes

Namespace
AsmResolver.PE.DotNet.Metadata.Tables
Assembly
AsmResolver.PE.dll

Provides members defining all possible flags that can be assigned to a P/Invoke implementation mapping.

[Flags]
public enum ImplementationMapAttributes : ushort

Fields

BestFitDisabled = 32

Indicates best-fit mapping behavior when converting Unicode characters to ANSI characters is disabled.

BestFitEnabled = 16

Indicates best-fit mapping behavior when converting Unicode characters to ANSI characters is enabled.

BestFitMask = BestFitEnabled | BestFitDisabled

Provides a mask for the best-fit behaviour.

BestFitUseAssem = 0

Indicates best fit mapping behavior when converting Unicode characters to ANSI characters is determined by the runtime.

CallConvCdecl = 512

Indicates P/Invoke will use the C calling convention.

CallConvFastcall = CallConvWinapi | CallConvThiscall

Indicates P/Invoke will use the fastcall calling convention.

CallConvMask = CallConvCdecl | CallConvFastcall

Provides a mask for the calling convention flags.

CallConvStdcall = CallConvWinapi | CallConvCdecl

Indicates P/Invoke will use the stdcall calling convention.

CallConvThiscall = 1024

Indicates P/Invoke will use the thiscall calling convention.

CallConvWinapi = 256

Indicates P/Invoke will use the native calling convention appropriate to target windows platform.

CharSetAnsi = 2

Indicates the character set used is ANSI.

CharSetAuto = CharSetAnsi | CharSetUnicode

Indicates the character set is determined by the runtime.

CharSetMask = CharSetAnsi | CharSetUnicode

Provides a mask for the character set.

CharSetNotSpec = 0

Indicates the character set was not specified.

CharSetUnicode = 4

Indicates the character set used is unicode.

NoMangle = 1

Indicates no name mangling was used.

SupportsLastError = 64

Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method.

ThrowOnUnmappableCharDisabled = 8192

Indicates the runtime will not throw an exception on an unmappable Unicode character that is converted to an ANSI "?" character.

ThrowOnUnmappableCharEnabled = 4096

Indicates the runtime will throw an exception on an unmappable Unicode character that is converted to an ANSI "?" character.

ThrowOnUnmappableCharMask = ThrowOnUnmappableCharEnabled | ThrowOnUnmappableCharDisabled

Provides a mask for the throw on unmappable behaviour.

ThrowOnUnmappableCharUseAssem = 0

Indicates the throw behaviour on an unmappable Unicode character is undefined.