using System; using System.Reflection; using Cpp2IlInjected; namespace System.Runtime.InteropServices { /// Indicates that the attributed method is exposed by an unmanaged dynamic-link library (DLL) as a static entry point. // 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) { } /// Initializes a new instance of the class with the name of the DLL containing the method to import. /// 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. // Token: 0x06002AA6 RID: 10918 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002AA6")] [Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")] public DllImportAttribute(string dllName) { } /// Gets the name of the DLL file that contains the entry point. /// The name of the DLL file that contains the entry point. // 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; /// Indicates the name or ordinal of the DLL entry point to be called. // Token: 0x0400191A RID: 6426 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400191A")] public string EntryPoint; /// Indicates how to marshal string parameters to the method and controls name mangling. // Token: 0x0400191B RID: 6427 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400191B")] public CharSet CharSet; /// Indicates whether the callee calls the Win32 API function before returning from the attributed method. // Token: 0x0400191C RID: 6428 [FieldOffset(Offset = "0x24")] [Token(Token = "0x400191C")] public bool SetLastError; /// Controls whether the field causes the common language runtime to search an unmanaged DLL for entry-point names other than the one specified. // Token: 0x0400191D RID: 6429 [FieldOffset(Offset = "0x25")] [Token(Token = "0x400191D")] public bool ExactSpelling; /// Indicates whether unmanaged methods that have or return values are directly translated or whether or return values are automatically converted to exceptions. // Token: 0x0400191E RID: 6430 [FieldOffset(Offset = "0x26")] [Token(Token = "0x400191E")] public bool PreserveSig; /// Indicates the calling convention of an entry point. // Token: 0x0400191F RID: 6431 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400191F")] public CallingConvention CallingConvention; /// Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters. // Token: 0x04001920 RID: 6432 [FieldOffset(Offset = "0x2C")] [Token(Token = "0x4001920")] public bool BestFitMapping; /// Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character. // Token: 0x04001921 RID: 6433 [FieldOffset(Offset = "0x2D")] [Token(Token = "0x4001921")] public bool ThrowOnUnmappableChar; } }