SYMPTOM:
When trying to register a custom ScanMD DLL on Windows 7, despite logging in as the local Administrator, the following error is given:

The module “D:\Program Files\Strategy\ScanMD\Commontests.dll” was loaded but the call to DllRegisterServer failed with error code 0x80004005.