Once you have written and registered your user interface extension, what do you do if it doesn't work? In most applications, you can simply run Microsoft Visual C++ in debug mode, set some breakpoints, and start debugging. But user interface extensions are loaded at startup for Windows Explorer, so you must find a way to start Windows Explorer without loading all its DLLs. Here's how:
If you don't want to exit Windows to debug your extension, you can force the system to unload DLLs very quickly by changing a setting in the Registry. Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer, add the AlwaysUnloadDll key and set its value to 1. (I always set it to 1, but any value will do.) Adding this key sets the time-out value for DLLs to a very small value.