System.Runtime.InteropServices.CallingConvention Enumeration

Assembly: Mscorlib.dll
Namespace: System.Runtime.InteropServices
Summary
Specifies the calling convention required to call methods implemented in unmanaged code.
C# Syntax:
[Serializable]
public enum CallingConvention
Remarks
This enumeration is used by DllImportAttribute and several classes in System.Reflection.Emit.
See also:
System.Runtime.InteropServices Namespace

System.Runtime.InteropServices.CallingConvention Member List:

Public Fields
Cdecl The caller cleans the stack. This enables calling functions with varargs.
FastCall
StdCall The callee 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 register ECX. Other parameters are pushed on the stack. This calling convention is used to call methods on classes exported from an unmanaged DLL.
Winapi Uses the default platform calling convention. For example, on Windows it's CallingConvention.StdCall and on Windows CE it's CallingConvention.Cdecl.

Hierarchy:


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.