System.Runtime.InteropServices.ComTypes.CALLCONV Enumeration

Identifies the calling convention used by a method described in a METHODDATA structure.

Syntax

public enum CALLCONV

Remarks

The calling conventions in this class describe how functions pass arguments and return values. They specify the order in which parameters are set up for the called functions, where the parameters are stored (in registers or in memory), and who (caller or called function) is responsible for cleaning up the stack after the function returns. For example:

These calling convention identifiers are used by the dnprdnshort, the wince platform, and by Automation.

For additional information about System.Runtime.InteropServices.ComTypes.CALLCONV, see the MSDN Library.

The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see How to: Map HRESULTs and Exceptions.

Members

Member NameDescription
CC_CDECL

Indicates that the C declaration (CDECL) calling convention is used for a method.

CC_MACPASCAL

Indicates that the Macintosh Pascal (MACPASCAL) calling convention is used for a method.

CC_MAX

Indicates the end of the System.Runtime.InteropServices.ComTypes.CALLCONV enumeration.

CC_MPWCDECL

Indicates that the Macintosh Programmers' Workbench (MPW) CDECL calling convention is used for a method.

CC_MPWPASCAL

Indicates that the Macintosh Programmers' Workbench (MPW) PASCAL calling convention is used for a method.

CC_MSCPASCAL

Indicates that the MSC Pascal (MSCPASCAL) calling convention is used for a method.

CC_PASCAL

Indicates that the Pascal calling convention is used for a method.

CC_RESERVED

This value is reserved for future use.

CC_STDCALL

Indicates that the standard calling convention (STDCALL) is used for a method.

CC_SYSCALL

Indicates that the standard SYSCALL calling convention is used for a method.

Requirements

Namespace: System.Runtime.InteropServices.ComTypes
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0