How to get a symbollink name?

Hi all,
My driver is a disk upperfilter driver. How can I transfer a device name such as \Device\HarddiskVolume1 to a volume name such as ??\E:?

Thanks & regards.

Do a recursive call of “ZwOpenSymbolicLinkObject” on every driver letter and
compare the result with the device name you want to map

wrote news:xxxxx@ntdev…
> Hi all,
> My driver is a disk upperfilter driver. How can I transfer a device name
> such as \Device\HarddiskVolume1 to a volume name such as ??\E:?
>
> Thanks & regards.
>

IoVolumeDeviceToDosName

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of kuangnuzhiren@163.com
Sent: Monday, June 15, 2009 5:44 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to get a symbollink name?

Hi all,
My driver is a disk upperfilter driver. How can I transfer a device name
such as \Device\HarddiskVolume1 to a volume name such as ??\E:?

Thanks & regards.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks.

Can I get a name like \Device\Harddisk0\Partition1 or \Device\HarddiskVolume1 in AddDevice dispatch? Is there such APIs?