enumerate drives/partitions

Forum Windows 2000/NT : Windows 2000/NT General Discussion - enumerate drives/partitions

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

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

 

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

Sponsored Links
Register or log in to remove.

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++?
>
>

Reply to Anonymous
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > enumerate drives/partitions
Go to:

There are 1019 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them