[PATCH v2 3/8] dllhost: Implement ISurrogate::LoadDllServer().

Dmitry Timoshkov dmitry at baikal.ru
Wed Feb 23 06:47:49 CST 2022


Huw Davies <huw at 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.



More information about the wine-devel mailing list