 
        #ifndef _NTPSAPI_H
/**
 * The PROCESS_HANDLE_SNAPSHOT_INFORMATION structure contains information about the handle snapshot of a process.
 */
typedef struct _PROCESS_HANDLE_SNAPSHOT_INFORMATION
{
    ULONG_PTR NumberOfHandles;
    ULONG_PTR Reserved;
    _Field_size_(NumberOfHandles) PROCESS_HANDLE_TABLE_ENTRY_INFO Handles[1];
} PROCESS_HANDLE_SNAPSHOT_INFORMATION, *PPROCESS_HANDLE_SNAPSHOT_INFORMATION;
View code on GitHubThis structure defines a snapshot of handles opened by the process.
NtQueryInformationProcess with ProcessHandleInformation (51)The number of entries returned in the Handles field.
This value is unused.
An array of entries with information about each handle. See PROCESS_HANDLE_TABLE_ENTRY_INFO for more details.
This structure was introduced in Windows 8.