Sign in with
Sign up | Sign in
Your question

enumerate drives/partitions

Last response: in Windows 2000/NT
Share
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++?
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++?
>
>
!