#ifndef _NTPSAPI_H
/**
* The PROCESS_HANDLE_INFORMATION structure contains information about the handles of a process.
*/
typedef struct _PROCESS_HANDLE_INFORMATION
{
ULONG HandleCount; // The number of handles in the process.
ULONG HandleCountHighWatermark; // The highest number of handles that the process has had.
} 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.