This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <Windows.h> | |
| #define SystemHandleInformation 0x10 | |
| #define SystemHandleInformationSize 1024 * 1024 * 2 | |
| #define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0) | |
| #define STATUS_INFO_LENGTH_MISMATCH ((NTSTATUS)0xC0000004L) | |
| using fNtQuerySystemInformation = NTSTATUS(WINAPI*)( | |
| ULONG SystemInformationClass, |