Search code examples
windowsmemoryswap

How to programmatically monitor Windows swap space usage in real time?


I can write a program by using wmi to monitor the space usage of a hard drive. What should I do about swap memory usage?


Solution

  • Use Win32_PageFileUsage.