DllImportAttribute Fields

DllImportAttribute Fields

 

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubfieldBestFitMapping

Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.

System_CAPS_pubfieldCallingConvention

Indicates the calling convention of an entry point.

System_CAPS_pubfieldCharSet

Indicates how to marshal string parameters to the method and controls name mangling.

System_CAPS_pubfieldEntryPoint

Indicates the name or ordinal of the DLL entry point to be called.

System_CAPS_pubfieldExactSpelling

Controls whether the DllImportAttribute.CharSet field causes the common language runtime to search an unmanaged DLL for entry-point names other than the one specified.

System_CAPS_pubfieldPreserveSig

Indicates whether unmanaged methods that have HRESULT or retval return values are directly translated or whether HRESULT or retval return values are automatically converted to exceptions.

System_CAPS_pubfieldSetLastError

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

System_CAPS_pubfieldThrowOnUnmappableChar

Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character.

Return to top
Show:
© 2016 Microsoft