scrobj: Add partial DllInstall implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
de6554a312
commit
30bbed5d1a
|
@ -444,6 +444,25 @@ HRESULT WINAPI DllUnregisterServer(void)
|
||||||
return __wine_unregister_resources(scrobj_instance);
|
return __wine_unregister_resources(scrobj_instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* DllInstall (scrobj.@)
|
||||||
|
*/
|
||||||
|
HRESULT WINAPI DllInstall(BOOL install, const WCHAR *arg)
|
||||||
|
{
|
||||||
|
HRESULT hres;
|
||||||
|
|
||||||
|
if (install)
|
||||||
|
{
|
||||||
|
hres = DllRegisterServer();
|
||||||
|
if (!arg || FAILED(hres)) return hres;
|
||||||
|
}
|
||||||
|
else if (!arg)
|
||||||
|
return DllUnregisterServer();
|
||||||
|
|
||||||
|
FIXME("argument %s not supported\n", debugstr_w(arg));
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI scriptlet_typelib_CreateInstance(IClassFactory *factory, IUnknown *outer, REFIID riid, void **obj)
|
static HRESULT WINAPI scriptlet_typelib_CreateInstance(IClassFactory *factory, IUnknown *outer, REFIID riid, void **obj)
|
||||||
{
|
{
|
||||||
struct scriptlet_typelib *This;
|
struct scriptlet_typelib *This;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@ stdcall -private DllCanUnloadNow()
|
@ stdcall -private DllCanUnloadNow()
|
||||||
@ stdcall -private DllGetClassObject(ptr ptr ptr)
|
@ stdcall -private DllGetClassObject(ptr ptr ptr)
|
||||||
|
@ stdcall -private DllInstall(long wstr)
|
||||||
@ stdcall -private DllRegisterServer()
|
@ stdcall -private DllRegisterServer()
|
||||||
@ stdcall -private DllUnregisterServer()
|
@ stdcall -private DllUnregisterServer()
|
||||||
|
|
Loading…
Reference in New Issue