GetProcessMemoryInfo PROCESS_MEMORY_COUNTERS_EX.PrivateUsage always 0
问题 I'm using GetProcessMemoryInfo function to determine process memory usage by its PID. With regular PROCESS_MEMORY_COUNTERS all works fine, but I need PrivateUsage member, that exists only in extended structure PROCESS_MEMORY_COUNTERS_EX. There are couple of docs, that moved me to forcefully cast extended type to a basic one, otherwise my sample wont compile. I'm still able to get value from basic members, such as PeakWorkingSetSize, but PrivateUsage is always 0. I've even tried to redefine