using System; using Cpp2IlInjected; namespace System.Runtime.InteropServices { /// Specifies the calling convention required to call methods implemented in unmanaged code. // Token: 0x0200057A RID: 1402 [Token(Token = "0x200057A")] [ComVisible(true)] [Serializable] public enum CallingConvention { /// This member is not actually a calling convention, but instead uses the default platform calling convention. For example, on Windows the default is and on Windows CE.NET it is . // Token: 0x04001928 RID: 6440 [Token(Token = "0x4001928")] Winapi = 1, /// The caller cleans the stack. This enables calling functions with , which makes it appropriate to use for methods that accept a variable number of parameters, such as . // Token: 0x04001929 RID: 6441 [Token(Token = "0x4001929")] Cdecl, /// The callee cleans the stack. This is the default convention for calling unmanaged functions with platform invoke. // Token: 0x0400192A RID: 6442 [Token(Token = "0x400192A")] StdCall, /// The first parameter is the 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. // Token: 0x0400192B RID: 6443 [Token(Token = "0x400192B")] ThisCall, /// This calling convention is not supported. // Token: 0x0400192C RID: 6444 [Token(Token = "0x400192C")] FastCall } }