Hi all,
I have a device which has a simbolic name “SymbolicName_0”.
I am writing an application in user mode, and I want to extract the
“real” device name (The none symbolic one).
I know it is possible, because I’have seen programs which does it.
For exmple Osr’s Object viewer shows the relation between the symbolic name and the non-symbolic name.
Thanks
Maurice
QueryDosDevice() will give you the underlying device object name. Why
do you care? What are you trying to do with that information?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/
fs/querydosdevice.asp
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@netvision.net.il
Sent: Thursday, August 10, 2006 4:30 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Extracting the “real” device name
Hi all,
I have a device which has a simbolic name “SymbolicName_0”.
I am writing an application in user mode, and I want to extract the
“real” device name (The none symbolic one).
I know it is possible, because I’have seen programs which does it.
For exmple Osr’s Object viewer shows the relation between the symbolic
name and the non-symbolic name.
Thanks
Maurice
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
U can use the ObQueryDirectoryObject(), it is use to query the Object Mgr’s
database.
On 8/10/06, xxxxx@netvision.net.il wrote:
>
> Hi all,
>
> I have a device which has a simbolic name “SymbolicName_0”.
>
> I am writing an application in user mode, and I want to extract the
> “real” device name (The none symbolic one).
>
> I know it is possible, because I’have seen programs which does it.
> For exmple Osr’s Object viewer shows the relation between the symbolic
> name and the non-symbolic name.
>
> Thanks
> Maurice
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
Try QueryDosDevice
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Thursday, August 10, 2006 3:29 PM
Subject: [ntdev] Extracting the “real” device name
> Hi all,
>
> I have a device which has a simbolic name “SymbolicName_0”.
>
> I am writing an application in user mode, and I want to extract the
> “real” device name (The none symbolic one).
>
> I know it is possible, because I’have seen programs which does it.
> For exmple Osr’s Object viewer shows the relation between the symbolic name
and the non-symbolic name.
>
> Thanks
> Maurice
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer