NtQueryInformationProcess逆向
最后更新于
最后更新于
#include <windows.h>
#include <stdio.h>
#include <winternl.h>
#pragma comment(lib,"ntdll.lib")
int main()
{
UNICODE_STRING usRing0 = {0};
UNICODE_STRING usRing3 = { 0 };
NtQueryInformationProcess(GetCurrentProcess(),(PROCESSINFOCLASS)27,&usRing0, 0x1000, NULL);
NtQueryInformationProcess(GetCurrentProcess(), (PROCESSINFOCLASS)43, &usRing3, 0x1000, NULL);
getchar();
}
0:004> dt *!*Process*Information*Class*
DBGHELP: C:\Users\Black Sheep\source\repos\NtQueryInformationProcess1\x64\Debug\NtQueryInformationProcess1.pdb is a partial PDB and can't enumerate symbol information.
ole32!PROCESS_INFORMATION_CLASS
ole32!_PROCESS_INFORMATION_CLASS
combase!PROCESS_INFORMATION_CLASS
combase!_PROCESS_INFORMATION_CLASS
0:004> dt ole32!PROCESS_INFORMATION_CLASS
ProcessMemoryPriority = 0n0
ProcessMemoryExhaustionInfo = 0n1
ProcessAppMemoryInfo = 0n2
ProcessInPrivateInfo = 0n3
ProcessPowerThrottling = 0n4
ProcessReservedValue1 = 0n5
ProcessTelemetryCoverageInfo = 0n6
ProcessProtectionLevelInfo = 0n7
ProcessLeapSecondInfo = 0n8
ProcessInformationClassMax = 0n9