availability of Win32_MountPoint and Win32_Volume on Windows XP?

后端 未结 2 832
北海茫月
北海茫月 2021-01-20 18:51

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.

相关标签:
2条回答
  • 2021-01-20 19:10

    You may need to pinvoke into the Win32 Volume Management Functions

    0 讨论(0)
  • 2021-01-20 19:11

    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.

    0 讨论(0)
提交回复
热议问题