Huw Davies <huw(a)codeweavers.com> wrote:
+ factory->IClassFactory_iface.lpVtbl = &ClassFactory_Vtbl; + factory->IMarshal_iface.lpVtbl = &Marshal_Vtbl; + factory->clsid = *clsid; + factory->ref = 1; + + hr = CoRegisterClassObject(clsid, (IUnknown *)&factory->IClassFactory_iface, + CLSCTX_LOCAL_SERVER, REGCLS_SURROGATE, &surrogate->cookie);
Does REGCLS_SURROGATE require any special treatment from combase?
Probably REGCLS_SURROGATE is supposed to signal that CoFreeUnusedLibraries() should call ISurrogate::FreeSurrogate(). This part is still not implemented. Apart from calling ISurrogate::FreeSurrogate() I'm not aware of other things that need special handling, so I'd appreciate suggestions regarding this. -- Dmitry.