115 lines
4.8 KiB
C#
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: 0x02000596 RID: 1430
|
|
[Token(Token = "0x2000596")]
|
|
[AttributeUsage(AttributeTargets.Method)]
|
|
[ComVisible(true)]
|
|
public sealed class DllImportAttribute : Attribute
|
|
{
|
|
// Token: 0x06002CB7 RID: 11447 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002CB7")]
|
|
[Address(RVA = "0x2CED790", Offset = "0x2CEC790", VA = "0x182CED790")]
|
|
internal static Attribute GetCustomAttribute(RuntimeMethodInfo method)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002CB8 RID: 11448 RVA: 0x00018DF8 File Offset: 0x00016FF8
|
|
[Token(Token = "0x6002CB8")]
|
|
[Address(RVA = "0x2CEDA40", Offset = "0x2CECA40", VA = "0x182CEDA40")]
|
|
internal static bool IsDefined(RuntimeMethodInfo method)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06002CB9 RID: 11449 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CB9")]
|
|
[Address(RVA = "0x2CEDA70", Offset = "0x2CECA70", VA = "0x182CEDA70")]
|
|
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: 0x06002CBA RID: 11450 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002CBA")]
|
|
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
|
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: 0x170006C8 RID: 1736
|
|
// (get) Token: 0x06002CBB RID: 11451 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170006C8")]
|
|
public string Value
|
|
{
|
|
[Token(Token = "0x6002CBB")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040019DC RID: 6620
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40019DC")]
|
|
internal string _val;
|
|
|
|
/// <summary>Indicates the name or ordinal of the DLL entry point to be called.</summary>
|
|
// Token: 0x040019DD RID: 6621
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40019DD")]
|
|
public string EntryPoint;
|
|
|
|
/// <summary>Indicates how to marshal string parameters to the method and controls name mangling.</summary>
|
|
// Token: 0x040019DE RID: 6622
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40019DE")]
|
|
public CharSet CharSet;
|
|
|
|
/// <summary>Indicates whether the callee calls the <see langword="SetLastError" /> Win32 API function before returning from the attributed method.</summary>
|
|
// Token: 0x040019DF RID: 6623
|
|
[FieldOffset(Offset = "0x24")]
|
|
[Token(Token = "0x40019DF")]
|
|
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: 0x040019E0 RID: 6624
|
|
[FieldOffset(Offset = "0x25")]
|
|
[Token(Token = "0x40019E0")]
|
|
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: 0x040019E1 RID: 6625
|
|
[FieldOffset(Offset = "0x26")]
|
|
[Token(Token = "0x40019E1")]
|
|
public bool PreserveSig;
|
|
|
|
/// <summary>Indicates the calling convention of an entry point.</summary>
|
|
// Token: 0x040019E2 RID: 6626
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40019E2")]
|
|
public CallingConvention CallingConvention;
|
|
|
|
/// <summary>Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.</summary>
|
|
// Token: 0x040019E3 RID: 6627
|
|
[FieldOffset(Offset = "0x2C")]
|
|
[Token(Token = "0x40019E3")]
|
|
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: 0x040019E4 RID: 6628
|
|
[FieldOffset(Offset = "0x2D")]
|
|
[Token(Token = "0x40019E4")]
|
|
public bool ThrowOnUnmappableChar;
|
|
}
|
|
}
|