Tech Support > Microsoft Windows > Development Resources > How to remove all registers that my project add?
How to remove all registers that my project add?
Posted by bluestar on June 20th, 2008


Dear Sir:

My project used SetupDiEnumDeviceInterfaces,
SetupDiGetDeviceInterfaceDetail and
CM_Locate_DevNode to find the devices, and then used
SetupDiSetDeviceRegistryProperty
to install / uninstall LowerFilter driver
( parameter:SPDRP_LOWERFILTERS ).

It works successfully when the device is present.

Now if want to uninstall LowerFilter driver, I hope to remove
it from all devices that already installed,
wheter the device is present or not.(some devices already
installed driver before, but they are not
present now)

I think it is easy when the device is present, but i don't
know how to remove when the device is not
presnet.

Anyone can teach me how to reach this goal?