Hi,
I have a PNP driver and for some class devices I want to know the device name. I call the
routine IoGetDeviceProperty in DeviceAdd with DevicePropertyDeviceDescription property
. This is working fine except when device is added for the first time. I also call the function in dispatchPnp routine after IRP_MN_START_DEVICE but the same scenario. After some call of IRP_MN_QUERY_DEVICE_RELATIONS irps I can get the right name of the device.
My question is when I can know for sure that the current device is finish his initialization?
Thank you.
Start device.
Mark Roddy
On Wed, Sep 3, 2014 at 6:36 AM, wrote:
> Hi,
>
> I have a PNP driver and for some class devices I want to know the device
> name. I call the
> routine IoGetDeviceProperty in DeviceAdd with
> DevicePropertyDeviceDescription property
> . This is working fine except when device is added for the first time. I
> also call the function in dispatchPnp routine after IRP_MN_START_DEVICE
> but the same scenario. After some call of IRP_MN_QUERY_DEVICE_RELATIONS
> irps I can get the right name of the device.
> My question is when I can know for sure that the current device is finish
> his initialization?
>
> Thank you.
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> 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
>
PnP concept is to abandon the device names and use GUID-based device interfaces instead.
For most stacks, the bottom-most PDO is named like \Device\000000ca (FILE_AUTOGENERATED_DEVICE_NAME), and the rest of the attached devices are not named at all.
Device interface is a symlink pointing at \Device\000000ca
–
Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntdev…
> Hi,
>
> I have a PNP driver and for some class devices I want to know the device name. I call the
> routine IoGetDeviceProperty in DeviceAdd with DevicePropertyDeviceDescription property
> . This is working fine except when device is added for the first time. I also call the function in dispatchPnp routine after IRP_MN_START_DEVICE but the same scenario. After some call of IRP_MN_QUERY_DEVICE_RELATIONS irps I can get the right name of the device.
> My question is when I can know for sure that the current device is finish his initialization?
>
> Thank you.
>