HRESULT DllRegisterServer(void);

HRESULT DllUnregisterServer(void);

Both of these entry points are required for a .DLL to be self-registering. The implementation of the DllRegisterServer entry point adds or updates registry information for all the classes implemented by the .DLL. The DllUnregisterServer entry point removes its information from the registry.