Hi,
This is from a previous post many months ago.
IOCTL_VOLUME_QUERY_VOLUME_NUMBER gives volume number and storage manager
name. This ioctl succeeds on Basis disk volumes but fails on Dynamic
volumes.
I need to know if a disk is dynamic. IOCTL_VOLUME_QUERY_VOLUME_NUMBER
works if a volume is known on the disk.
How would I get the name of a volume on a specific disk so I can use this
IOCTL?
FindFirstVolume and FindNextVolume can just enumerate all the volumes on
the disks.
I am looking for functions like
FindFirstVolume(HANDLE disk)
FindNextVolume (HANDLE disk)
or a way to write functions like those
Or is there some other way to detect a dynamic disk using the disk handle.
Type of disk is a property of the disk not the volume(s) so it would make
more sense to be able to detect this using a disk IOCTL rather than a
volume one?
I also need a way to reactivate a dynamic disk programmatically like the
user can right click and do in disk administrator when a disk is offline.
Any ideas?
Thanks
Mike