using System; using Cpp2IlInjected; namespace System.Runtime.InteropServices { /// Specifies the calling convention required to call methods implemented in unmanaged code. // Token: 0x02000599 RID: 1433 [Token(Token = "0x2000599")] [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: 0x040019EB RID: 6635 [Token(Token = "0x40019EB")] 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: 0x040019EC RID: 6636 [Token(Token = "0x40019EC")] Cdecl, /// The callee cleans the stack. This is the default convention for calling unmanaged functions with platform invoke. // Token: 0x040019ED RID: 6637 [Token(Token = "0x40019ED")] 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: 0x040019EE RID: 6638 [Token(Token = "0x40019EE")] ThisCall, /// This calling convention is not supported. // Token: 0x040019EF RID: 6639 [Token(Token = "0x40019EF")] FastCall } }