Fix DLLRegisterserver failed with error code 0x80070715 in Windows 11/10