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:
Jacek Caban 2019-09-18 15:25:04 +02:00 committed by Alexandre Julliard
parent de6554a312
commit 30bbed5d1a
2 changed files with 20 additions and 0 deletions

View File

@ -444,6 +444,25 @@ HRESULT WINAPI DllUnregisterServer(void)
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)
{
struct scriptlet_typelib *This;

View File

@ -1,4 +1,5 @@
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllInstall(long wstr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()