How to map Physical to Logical Drives?

Post Reply
mvandere
Posts: 4
Joined: 15 Jul 2010 09:35

How to map Physical to Logical Drives?

Post by mvandere »

How do you map physical drives(0,1,2,...) to logical drives(C:,D:,E:...), or vice versa?

All the code I can find on the net seems to be wrong (it only works if the logical drive is partitioned)

Delphi examples would be fine :)
mvandere
Posts: 4
Joined: 15 Jul 2010 09:35

Re: How to map Physical to Logical Drives?

Post by mvandere »

I think IOCTL_STORAGE_GET_DEVICE_NUMBER is what I'm looking for
Maël
Site Admin
Posts: 1454
Joined: 12 Mar 2005 14:15

Re: How to map Physical to Logical Drives?

Post by Maël »

I haven't had a need to implement this so far, so I don't know, I'm sorry.
Post Reply