w2k disk management

Hi all,

I have a task of retrieving the disk number and the partition number for a
given drive letter. Support for FTDISK and DMIO volumes is not required.
In NT4, I can use QueryDosDevice and then parse the resulting
\Device\Harddisk0\Partition1 string.

But IIRC on w2k QueryDosDevice will not return this string for me.
How can I retrieve this information on w2k?
Can I use CreateFile(“\.\C:”) and then IOCTL_STORAGE_GET_DEVICE_NUMBER on
this handle?

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com