Hi Bruce, Took a while for penny to drop about unload service.
Just to be sure: my tests seem to indicate that if there's an explicit unload service, it's called, then the code in the DLL_PROCESS_DETACH section of DllMain. But if powerpro is shutdown, and there's an explicit unload service, it's not called: only the DLL_PROCESS_DETACH stuff. That so?
