Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.Runtime.InteropServices.CallingConvention

Assembly: System.Runtime.InteropServices

Specifies the calling convention required to call methods implemented in unmanaged code.

Values

Winapi
This member is not actually a calling convention, but instead uses the default platform calling convention.
Cdecl
The caller cleans the stack. This enables calling functions with <see langword="varargs" /> , which makes it appropriate to use for methods that accept a variable number of parameters, such as <see langword="Printf" /> .
StdCall
The callee cleans the stack.
ThisCall
The first parameter is the <see langword="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.
FastCall
This calling convention is not supported.