For PDOs, you can use IoGetDeviceObjectProperty, otherwise there is no documented way. If you already have a PDEVICE_OBJECT, why do you need its name?
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of f
Sent: Wednesday, November 03, 2004 5:38 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] [ntdev] How to get device’s name?
Yes,DriverName can be retraived by DRIVER_OBJECT.DriverName.
But where can I find the device name?
Look at the name in the DRIVER_OBJECT.
–
The personal opinion of
Gary G. Little“f” wrote in message news:xxxxx@ntdev…
>> If I have a DEVICE_OBJECT pointer,how I can get its name?
>>
>>
>>
>>
>>
>>
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@eyou.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
–http://www.eyou.com
–?ȶ??ɿ??ĵ??? ???ʼ? ?ƶ???ǩ ??? ???洢…???δ??
–http://vip.eyou.com
–???¼???VIP??? ע???û???
—
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com