BOOL WINAPI GetProcessMemoryInfo(
__in HANDLE Process,
__out PPROCESS_MEMORY_COUNTERS ppsmemCounters,
__in DWORD cb
);
Where the parameter ppsmemCounterscan be a structure PROCESS_MEMORY_COUNTERSor PROCESS_MEMORY_COUNTERS_EX. Just type PROCESS_MEMORY_COUNTERS_EXin PROCESS_MEMORY_COUNTERS.
PROCESS_MEMORY_COUNTERS_EX.PrivateUsage - this is what you are looking for.
More here and here
user67771
source
share