Hi,
To construct a process tree in Windows "C" given a PID, which one is a good approach to go for Win2k, XP, Windows Server 2008, Windows 7.
- ZwQuerySystemInformation
- NtQuerySystemInformation
- CreateToolhelp32Snapshot
I remember ToolHelp had issue in leaking memory for win2k. Please correct me if I am wrong.
And using ZwQuerySystemInformation/NtQuerySystemInformation, I am not sure what the // System Information Class 5 structure should be for 64-bit architecture. Can someone provide pointers to it?
-Karthik