WdfDeviceSetPnpCapabilities.

I create a PDO for a usb device on top of which the device function driver is loaded.

My problem is that I want my PDO to inherit the PNP properties from the function driver. The logic being that I want the ‘Safely Remove Hardware’ icon to appear on my toolbar. I can only do this if I set the PNP properties using WdfDeviceSetPnpCapabilities when I create my PDO. What am I doing wrong?

The safe removal property of a dev node really belongs to the FDO of the stack, not thePDO

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, December 01, 2010 2:59 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfDeviceSetPnpCapabilities.

I create a PDO for a usb device on top of which the device function driver is loaded.

My problem is that I want my PDO to inherit the PNP properties from the function driver. The logic being that I want the ‘Safely Remove Hardware’ icon to appear on my toolbar. I can only do this if I set the PNP properties using WdfDeviceSetPnpCapabilities when I create my PDO. What am I doing wrong?


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

Yes, so if I create a PDO and don’t set PNP properties the device should show up with a ‘Safely Remove Hardware’ icon in the system tray, correct? This is what I assumed, but it does not happen. The icon only shows up if I explicitly set PNP properties when creating the PDO.

What sort of device?
Mark Roddy

On Thu, Dec 2, 2010 at 3:20 PM, wrote:
> Yes, so if I create a PDO and don’t set PNP properties the device should show up with a ‘Safely Remove Hardware’ icon in the system tray, correct? This is what I assumed, but it does not happen. The icon only shows up if I explicitly set PNP properties when creating the PDO.
>
> —
> 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
>

I create a PDO for a flash disk (USB).