Never heard of DLLRegisterServer / DllUnregisterServer. What exactly does it do?

I would have thought regsvr32 was the tool to use. use the /u option to specify that you would like to unregister.