Loads a DLL server into the implementing surrogate. COM calls this method when there is an activation request for the DLL server's class, if the class is registered as DllSurrogate.
HRESULT LoadDllServer(
REFCLSID Clsid, //CLSID of the DLL server to be loaded
);
This method supports the standard return values E_UNEXPECTED, E_OUTOFMEMORY, and E_INVALIDARG, as well as the following:
Upon receiving a load request through ISurrogate::LoadDllServer, the surrogate must perform the following steps :
This class factory's implementation of IClassFactory::CreateInstance will create an instance of the requested CLSID method by calling CoGetClassObject to get the class factory which creates an actual object for the given CLSID.
Windows NT: Use version 4.0 SP2 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.
ISurrogate, ISurrogate::FreeSurrogate, DllSurrogate, CoRegisterSurrogate, Writing a Custom Surrogate