3575c55c8c
* The tests are mostly wrong for Windows 8 and up.
22 lines
480 B
C++
Executable File
22 lines
480 B
C++
Executable File
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
#include <vector>
|
|
|
|
typedef struct _SYSTEM_HANDLE_ENTRY {
|
|
ULONG OwnerPid;
|
|
BYTE ObjectType;
|
|
BYTE HandleFlags;
|
|
USHORT HandleValue;
|
|
PVOID ObjectPointer;
|
|
ULONG AccessMask;
|
|
} SYSTEM_HANDLE_ENTRY, *PSYSTEM_HANDLE_ENTRY;
|
|
|
|
typedef struct _SYSTEM_HANDLE_INFORMATION {
|
|
ULONG Count;
|
|
SYSTEM_HANDLE_ENTRY Handle[1];
|
|
} SYSTEM_HANDLE_INFORMATION, *PSYSTEM_HANDLE_INFORMATION;
|
|
|
|
std::vector<SYSTEM_HANDLE_ENTRY> queryNtHandles();
|