Exposing the Class Factory from .DLL Servers

To expose its class factory, an in-process server only needs to export4. a function explicitly named DllGetClassObject. The COM Library will attempt to locate this function in the .DLL's exports5. and call it from within CoGetClassObject when the client has specified CLSCTX_INPROC_SERVER. Note that a .DLL server can in addition expose a class factory at a later time using the function CoRegisterClassObject discussed for .EXE servers below. This would only be used after the .DLL was already loaded for some other reason.