uninstall device

Hi all,
What is the API to uninstall device on XP?
How can I programmatically uninstall a device (USB device) on XP,
the equivalent to go to the device manager, finding my device,
right click on it and selecting uninstall.

I want the next time I’ll plug my device the operating system windows XP
will not recognize the device and the wizard of a new hardware detect will
appear.

OS.

There is a function, SetupDiRemoveDevice(), that appears to be what you
want. But it requires some parameters, and to get them you’ll need some
kind of device description.


If replying by e-mail, please remove “nospam.” from the address.

James Antognini