Re: Logical Drive Name
- From: "Monty" <xmonty@xxxxxxxxx>
- Date: 25 Oct 2006 22:41:27 -0700
Thank you for such a prompt and accurate reply
i wanted to read the MFT of individual drives, i had some sample code
that does it without logical drive names but now it seems the correct
way is to iterate all the drive names through GetLogicalDriveNames and
the read through QueryDosDevice and read the MFT
but i don't know how to read the MFT using QueryDosDevice and then
CreateFile
can you guide me or point me to some material that would provide more
detailed info
Thank you so much for your precious time
Marc Kupper wrote:
Monty wrote:
i opend the harddisk like this
sHardDisk.Format("\\\\.\\PhysicalDrive1");
<snip>
How can i find out the logical drive name corresponding to the
Partitions and extended
partitions that i read directly from hard disk?
The main challenge is that a drive letter can span multiple
physical disks and that a single physical disk can contain two or
more volumes.
Take a look at GetLogicalDriveStrings() and QueryDosDevice() to
get the volume names. Use IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS
to translate from the volume names into physical device device
numbers. Insert "\\.\PhysicalDrive" in front of the numbers to
read from that physical disk.
Marc
.
- Follow-Ups:
- Re: Logical Drive Name
- From: Marc Kupper
- Re: Logical Drive Name
- References:
- Logical Drive Name
- From: Monty
- Re: Logical Drive Name
- From: Marc Kupper
- Logical Drive Name
- Prev by Date: Re: Logical Drive Name
- Next by Date: Re: Logical Drive Name
- Previous by thread: Re: Logical Drive Name
- Next by thread: Re: Logical Drive Name
- Index(es):
Relevant Pages
|