From the MSDN articles I\'ve found -- http://msdn.microsoft.com/en-us/library/aa394515(v=VS.85).aspx -- Win32_Volume and Win32_MountPoint aren\'t available on Windows XP.
You may need to pinvoke into the Win32 Volume Management Functions
I guess the Win32_MountPoint
and Win32_Volume
classes are available on Windows XP Professional x64 Edition because it's based on the Windows Server 2003 codebase. On 32-bit versions of Windows XP, these classes don't exist and to perform your task you need to P/Invoke native volume management functions, like Tim said.