6#define QUOTA_LIMITS_HARDWS_MIN_ENABLE 0x00000001
7#define QUOTA_LIMITS_HARDWS_MIN_DISABLE 0x00000002
8#define QUOTA_LIMITS_HARDWS_MAX_ENABLE 0x00000004
9#define QUOTA_LIMITS_HARDWS_MAX_DISABLE 0x00000008
10#define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010
13#define THREAD_TERMINATE 0x0001
14#define THREAD_SUSPEND_RESUME 0x0002
15#define THREAD_ALERT 0x0004
16#define THREAD_GET_CONTEXT 0x0008
17#define THREAD_SET_CONTEXT 0x0010
18#define THREAD_SET_INFORMATION 0x0020
19#define THREAD_SET_LIMITED_INFORMATION 0x0400
20#define THREAD_QUERY_LIMITED_INFORMATION 0x0800
22#define PROCESS_DUP_HANDLE (0x0040)
24#if (NTDDI_VERSION >= NTDDI_VISTA)
25#define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)
27#define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFF)
30#if (NTDDI_VERSION >= NTDDI_VISTA)
31#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)
33#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3FF)
37#define LOW_REALTIME_PRIORITY 16
38#define HIGH_PRIORITY 31
39#define MAXIMUM_PRIORITY 32
44#define QUOTA_LIMITS_HARDWS_MIN_ENABLE 0x00000001
45#define QUOTA_LIMITS_HARDWS_MIN_DISABLE 0x00000002
46#define QUOTA_LIMITS_HARDWS_MAX_ENABLE 0x00000004
47#define QUOTA_LIMITS_HARDWS_MAX_DISABLE 0x00000008
48#define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010
120#define MAX_HW_COUNTERS 16
121#define THREAD_PROFILING_FLAG_DISPATCH 0x00000001
151#define PROCESS_EXCEPTION_PORT_ALL_STATE_BITS 0x00000003UL
152#define PROCESS_EXCEPTION_PORT_ALL_STATE_FLAGS ((ULONG_PTR)((1UL << PROCESS_EXCEPTION_PORT_ALL_STATE_BITS) - 1))
194#define IMAGE_ADDRESSING_MODE_32BIT 3
225#define THREAD_CSWITCH_PMU_DISABLE FALSE
226#define THREAD_CSWITCH_PMU_ENABLE TRUE
228#define PROCESS_LUID_DOSDEVICES_ONLY 0x00000001
230#define PROCESS_HANDLE_TRACING_MAX_STACKS 16
@ ThreadEnableAlignmentFaultFixup
@ ThreadDescriptorTableEntry
@ ThreadEventPair_Reusable
@ ThreadActualBasePriority
@ ThreadSwitchLegacyState
@ ThreadQuerySetWin32StartAddress
@ ThreadBreakOnTermination
@ ThreadImpersonationToken
@ ThreadSetTlsArrayAddress
enum _THREADINFOCLASS THREADINFOCLASS
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
@ ProcessBreakOnTermination
@ ProcessBasicInformation
@ ProcessWow64Information
struct _PROCESS_BASIC_INFORMATION * PPROCESS_BASIC_INFORMATION
enum _PROCESSINFOCLASS PROCESSINFOCLASS
struct _PROCESS_BASIC_INFORMATION PROCESS_BASIC_INFORMATION
@ ProcessLUIDDeviceMapsEnabled
@ ProcessMemoryAllocationMode
@ ProcessSessionInformation
@ ProcessWorkingSetWatchEx
@ ProcessInstrumentationCallback
@ ProcessImageFileMapping
@ ProcessImageInformation
@ ProcessPooledUsageAndLimits
@ ProcessImageFileNameWin32
@ ProcessDefaultHardErrorMode
@ ProcessAffinityUpdateMode
@ ProcessEnableAlignmentFaultFixup
@ ProcessThreadStackAllocation
@ ProcessForegroundInformation
@ ProcessDebugObjectHandle
struct _IMAGE_INFO_EX * PIMAGE_INFO_EX
NTKERNELAPI PEPROCESS PsInitialSystemProcess
struct _PROCESS_HANDLE_TRACING_ENTRY * PPROCESS_HANDLE_TRACING_ENTRY
struct _PROCESS_HANDLE_TRACING_ENABLE_EX PROCESS_HANDLE_TRACING_ENABLE_EX
struct _IMAGE_INFO IMAGE_INFO
struct _PROCESS_DEVICEMAP_INFORMATION_EX PROCESS_DEVICEMAP_INFORMATION_EX
struct _VM_COUNTERS_EX * PVM_COUNTERS_EX
enum _HARDWARE_COUNTER_TYPE * PHARDWARE_COUNTER_TYPE
struct _PROCESS_ACCESS_TOKEN PROCESS_ACCESS_TOKEN
struct _PAGE_PRIORITY_INFORMATION PAGE_PRIORITY_INFORMATION
struct _PAGE_PRIORITY_INFORMATION * PPAGE_PRIORITY_INFORMATION
struct _PROCESS_DEVICEMAP_INFORMATION PROCESS_DEVICEMAP_INFORMATION
struct _PROCESS_HANDLE_TRACING_ENABLE * PPROCESS_HANDLE_TRACING_ENABLE
struct _PROCESS_DEVICEMAP_INFORMATION * PPROCESS_DEVICEMAP_INFORMATION
struct _PROCESS_ACCESS_TOKEN * PPROCESS_ACCESS_TOKEN
VOID(NTAPI * PLOAD_IMAGE_NOTIFY_ROUTINE)(_In_ PUNICODE_STRING FullImageName, _In_ HANDLE ProcessId, _In_ PIMAGE_INFO ImageInfo)
struct _PROCESS_WS_WATCH_INFORMATION PROCESS_WS_WATCH_INFORMATION
union _RATE_QUOTA_LIMIT RATE_QUOTA_LIMIT
struct _PS_CREATE_NOTIFY_INFO PS_CREATE_NOTIFY_INFO
struct _PROCESS_EXTENDED_BASIC_INFORMATION PROCESS_EXTENDED_BASIC_INFORMATION
struct _PROCESS_EXCEPTION_PORT * PPROCESS_EXCEPTION_PORT
struct _IO_COUNTERS IO_COUNTERS
struct _VM_COUNTERS VM_COUNTERS
struct _IMAGE_INFO_EX IMAGE_INFO_EX
struct _PROCESS_SESSION_INFORMATION PROCESS_SESSION_INFORMATION
#define PROCESS_HANDLE_TRACING_MAX_STACKS
struct _PROCESS_EXCEPTION_PORT PROCESS_EXCEPTION_PORT
struct _PROCESS_EXTENDED_BASIC_INFORMATION * PPROCESS_EXTENDED_BASIC_INFORMATION
struct _PROCESS_WS_WATCH_INFORMATION * PPROCESS_WS_WATCH_INFORMATION
struct _PROCESS_HANDLE_TRACING_ENABLE_EX * PPROCESS_HANDLE_TRACING_ENABLE_EX
struct _POOLED_USAGE_AND_LIMITS * PPOOLED_USAGE_AND_LIMITS
@ ProcessConsoleHostProcess
@ ProcessTokenVirtualizationEnabled
@ ProcessWindowInformation
@ ProcessGroupInformation
struct _PROCESS_SESSION_INFORMATION * PPROCESS_SESSION_INFORMATION
VOID(NTAPI * PCREATE_PROCESS_NOTIFY_ROUTINE)(_In_ HANDLE ParentId, _In_ HANDLE ProcessId, _In_ BOOLEAN Create)
struct _HARDWARE_COUNTER HARDWARE_COUNTER
struct _VM_COUNTERS * PVM_COUNTERS
struct _PROCESS_HANDLE_TRACING_QUERY * PPROCESS_HANDLE_TRACING_QUERY
struct _QUOTA_LIMITS_EX * PQUOTA_LIMITS_EX
VOID(NTAPI * PCREATE_PROCESS_NOTIFY_ROUTINE_EX)(_Inout_ PEPROCESS Process, _In_ HANDLE ProcessId, _Inout_opt_ PPS_CREATE_NOTIFY_INFO CreateInfo)
struct _QUOTA_LIMITS_EX QUOTA_LIMITS_EX
struct _IMAGE_INFO * PIMAGE_INFO
$if(_WDMDDK_) $endif(_WDMDDK_) $if(_NTDDK_) typedef struct _QUOTA_LIMITS
struct _PROCESS_HANDLE_TRACING_QUERY PROCESS_HANDLE_TRACING_QUERY
VOID(NTAPI * PCREATE_THREAD_NOTIFY_ROUTINE)(_In_ HANDLE ProcessId, _In_ HANDLE ThreadId, _In_ BOOLEAN Create)
struct _PROCESS_HANDLE_TRACING_ENTRY PROCESS_HANDLE_TRACING_ENTRY
struct _HARDWARE_COUNTER * PHARDWARE_COUNTER
struct _PROCESS_DEVICEMAP_INFORMATION_EX * PPROCESS_DEVICEMAP_INFORMATION_EX
struct _PS_CREATE_NOTIFY_INFO * PPS_CREATE_NOTIFY_INFO
struct _POOLED_USAGE_AND_LIMITS POOLED_USAGE_AND_LIMITS
struct _VM_COUNTERS_EX VM_COUNTERS_EX
struct _PROCESS_HANDLE_TRACING_ENABLE PROCESS_HANDLE_TRACING_ENABLE
union _RATE_QUOTA_LIMIT * PRATE_QUOTA_LIMIT
struct _IO_COUNTERS * PIO_COUNTERS
enum _HARDWARE_COUNTER_TYPE HARDWARE_COUNTER_TYPE
#define _ANONYMOUS_STRUCT
$endif(_WDMDDK_) $if(_NTDDK_) typedef struct _NEON128
HARDWARE_COUNTER_TYPE Type
struct _FILE_OBJECT * FileObject
ULONG ImageAddressingMode
_ANONYMOUS_STRUCT struct _IMAGE_INFO::@4163::@4164 DUMMYSTRUCTNAME
_ANONYMOUS_UNION union _IMAGE_INFO::@4163 DUMMYUNIONNAME
ULONG ImageMappedToAllPids
ULONG ExtendedInfoPresent
ULONGLONG ReadOperationCount
ULONGLONG WriteTransferCount
ULONGLONG WriteOperationCount
ULONGLONG ReadTransferCount
ULONGLONG OtherOperationCount
ULONGLONG OtherTransferCount
SIZE_T PeakNonPagedPoolUsage
SIZE_T PeakPagedPoolUsage
_In_ HANDLE ExceptionPortHandle
PVOID Stacks[PROCESS_HANDLE_TRACING_MAX_STACKS]
PROCESS_HANDLE_TRACING_ENTRY HandleTrace[1]
_In_opt_ PCUNICODE_STRING CommandLine
_Inout_ struct _FILE_OBJECT * FileObject
_Inout_ NTSTATUS CreationStatus
_ANONYMOUS_STRUCT struct _PS_CREATE_NOTIFY_INFO::@4161::@4162 DUMMYSTRUCTNAME
_In_ HANDLE ParentProcessId
_In_ ULONG FileOpenNameAvailable
_In_ PCUNICODE_STRING ImageFileName
_In_ CLIENT_ID CreatingThreadId
_ANONYMOUS_UNION union _PS_CREATE_NOTIFY_INFO::@4161 DUMMYUNIONNAME
SIZE_T MaximumWorkingSetSize
RATE_QUOTA_LIMIT CpuRateLimit
SIZE_T MinimumWorkingSetSize
INT64 MaximumWorkingSetSize
INT64 MinimumWorkingSetSize
SIZE_T QuotaNonPagedPoolUsage
SIZE_T PeakWorkingSetSize
SIZE_T QuotaPeakNonPagedPoolUsage
SIZE_T QuotaPeakPagedPoolUsage
SIZE_T QuotaPagedPoolUsage
SIZE_T PeakWorkingSetSize
SIZE_T QuotaPagedPoolUsage
SIZE_T QuotaPeakPagedPoolUsage
SIZE_T QuotaPeakNonPagedPoolUsage
SIZE_T QuotaNonPagedPoolUsage
_ANONYMOUS_STRUCT struct _RATE_QUOTA_LIMIT::@4160 DUMMYSTRUCTNAME