Hi
When I disable a virtual NIC which enumerated by my PCI bus driver, I
receive a IRP_MN_REMOVE_DEVICE IRP not IRP_MN_STOP_DEVICE in my bus driver?
Any info which I provide to PnP manager in my bus driver is wrong?
Thanks
Wayne
Hi
When I disable a virtual NIC which enumerated by my PCI bus driver, I
receive a IRP_MN_REMOVE_DEVICE IRP not IRP_MN_STOP_DEVICE in my bus driver?
Any info which I provide to PnP manager in my bus driver is wrong?
Thanks
Wayne
Stop is only sent on a pnp rebalance, remove is sent on disable so you are seeing the correct behavior.
d
Sent from my phone with no t9, all spilling mistakes are not intentional.
-----Original Message-----
From: Wayne Gong
Sent: Sunday, November 09, 2008 9:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] why IRP_MN_REMOVE_DEVICE?
Hi
When I disable a virtual NIC which enumerated by my PCI bus driver, I
receive a IRP_MN_REMOVE_DEVICE IRP not IRP_MN_STOP_DEVICE in my bus driver?
Any info which I provide to PnP manager in my bus driver is wrong?
Thanks
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:
Stop is only sent on a pnp rebalance, remove is sent on disable so you are seeing the correct behavior.
Yes, got it. My fault in driver is to really remove PDO in bus driver.
But if I scan hardware, such PDO will be enumerated by bus driver.
That’s why my bus driver cannot work properly. So now, I update bus
driver to enhance enumeration mechanism for child device. Works well now.
Thanks
Wayne