Sign-in / Sign-up
Your question

enumerate drives/partitions

Tags:
  • File System
  • Microsoft
  • Windows
Last response: in Windows 2000/NT
July 2, 2004 2:13:58 PM

Archived from groups: microsoft.public.win2000.file_system (More info?)

how do i enumerate drives/partitions on the local machine with c++?

More about : enumerate drives partitions

Anonymous
July 9, 2004 4:48:48 PM

Archived from groups: microsoft.public.win2000.file_system (More info?)

You can enumerate volumes using FindFirstVolume/FindNextVolume. You can
enumerate volumes or disks using the SetupDiXXX API (Look at
SetupDiEnumDeviceInterfaces(VolumeClassGuid or DiskClassGuid ) ). You can
enumerate the partitions on a disk by calling IOCTL_DISK_GET_DRIVE_LAYOUT.

--
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"alex" <alex.smotritsky@verizon.net> wrote in message
news:uRbXi7DYEHA.2812@TK2MSFTNGP11.phx.gbl...
> how do i enumerate drives/partitions on the local machine with c++?
>
>