Closed davidkna closed 4 years ago
ullTotalPageFile and ullAvailPageFile include both the swap and physical memory so in order to get the correct swap memory values the physical memory size/usage needs to be substracted.
ullTotalPageFile
ullAvailPageFile
https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex
ullTotalPageFile
andullAvailPageFile
include both the swap and physical memory so in order to get the correct swap memory values the physical memory size/usage needs to be substracted.https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-memorystatusex