how to get the alias name of a drive from its symboliclink name?

Hello All,

I’m starting my driver at Boot time.
My driver reads the drive name (C: or D: etc.) from the Registry at Boot
time. But I want the alias name of that drive (e.g
\Device\Harddisk0\Partition2 etc.).

So given the Drive name(or symboliclink name as it is known) , how do i get
the alias name at Boot time
i.e given D: how do i get \Device\Harddisk0\Partition2 at Boot time?

Thanks & Regards,
Aman.

how to get the alias name of a drive from its symboliclink name?Hello, Aman!
Use the ZwCreateSymbolicLinkObject, ZwOpneSymbolicLinkObject and ZwQuerySymbolicLinkObject function to retrieve \Device.…

Best:
Mark
----- Original Message -----
From: Aman_Gupta
To: NT Developers Interest List
Sent: Monday, July 24, 2000 7:37 AM
Subject: [ntdev] how to get the alias name of a drive from its symboliclink name?

Hello All,

I’m starting my driver at Boot time.
My driver reads the drive name (C: or D: etc.) from the Registry at Boot time. But I want the alias name of that drive (e.g \Device\Harddisk0\Partition2 etc.).

So given the Drive name(or symboliclink name as it is known) , how do i get the alias name at Boot time
i.e given D: how do i get \Device\Harddisk0\Partition2 at Boot time?

Thanks & Regards,
Aman.