Tech Support > Microsoft Windows > Drivers > Remove Drivers
Remove Drivers
Posted by Sushma on May 26th, 2006


Hello All,

I have developed a co-installer for installation and uninstallation of
a USB device. My program works with input as command line parameters.
The installation works fine.
Un-Installation is done based on hardware id provided as command line
parameter.
But un-installation stops or hangs (if device is plugged in) at
SetupDiCallClassInstaller() function.

SetupDiCallClassInstaller(DIF_REMOVE,
DeviceInfoSet,
&DeviceInfoData))

At this point if i un-plug the device the un-installation continues.
But if the device is un-plugged before running un-installation command,
it works fine. I have used DIGCF_ALLCLASSES flag to get device
information.

The same code works fine for any other USB device.

The problem is only with one device. Can i assume if there is any fault
in the device?
Any suggestions would be of great help.

Thanks and Regards,
Sushma

Posted by Eliyas Yakub [MSFT] on May 26th, 2006


In the hang case, did you check to see your driver is receiving and
completing all the pnp (query-remove, remove) irps? Can you run your
application in a debugger and see where it is waiting?

-Eliyas

"Sushma" <sushma.yella@gmail.com> wrote in message
news:1148646030.733271.82490@38g2000cwa.googlegrou ps.com...


Posted by Sushma on May 29th, 2006


hello yakub and all,

The driver is able to receive all pnp irps.
The application waits at the call SetupDiCallClassInstaller() with
neither true nor false. It just hangs at this call. What could be the
reason for the call not being executed?

Any suggestions?

Thanks & Regards,
Sushma

Posted by Eliyas Yakub [MSFT] on May 29th, 2006


Have you tried devcon.exe to uninstall your driver? I would try that first.

-Eliyas

"Sushma" <sushma.yella@gmail.com> wrote in message
news:1148876810.739457.277830@u72g2000cwu.googlegr oups.com...


Posted by Sushma on May 30th, 2006


Thanks for the suggestion Yakub. I tried with devcon and it working
fine now.

Thank You Once Again.

Regards,
Sushma


Similar Posts