R.Wieser
2019-03-04 13:34:09 UTC
Hello all,
Windows has IOCTL_DISK_GET_DRIVE_LAYOUT to retrieve all partitions of a
physical drive, but I've not been able to find how to open such partitions
for raw access (letting the OS handle the nitty-gritty as well as not
interfering with access to other volumes on the same drive).
Part of the problem is that non-native (like type 0x83, Linux) as well as
extended partitions (like type 5) do, ofcourse, not have drive letters or
other IDs assigned to them, so the \\.\ or \\?\ approach doesn't work.
I've also tried FindFirstVolume, but that one only returns recognised data
volumes ones (iow: neither of the above).
Has anyone an idea ?
Regards,
Rudy Wieser
Windows has IOCTL_DISK_GET_DRIVE_LAYOUT to retrieve all partitions of a
physical drive, but I've not been able to find how to open such partitions
for raw access (letting the OS handle the nitty-gritty as well as not
interfering with access to other volumes on the same drive).
Part of the problem is that non-native (like type 0x83, Linux) as well as
extended partitions (like type 5) do, ofcourse, not have drive letters or
other IDs assigned to them, so the \\.\ or \\?\ approach doesn't work.
I've also tried FindFirstVolume, but that one only returns recognised data
volumes ones (iow: neither of the above).
Has anyone an idea ?
Regards,
Rudy Wieser