terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
NativeMethods.cs
Go to the documentation of this file.
1using System;
3using System.IO;
9
10namespace Microsoft.Win32
11{
12 [global::Cpp2ILInjected.Token(Token = "0x2000075")]
13 internal static class NativeMethods
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x60001B7")]
16 [global::Cpp2ILInjected.Address(RVA = "0x1D53790", Offset = "0x1D53790", Length = "0x1E0")]
17 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ProcessWaitHandle), Member = ".ctor", MemberParameters = new object[] { typeof(SafeProcessHandle) }, ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousAddRef", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.IO.MonoIO", Member = "DuplicateHandle", MemberParameters = new object[]
22 {
27 typeof(int),
28 typeof(int),
29 typeof(int),
31 }, ReturnType = typeof(bool))]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeWaitHandle), Member = ".ctor", MemberParameters = new object[]
33 {
35 typeof(bool)
36 }, ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousRelease", ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.IO.MonoIO", Member = "GetException", MemberParameters = new object[] { "System.IO.MonoIOError" }, ReturnType = typeof(Exception))]
39 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
44
45 [global::Cpp2ILInjected.Token(Token = "0x60001B8")]
46 [global::Cpp2ILInjected.Address(RVA = "0x1D53970", Offset = "0x1D53970", Length = "0x13C")]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Process), Member = "GetProcessHandle", MemberParameters = new object[]
48 {
49 typeof(int),
50 typeof(bool)
51 }, ReturnType = typeof(SafeProcessHandle))]
52 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.IO.MonoIO", Member = "DuplicateHandle", MemberParameters = new object[]
54 {
59 typeof(int),
60 typeof(int),
61 typeof(int),
63 }, ReturnType = typeof(bool))]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeProcessHandle), Member = ".ctor", MemberParameters = new object[]
65 {
67 typeof(bool)
68 }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "System.IO.MonoIO", Member = "GetException", MemberParameters = new object[] { "System.IO.MonoIOError" }, ReturnType = typeof(Exception))]
70 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
75
76 [global::Cpp2ILInjected.Token(Token = "0x60001B9")]
77 [global::Cpp2ILInjected.Address(RVA = "0x1D53AAC", Offset = "0x1D53AAC", Length = "0x4")]
78 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Process), Member = "GetProcessHandle", MemberParameters = new object[]
79 {
80 typeof(int),
81 typeof(bool)
82 }, ReturnType = typeof(SafeProcessHandle))]
83 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ProcessWaitHandle), Member = ".ctor", MemberParameters = new object[] { typeof(SafeProcessHandle) }, ReturnType = typeof(void))]
84 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
85 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
86 [MethodImpl(4096)]
87 public static extern IntPtr GetCurrentProcess();
88
89 [global::Cpp2ILInjected.Token(Token = "0x60001BA")]
90 [global::Cpp2ILInjected.Address(RVA = "0x1D53AB0", Offset = "0x1D53AB0", Length = "0x4")]
91 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
92 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
93 [MethodImpl(4096)]
94 public static extern bool GetExitCodeProcess(IntPtr processHandle, out int exitCode);
95
96 [global::Cpp2ILInjected.Token(Token = "0x60001BB")]
97 [global::Cpp2ILInjected.Address(RVA = "0x1D53AB4", Offset = "0x1D53AB4", Length = "0xCC")]
98 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Process), Member = "get_HasExited", ReturnType = typeof(bool))]
100 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Process), Member = "GetProcessHandle", MemberParameters = new object[]
101 {
102 typeof(int),
103 typeof(bool)
104 }, ReturnType = typeof(SafeProcessHandle))]
105 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousAddRef", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousRelease", ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
109 public static bool GetExitCodeProcess(SafeProcessHandle processHandle, out int exitCode)
110 {
111 throw null;
112 }
113
114 [global::Cpp2ILInjected.Token(Token = "0x60001BC")]
115 [global::Cpp2ILInjected.Address(RVA = "0x1D53B80", Offset = "0x1D53B80", Length = "0x4")]
116 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Process), Member = "GetCurrentProcess", ReturnType = typeof(Process))]
117 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
118 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
119 [MethodImpl(4096)]
120 public static extern int GetCurrentProcessId();
121
122 [global::Cpp2ILInjected.Token(Token = "0x60001BD")]
123 [global::Cpp2ILInjected.Address(RVA = "0x1D53B84", Offset = "0x1D53B84", Length = "0x4")]
124 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
125 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
126 [MethodImpl(4096)]
127 public static extern bool SetPriorityClass(IntPtr handle, int priorityClass);
128
129 [global::Cpp2ILInjected.Token(Token = "0x60001BE")]
130 [global::Cpp2ILInjected.Address(RVA = "0x1D53B88", Offset = "0x1D53B88", Length = "0xCC")]
131 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
132 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Process), Member = "set_PriorityClass", MemberParameters = new object[] { typeof(ProcessPriorityClass) }, ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousAddRef", MemberParameters = new object[] { typeof(ref bool) }, ReturnType = typeof(void))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SafeHandle), Member = "DangerousRelease", ReturnType = typeof(void))]
136 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
137 public static bool SetPriorityClass(SafeProcessHandle handle, int priorityClass)
138 {
139 throw null;
140 }
141
142 [global::Cpp2ILInjected.Token(Token = "0x60001BF")]
143 [global::Cpp2ILInjected.Address(RVA = "0x1D53C54", Offset = "0x1D53C54", Length = "0x1004")]
144 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
145 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SafeProcessHandle), Member = "ReleaseHandle", ReturnType = typeof(bool))]
146 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
147 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
148 [MethodImpl(4096)]
149 public static extern bool CloseProcess(IntPtr handle);
150 }
151}
class f__AnonymousType0<< Count > j__TPar
static bool SetPriorityClass(SafeProcessHandle handle, int priorityClass)
static IntPtr GetCurrentProcess()
static bool CloseProcess(IntPtr handle)
static bool DuplicateHandle(HandleRef hSourceProcessHandle, HandleRef hSourceHandle, HandleRef hTargetProcess, out SafeProcessHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions)
static bool DuplicateHandle(HandleRef hSourceProcessHandle, SafeHandle hSourceHandle, HandleRef hTargetProcess, out SafeWaitHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions)
static bool GetExitCodeProcess(IntPtr processHandle, out int exitCode)
static bool GetExitCodeProcess(SafeProcessHandle processHandle, out int exitCode)
static bool SetPriorityClass(IntPtr handle, int priorityClass)