Tech Support > Microsoft Windows > Drivers > Re: surprise removal trashes my driver
Re: surprise removal trashes my driver
Posted by Marc Reinig on July 23rd, 2003


Do you issue WMIREG_ACTION_DEREGISTER after you are told to remove your
device?

Marc Reinig
System Solutions

"Josh Stone" <josh@4sonora.com> wrote in message
news:u5HD65TUDHA.1556@TK2MSFTNGP10.phx.gbl...


Posted by Josh Stone on July 23rd, 2003


Yup - and just to be sure, I added debugging messages everytime I call
REGISTER or DEREGISTER. Sure enough, they are being called where I thought
they should be. The only time I call REGISTER is during the AddDevice
phase, and I call DEREGISTER in response to IRP_MN_REMOVE_DEVICE.

Josh Stone

"Marc Reinig" <nospam@nospam.com> wrote in message
news:uUxTZTVUDHA.2196@TK2MSFTNGP11.phx.gbl...



Similar Posts