Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Runtime/InteropServices/UnmanagedFunctionPointerAttribute.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

52 lines
2.2 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// <summary>Controls the marshaling behavior of a delegate signature passed as an unmanaged function pointer to or from unmanaged code. This class cannot be inherited.</summary>
// Token: 0x02000565 RID: 1381
[Token(Token = "0x2000565")]
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Delegate)]
public sealed class UnmanagedFunctionPointerAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute" /> class with the specified calling convention.</summary>
/// <param name="callingConvention">The specified calling convention.</param>
// Token: 0x06002A95 RID: 10901 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A95")]
[Address(RVA = "0x4D83A0", Offset = "0x4D71A0", VA = "0x1804D83A0")]
public UnmanagedFunctionPointerAttribute(CallingConvention callingConvention)
{
}
// Token: 0x040018A8 RID: 6312
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40018A8")]
private CallingConvention m_callingConvention;
/// <summary>Indicates how to marshal string parameters to the method, and controls name mangling.</summary>
// Token: 0x040018A9 RID: 6313
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x40018A9")]
public CharSet CharSet;
/// <summary>Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.</summary>
// Token: 0x040018AA RID: 6314
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40018AA")]
public bool BestFitMapping;
/// <summary>Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character.</summary>
// Token: 0x040018AB RID: 6315
[FieldOffset(Offset = "0x19")]
[Token(Token = "0x40018AB")]
public bool ThrowOnUnmappableChar;
/// <summary>Indicates whether the callee calls the <see langword="SetLastError" /> Win32 API function before returning from the attributed method.</summary>
// Token: 0x040018AC RID: 6316
[FieldOffset(Offset = "0x1A")]
[Token(Token = "0x40018AC")]
public bool SetLastError;
}
}