Thanks for the info. Now I have to consider if it is worthy to make this
change.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@seagate.com
Sent: Monday, March 20, 2006 5:50 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to prepare a pnp device for removal?
God I hope not. Doron said that functionality is reserved for user level.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Yiping Han
Sent: Monday, March 20, 2006 4:43 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to prepare a pnp device for removal?
Is there a way that one driver can remove a device from another driver at
kernel level?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Monday, March 20, 2006 5:20 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to prepare a pnp device for removal?
You cannot gracefully remove yourself from within a driver. That
functionality is only exposed through user mode.
d
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Yiping Han
Sent: Monday, March 20, 2006 2:10 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to prepare a pnp device for removal?
Thanks, Roddy.
Do you know it there a way I can do this inside my driver?
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Monday, March 20, 2006 4:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] How to prepare a pnp device for removal?
Write a service that communicates with your driver and uses the user
mode PnP apis to do exactly what Device Manager is doing. See the devcon
sample in the DDK.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Yiping Han
Sent: Monday, March 20, 2006 4:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to prepare a pnp device for removal?
My code tries to remove a virtual disk resource and I got Event ID 12
(disappeared from the system without first being prepared for removal.)
from PlugPlayManager.
If I manually unload the device from Device Manager and then remove the
resource, then the error event disappeared. So, how can I do the similar
thing in a driver?
Please forgive my ignorance if my question is unclear or technically
wrong:-)
– Yiping Han
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer