mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-30 04:54:20 +01:00
68 lines
2.2 KiB
C#
68 lines
2.2 KiB
C#
|
using System;
|
|||
|
using System.Runtime.InteropServices;
|
|||
|
using System.Security;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace DS4Windows
|
|||
|
{
|
|||
|
[SuppressUnmanagedCodeSecurity]
|
|||
|
class Util
|
|||
|
{
|
|||
|
public enum PROCESS_INFORMATION_CLASS : int
|
|||
|
{
|
|||
|
ProcessBasicInformation = 0,
|
|||
|
ProcessQuotaLimits,
|
|||
|
ProcessIoCounters,
|
|||
|
ProcessVmCounters,
|
|||
|
ProcessTimes,
|
|||
|
ProcessBasePriority,
|
|||
|
ProcessRaisePriority,
|
|||
|
ProcessDebugPort,
|
|||
|
ProcessExceptionPort,
|
|||
|
ProcessAccessToken,
|
|||
|
ProcessLdtInformation,
|
|||
|
ProcessLdtSize,
|
|||
|
ProcessDefaultHardErrorMode,
|
|||
|
ProcessIoPortHandlers,
|
|||
|
ProcessPooledUsageAndLimits,
|
|||
|
ProcessWorkingSetWatch,
|
|||
|
ProcessUserModeIOPL,
|
|||
|
ProcessEnableAlignmentFaultFixup,
|
|||
|
ProcessPriorityClass,
|
|||
|
ProcessWx86Information,
|
|||
|
ProcessHandleCount,
|
|||
|
ProcessAffinityMask,
|
|||
|
ProcessPriorityBoost,
|
|||
|
ProcessDeviceMap,
|
|||
|
ProcessSessionInformation,
|
|||
|
ProcessForegroundInformation,
|
|||
|
ProcessWow64Information,
|
|||
|
ProcessImageFileName,
|
|||
|
ProcessLUIDDeviceMapsEnabled,
|
|||
|
ProcessBreakOnTermination,
|
|||
|
ProcessDebugObjectHandle,
|
|||
|
ProcessDebugFlags,
|
|||
|
ProcessHandleTracing,
|
|||
|
ProcessIoPriority,
|
|||
|
ProcessExecuteFlags,
|
|||
|
ProcessResourceManagement,
|
|||
|
ProcessCookie,
|
|||
|
ProcessImageInformation,
|
|||
|
ProcessCycleTime,
|
|||
|
ProcessPagePriority,
|
|||
|
ProcessInstrumentationCallback,
|
|||
|
ProcessThreadStackAllocation,
|
|||
|
ProcessWorkingSetWatchEx,
|
|||
|
ProcessImageFileNameWin32,
|
|||
|
ProcessImageFileMapping,
|
|||
|
ProcessAffinityUpdateMode,
|
|||
|
ProcessMemoryAllocationMode,
|
|||
|
MaxProcessInfoClass
|
|||
|
}
|
|||
|
|
|||
|
[DllImport("ntdll.dll", SetLastError = true)]
|
|||
|
public static extern int NtSetInformationProcess(IntPtr processHandle,
|
|||
|
PROCESS_INFORMATION_CLASS processInformationClass, ref IntPtr processInformation, uint processInformationLength);
|
|||
|
}
|
|||
|
}
|