Method
Description
CallingConvention
Required to call methods implemented in unmanaged code; represented by the CallingConvention enumeration.
CharSet
Controls name mangling and indicate how to marshal String arguments to the method.
EntryPoint
Identifies the name or ordinal of the DLL entry point to be called.
ExactSpelling
Indicates whether the name of the entry point in the unmanaged DLL should be modified to correspond to the CharSet value specified in the CharSet field.
PreserveSig
Specifies that the managed method signature should not be transformed into an unmanaged signature that returns an HRESULT structure, and may have an additional argument (out or retval) for the return value.
SetLastError
Specifies that the callee will call the Win32 API SetLastError method before returning from the named method.
Cdec1
The caller cleans the stack. The property enables calling functions with varargs.
FastCall
For future use.
StdCall
The called cleans the stack. This is the default convention for calling unmanaged functions from managed code.
ThisCall
The first parameter is the this pointer and is stored in the ECX register. Other parameters are pushed onto the stack. This calling convention is used to call methods in classes exported from an unmanaged DLL.
Winapi
Uses the default platform-calling convention. For example, on Windows it's StdCall, and on Windows CE it's Cdecl.