How to get device object name

Hi,

I have created a volume filter device object and attached the same to the system device’s stack using IoAttachDeviceToDeviceStack. can I get a volume device’s name to which my filter device has been attached (such as /Device/HarddiskVolume1 or something)?

Thanks & Regards…

Why do you need the name? For debugging purposes or for something else?

D

-----Original Message-----
From: “xxxxx@hotmail.com
To: “Windows System Software Devs Interest List”
Sent: 07/31/07 7:10 AM
Subject: [ntdev] How to get device object name

Hi,

I have created a volume filter device object and attached the same to the system device’s stack using IoAttachDeviceToDeviceStack. can I get a volume device’s name to which my filter device has been attached (such as /Device/HarddiskVolume1 or something)?

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

>

Why do you need the name? For debugging purposes or for something else?

For debugging purpose - want to track from which volume the request is coming. Could you suggest something? Thanks!

ObQueryNameString,
http://msdn2.microsoft.com/en-us/library/ms796477.aspx

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Tuesday, July 31, 2007 9:42 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to get device object name

Why do you need the name? For debugging purposes or for something
else?

For debugging purpose - want to track from which volume the request is
coming. Could you suggest something? Thanks!


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

Hi Doron,

Thanks for reply!
Its a function supported in IFS kit rather I’ll require ntifs.h to use this function in DDK. I don’t have IFS kit (can’t afford) / ntifs.h. Is there any workaround function this one? Thanks!

Doron Holan wrote:

ObQueryNameString,
http://msdn2.microsoft.com/en-us/library/ms796477.aspx

d

Get the current Vista WDK the IFS kit is now included for free.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
> Hi Doron,
>
> Thanks for reply!
> Its a function supported in IFS kit rather I’ll require ntifs.h to use
> this function in DDK. I don’t have IFS kit (can’t afford) / ntifs.h. Is
> there any workaround function this one? Thanks!
>
>
> Doron Holan wrote:
>> ObQueryNameString,
>> http://msdn2.microsoft.com/en-us/library/ms796477.aspx
>>
>> d
>>
>

The IFS Kit is no more. The good news is that it’s contents have been
rolled in to the WDK, free of charge. I’m not sure exactly when this
occurred, but it is definitely in the Vista 6000 WDK, which is the
official one in any case.

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Thursday, August 02, 2007 08:13
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to get device object name

Hi Doron,

Thanks for reply!
Its a function supported in IFS kit rather I’ll require ntifs.h to use
this function in DDK. I don’t have IFS kit (can’t afford) / ntifs.h. Is
there any workaround function this one? Thanks!

Doron Holan wrote:

ObQueryNameString,
http://msdn2.microsoft.com/en-us/library/ms796477.aspx

d


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