I would like to query the private working set size of a given process only using WinAPI - no WMI. I can already query the memory information using GetProcessMemoryInfo()
, but this only contains the working set size, not the private working set size.
I've found several approaches but all of them involve WMI, which I would like to avoid using. Also found comments suggesting that you can query memory information using VirtualQuery
and calculate the value yourself, but non of them describe how, and documentation on this is just awful.