#ifndef _NTPSAPI_H
typedef struct _PROCESS_HANDLE_INFORMATION
{
ULONG HandleCount;
ULONG HandleCountHighWatermark;
} PROCESS_HANDLE_INFORMATION, *PPROCESS_HANDLE_INFORMATION;
View code on GitHub
This structure defines handle statistics for the process.
NtQueryInformationProcess
with ProcessHandleCount
(20)The current number of handles in the process's handle table.
The historical highest number of handles in the process's handle table.