Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x02000599 RID: 1433
[Token(Token = "0x2000599")]
[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: 0x040019EB RID: 6635
[Token(Token = "0x40019EB")]
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: 0x040019EC RID: 6636
[Token(Token = "0x40019EC")]
Cdecl,
/// <summary>The callee cleans the stack. This is the default convention for calling unmanaged functions with platform invoke.</summary>
// Token: 0x040019ED RID: 6637
[Token(Token = "0x40019ED")]
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: 0x040019EE RID: 6638
[Token(Token = "0x40019EE")]
ThisCall,
/// <summary>This calling convention is not supported.</summary>
// Token: 0x040019EF RID: 6639
[Token(Token = "0x40019EF")]
FastCall
}
}