Hi,
How can I match drive letters (logical volumes) with the physical
media/partitions?
I’ve read in some articles that a volume may be situated on several
partitions? How drive letter/partition match can be found in
this case?
Thanks in advance.
P.S. QueryDosDevice returns
HarddiskVolume1 |
HarddiskVolume2 | for the first hdd
HarddiskVolume43 |
HarddiskVolume44 |
HarddiskVolume41 |
HarddiskVolume42 | for the second hdd
Does it have any sense?
–
Roman Kudinov
mailto:xxxxx@rbcmail.ru
I’ve found that HKLM\SYSTEM\MountedDevices contains enough
information to match partitions with drive letters. But I think that
reading from the registry is not correct as it may change in the next
versions of Windows.
Is there any API call or IOCTL_xxxx, which returns these values?
Roman
mailto:xxxxx@rbcmail.ru
Sunday, July 4, 2004, 6:42:30 PM, you wrote:
RK> Hi,
RK> How can I match drive letters (logical volumes) with the physical
RK> media/partitions?
RK> I’ve read in some articles that a volume may be situated on several
RK> partitions? How drive letter/partition match can be found in
RK> this case?
RK> Thanks in advance.
RK> P.S. QueryDosDevice returns
RK> HarddiskVolume1 |
RK> HarddiskVolume2 | for the first hdd
RK> HarddiskVolume43 |
RK> HarddiskVolume44 |
RK> HarddiskVolume41 |
RK> HarddiskVolume42 | for the second hdd
RK> Does it have any sense?
For a given drive letter, do IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS and then
IOCTL_DISK_GET_DRIVE_LAYOUT_EX for each of the extents returned by the
first.
Note: This requires WinXP or higher.
–
James Antognini
Windows DDK Support
This posting is provided “AS IS” with no warranties, and confers no rights.
“Roman Kudinov” wrote in message news:xxxxx@ntfsd…
> Hi,
>
> How can I match drive letters (logical volumes) with the physical
> media/partitions?
>
> I’ve read in some articles that a volume may be situated on several
> partitions? How drive letter/partition match can be found in
> this case?
>
> Thanks in advance.
>
>
> P.S. QueryDosDevice returns
> HarddiskVolume1 |
> HarddiskVolume2 | for the first hdd
>
> HarddiskVolume43 |
> HarddiskVolume44 |
> HarddiskVolume41 |
> HarddiskVolume42 | for the second hdd
>
> Does it have any sense?
>
>
> –
> Roman Kudinov
>
>
> mailto:xxxxx@rbcmail.ru
>
>