CorPinvokeMap class

Specifies options for a PInvoke call.

Constructors

CorPinvokeMap()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

pmBestFitDisabled → const int
Do not perform best-fit mapping of Unicode characters. In this case, all unmappable characters will be replaced by a ‘?’.
pmBestFitEnabled → const int
Perform best-fit mapping of Unicode characters that lack an exact match in the ANSI character set.
pmBestFitMask → const int
Reserved.
pmBestFitUseAssem → const int
Reserved.
pmCallConvCdecl → const int
Use the Cdecl calling convention. In this case, the caller cleans the stack. This enables calling functions with varargs (that is, functions that accept a variable number of parameters).
pmCallConvFastcall → const int
Reserved.
pmCallConvMask → const int
Reserved.
pmCallConvStdcall → const int
Use the StdCall calling convention. In this case, the callee cleans the stack. This is the default convention for calling unmanaged functions with platform invoke.
pmCallConvThiscall → const int
Use the ThisCall calling convention. In this case, the first parameter is the this pointer and is stored in register ECX. Other parameters are pushed on the stack. The ThisCall calling convention is used to call methods on classes exported from an unmanaged DLL.
pmCallConvWinapi → const int
Use the default platform calling convention. For example, on Windows the default is StdCall and on Windows CE .NET it is Cdecl.
pmCharSetAnsi → const int
Marshal strings as multiple-byte character strings.
pmCharSetAuto → const int
Automatically marshal strings appropriately for the target operating system. The default is Unicode on Windows NT, Windows 2000, Windows XP, and the Windows Server 2003 family; the default is ANSI on Windows 98 and Windows Me.
pmCharSetMask → const int
Reserved.
pmCharSetNotSpec → const int
Reserved.
pmCharSetUnicode → const int
Marshal strings as Unicode 2-byte characters.
pmMaxValue → const int
Reserved.
pmNoMangle → const int
Use each member name as specified.
pmSupportsLastError → const int
Allow the callee to call the Win32 SetLastError function before returning from the attributed method.
pmThrowOnUnmappableCharDisabled → const int
Do not throw an exception when the interop marshaler encounters an unmappable character.
pmThrowOnUnmappableCharEnabled → const int
Throw an exception when the interop marshaler encounters an unmappable character.
pmThrowOnUnmappableCharMask → const int
Reserved.
pmThrowOnUnmappableCharUseAssem → const int
Reserved.