there must be an easier way...

Whats the best way, given a volume’s device object, to get the Win32
drive letter representing that volume? I can think of a few ways, but they
are somewhat convoluted (involving maintaining a table of device object
names to symbolic link names and such) and I’m wondering if I’m missing a
simple function call, or something.
The Win2K DDK has ‘RtlVolumeDeviceToDosName’, but this function is
evidently not present in the NT4 DDK.

Thanks,
Joel

Are you looking out for this function
IoCreateSymbolicLink();

— “Smith, Joel” wrote:
> Whats the best way, given a volume’s device object,
> to get the Win32
> drive letter representing that volume? I can think
> of a few ways, but they
> are somewhat convoluted (involving maintaining a
> table of device object
> names to symbolic link names and such) and I’m
> wondering if I’m missing a
> simple function call, or something.
> The Win2K DDK has ‘RtlVolumeDeviceToDosName’, but
> this function is
> evidently not present in the NT4 DDK.
>
> Thanks,
> Joel
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com