From: Alex on
Hi,
i have enumerated "PhysicalDriveX" in CreateFile
then i have tested returned value

but i would find a kind of function which gives
number of physical hard drives or handles to physical drive
From: Alex on
Hi,
which information can i obtain with IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
coz i need the name of hard drive too))
thanks
From: Kellie Fitton on
On Apr 2, 7:42 am, Alex <h4cker_...(a)hotmail.com> wrote:
> Hi,
> which information can i obtain with IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
> coz i need the name of hard drive too))
> thanks


Hi,

You can use the following WMI class to get the name of the disk
drive manufacturer:

Win32_DiskDrive

http://msdn2.microsoft.com/en-us/library/aa394132(VS.85).aspx

Kellie.

From: Christian ASTOR on
On 2 avr, 15:16, Alex <h4cker_...(a)hotmail.com> wrote:

> I want to list all physical drives on my machine...
> anybody knows how to do this?
>
> (win32 api, c++)

SetupDiGetClassDevs() with &DiskClassGuid -SetupDiEnumDeviceInfo()-
SetupDiGetDeviceRegistryProperty()...

From: Boris on
"Alex" <h4cker_rus(a)hotmail.com> wrote in message
news:ft013m$e81$1(a)aioe.org...
> Hello!
> I want to list all physical drives on my machine...
> anybody knows how to do this?
>
>
> (win32 api, c++)
WMI: Win32_DiskDrive - just call WMI from C++ - it's just COM API.

Boris