Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

115 lines
4.8 KiB
C#

using System;
using System.Reflection;
using Cpp2IlInjected;
namespace System.Runtime.InteropServices
{
/// <summary>Indicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point.</summary>
// Token: 0x02000577 RID: 1399
[Token(Token = "0x2000577")]
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Method)]
public sealed class DllImportAttribute : Attribute
{
// Token: 0x06002AA3 RID: 10915 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002AA3")]
[Address(RVA = "0x2378820", Offset = "0x2377620", VA = "0x182378820")]
internal static Attribute GetCustomAttribute(RuntimeMethodInfo method)
{
return null;
}
// Token: 0x06002AA4 RID: 10916 RVA: 0x00016A10 File Offset: 0x00014C10
[Token(Token = "0x6002AA4")]
[Address(RVA = "0x2378AD0", Offset = "0x23778D0", VA = "0x182378AD0")]
internal static bool IsDefined(RuntimeMethodInfo method)
{
return default(bool);
}
// Token: 0x06002AA5 RID: 10917 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AA5")]
[Address(RVA = "0x2378B00", Offset = "0x2377900", VA = "0x182378B00")]
internal DllImportAttribute(string dllName, string entryPoint, CharSet charSet, bool exactSpelling, bool setLastError, bool preserveSig, CallingConvention callingConvention, bool bestFitMapping, bool throwOnUnmappableChar)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.DllImportAttribute" /> class with the name of the DLL containing the method to import.</summary>
/// <param name="dllName">The name of the DLL that contains the unmanaged method. This can include an assembly display name, if the DLL is included in an assembly.</param>
// Token: 0x06002AA6 RID: 10918 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002AA6")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
public DllImportAttribute(string dllName)
{
}
/// <summary>Gets the name of the DLL file that contains the entry point.</summary>
/// <returns>The name of the DLL file that contains the entry point.</returns>
// Token: 0x17000650 RID: 1616
// (get) Token: 0x06002AA7 RID: 10919 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000650")]
public string Value
{
[Token(Token = "0x6002AA7")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
// Token: 0x04001919 RID: 6425
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001919")]
internal string _val;
/// <summary>Indicates the name or ordinal of the DLL entry point to be called.</summary>
// Token: 0x0400191A RID: 6426
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400191A")]
public string EntryPoint;
/// <summary>Indicates how to marshal string parameters to the method and controls name mangling.</summary>
// Token: 0x0400191B RID: 6427
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400191B")]
public CharSet CharSet;
/// <summary>Indicates whether the callee calls the <see langword="SetLastError" /> Win32 API function before returning from the attributed method.</summary>
// Token: 0x0400191C RID: 6428
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x400191C")]
public bool SetLastError;
/// <summary>Controls whether the <see cref="F:System.Runtime.InteropServices.DllImportAttribute.CharSet" /> field causes the common language runtime to search an unmanaged DLL for entry-point names other than the one specified.</summary>
// Token: 0x0400191D RID: 6429
[FieldOffset(Offset = "0x25")]
[Token(Token = "0x400191D")]
public bool ExactSpelling;
/// <summary>Indicates whether unmanaged methods that have <see langword="HRESULT" /> or <see langword="retval" /> return values are directly translated or whether <see langword="HRESULT" /> or <see langword="retval" /> return values are automatically converted to exceptions.</summary>
// Token: 0x0400191E RID: 6430
[FieldOffset(Offset = "0x26")]
[Token(Token = "0x400191E")]
public bool PreserveSig;
/// <summary>Indicates the calling convention of an entry point.</summary>
// Token: 0x0400191F RID: 6431
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400191F")]
public CallingConvention CallingConvention;
/// <summary>Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.</summary>
// Token: 0x04001920 RID: 6432
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4001920")]
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: 0x04001921 RID: 6433
[FieldOffset(Offset = "0x2D")]
[Token(Token = "0x4001921")]
public bool ThrowOnUnmappableChar;
}
}