How to notify PnP manager change device node status

Hi,

A continue question for WHQL PnPDTest resource balance fail restart test
case.

After I process stop_device which PnPDTest send to my bus driver’s child
PDO. I release memory and others and return success following by WDK
document. Then PnPDTest will get a start_device and will fail it. Then
it will waiting for surprise remove and remove for a time. At time it’s
waiting, I check the device status in device manager find that such
device is working properly. After time out, PnPDTest raise a warning
dialog says that ‘Device node state not as expected: problem code 0’. I
think I should do something in stop_device routine to tell PnP manager
to change device node status to make PnPDTest happy. How can I do that?

Thank
wayne

You should not need to do anything in your stop device handler to notify the pnp manager of any change of status. My guess is improper IRP handling here. Turn on driver verifier on your bus driver, on your fdo and on pnpdtest.sys (or whatever driver name it uses)

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Wayne Gong
Sent: Wednesday, February 25, 2009 11:02 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to notify PnP manager change device node status

Hi,

A continue question for WHQL PnPDTest resource balance fail restart test
case.

After I process stop_device which PnPDTest send to my bus driver’s child
PDO. I release memory and others and return success following by WDK
document. Then PnPDTest will get a start_device and will fail it. Then
it will waiting for surprise remove and remove for a time. At time it’s
waiting, I check the device status in device manager find that such
device is working properly. After time out, PnPDTest raise a warning
dialog says that ‘Device node state not as expected: problem code 0’. I
think I should do something in stop_device routine to tell PnP manager
to change device node status to make PnPDTest happy. How can I do that?

Thank
wayne


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

Doron Holan wrote:

You should not need to do anything in your stop device handler to notify the pnp manager of any change of status. My guess is improper IRP handling here. Turn on driver verifier on your bus driver, on your fdo and on pnpdtest.sys (or whatever driver name it uses)

Nothing more found on driver verify standing setting on for all my
driver and pnpflter.sys.

thanks
wayne

Right now I cannot figure out why but I know that in DTM runtime test
system. Rebalance(Fail restart) test case is not included in PnP test
case for NIC adapter.

thanks
wayne