Files
2026-04-10 22:50:51 +02:00

35 lines
1.7 KiB
C#

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