Page 1 of 1

How to map Physical to Logical Drives?

Posted: 17 Jul 2010 01:10
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 :)

Re: How to map Physical to Logical Drives?

Posted: 17 Jul 2010 02:25
by mvandere
I think IOCTL_STORAGE_GET_DEVICE_NUMBER is what I'm looking for

Re: How to map Physical to Logical Drives?

Posted: 17 Jul 2010 15:44
by Maƫl
I haven't had a need to implement this so far, so I don't know, I'm sorry.