This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
+84
View File
@@ -0,0 +1,84 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using Microsoft.Win32.SafeHandles;
namespace Microsoft.Win32
{
// Token: 0x02000071 RID: 113
[Token(Token = "0x2000071")]
internal static class NativeMethods
{
// Token: 0x060001D6 RID: 470 RVA: 0x000027A8 File Offset: 0x000009A8
[Token(Token = "0x60001D6")]
[Address(RVA = "0x4508D0", Offset = "0x44F6D0", VA = "0x1804508D0")]
public static bool DuplicateHandle(HandleRef hSourceProcessHandle, SafeHandle hSourceHandle, HandleRef hTargetProcess, out SafeWaitHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions)
{
return default(bool);
}
// Token: 0x060001D7 RID: 471 RVA: 0x000027C0 File Offset: 0x000009C0
[Token(Token = "0x60001D7")]
[Address(RVA = "0x450AA0", Offset = "0x44F8A0", VA = "0x180450AA0")]
public static bool DuplicateHandle(HandleRef hSourceProcessHandle, HandleRef hSourceHandle, HandleRef hTargetProcess, out SafeProcessHandle targetHandle, int dwDesiredAccess, bool bInheritHandle, int dwOptions)
{
return default(bool);
}
// Token: 0x060001D8 RID: 472 RVA: 0x000027D8 File Offset: 0x000009D8
[Token(Token = "0x60001D8")]
[Address(RVA = "0x450BF0", Offset = "0x44F9F0", VA = "0x180450BF0")]
public static IntPtr GetCurrentProcess()
{
return 0;
}
// Token: 0x060001D9 RID: 473 RVA: 0x000027F0 File Offset: 0x000009F0
[Token(Token = "0x60001D9")]
[Address(RVA = "0x450C00", Offset = "0x44FA00", VA = "0x180450C00")]
public static bool GetExitCodeProcess(IntPtr processHandle, out int exitCode)
{
return default(bool);
}
// Token: 0x060001DA RID: 474 RVA: 0x00002808 File Offset: 0x00000A08
[Token(Token = "0x60001DA")]
[Address(RVA = "0x450C10", Offset = "0x44FA10", VA = "0x180450C10")]
public static bool GetExitCodeProcess(SafeProcessHandle processHandle, out int exitCode)
{
return default(bool);
}
// Token: 0x060001DB RID: 475 RVA: 0x00002820 File Offset: 0x00000A20
[Token(Token = "0x60001DB")]
[Address(RVA = "0x450D90", Offset = "0x44FB90", VA = "0x180450D90")]
public static bool TerminateProcess(IntPtr processHandle, int exitCode)
{
return default(bool);
}
// Token: 0x060001DC RID: 476 RVA: 0x00002838 File Offset: 0x00000A38
[Token(Token = "0x60001DC")]
[Address(RVA = "0x450CD0", Offset = "0x44FAD0", VA = "0x180450CD0")]
public static bool TerminateProcess(SafeProcessHandle processHandle, int exitCode)
{
return default(bool);
}
// Token: 0x060001DD RID: 477 RVA: 0x00002850 File Offset: 0x00000A50
[Token(Token = "0x60001DD")]
[Address(RVA = "0x450BE0", Offset = "0x44F9E0", VA = "0x180450BE0")]
public static int GetCurrentProcessId()
{
return 0;
}
// Token: 0x060001DE RID: 478 RVA: 0x00002868 File Offset: 0x00000A68
[Token(Token = "0x60001DE")]
[Address(RVA = "0x4508C0", Offset = "0x44F6C0", VA = "0x1804508C0")]
public static bool CloseProcess(IntPtr handle)
{
return default(bool);
}
}
}
@@ -0,0 +1,41 @@
using System;
using Cpp2IlInjected;
namespace Microsoft.Win32.SafeHandles
{
/// <summary>Provides a managed wrapper for a process handle.</summary>
// Token: 0x02000072 RID: 114
[Token(Token = "0x2000072")]
public sealed class SafeProcessHandle : SafeHandleZeroOrMinusOneIsInvalid
{
// Token: 0x060001DF RID: 479 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60001DF")]
[Address(RVA = "0x4517C0", Offset = "0x4505C0", VA = "0x1804517C0")]
internal SafeProcessHandle(IntPtr handle)
{
}
/// <summary>Initializes a new instance of the <see cref="T:Microsoft.Win32.SafeHandles.SafeProcessHandle" /> class from the specified handle, indicating whether to release the handle during the finalization phase.</summary>
/// <param name="existingHandle">The handle to be wrapped.</param>
/// <param name="ownsHandle">
/// <see langword="true" /> to reliably let <see cref="T:Microsoft.Win32.SafeHandles.SafeProcessHandle" /> release the handle during the finalization phase; otherwise, <see langword="false" />.</param>
// Token: 0x060001E0 RID: 480 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60001E0")]
[Address(RVA = "0x451790", Offset = "0x450590", VA = "0x180451790")]
public SafeProcessHandle(IntPtr existingHandle, bool ownsHandle)
{
}
// Token: 0x060001E1 RID: 481 RVA: 0x00002880 File Offset: 0x00000A80
[Token(Token = "0x60001E1")]
[Address(RVA = "0x451720", Offset = "0x450520", VA = "0x180451720", Slot = "7")]
protected override bool ReleaseHandle()
{
return default(bool);
}
// Token: 0x04000128 RID: 296
[Token(Token = "0x4000128")]
internal static SafeProcessHandle InvalidHandle;
}
}