Post by AlexHello!
I want to list all physical drives on my machine...
anybody knows how to do this?
You should tell a bit more specifically what type of information you want.
SCSI ID's?
Anyway, FindFirstVolume() might give you something useful. Or maybe even
FindFirstVolumeMountPoint().
And ofcourse one knows that the physical devices are accessible
(CreateFile()) using paths such as \\.\PHYSICALDRIVE0
Then there is DeviceIoControl with FSCTL_GET_NTFS_VOLUME_DATA and/or
IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS.
And of course there are PnP related API's but i think they are more
appropriate in kernel mode. But try EnumDeviceDrivers and
If on the other hand you want logical drives, check out GetLogicalDrives().
- Sten