编码环境:VS2008
源码下载地址:
下载源码
源码如下:
头文件 NTStruct.h
#pragma once #include <windows.h> typedef LONG NTSTATUS; typedef enum _SYSTEM_INFORMATION_CLASS{ SystemBasicInformation=0, SystemProcessorInformation=1, SystemModuleInformation=11, SystemHandleInformation=16, SystemHandleInformationEx=64 } SYSTEM_INFORMATTION_CLASS; typedef struct _SYSTEM_HANDLE_TABLE_ENTRY_INFO{ ULONG UniqueProcessId; UCHAR ObjectTypeIndex; UCHAR HandleAttributes; USHORT HandleValue; PVOID Object; ULONG GranteAccess; } SYSTEM_HANDLE_TABLE_ENTRY_INFO,*PSYSTEM_HANDLE_TABLE_ENTRY_INFO; typedef struct _SYSTEM_HANDLE_INFORMATION{ ULONG NumberOfHandles; _SYSTEM_HANDLE_TA