Archive: Unloading .cpl at run-time


Unloading .cpl at run-time
I'm trying to remove an already registered cpl file with my uninstaller. I've tried regsvr32 /u filename.cpl, but this doesn't work since it's not a dll or ocx file.

So then I was thinking of FreeLibrary(...) but I don't have a handle to the control panel library.

Any ideas would be much appreciated.

Thanks!


actually, a .cpl is a dll

get http://www.dependencywalker.com/ and check the .cpl for exports that might unregister it
to remove the item from control panel, delete the cpl and remove its entry from the registry if it has one