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?
Use Win32_PageFileUsage.