netcfgx: Implement DllCanUnloadNow, DllGetClassObject, DllRegisterServer, DllUnregisterServer.

This commit is contained in:
Alistair Leslie-Hughes 2014-03-20 10:10:14 +11:00 committed by Alexandre Julliard
parent b56102e998
commit d2733579ae
2 changed files with 32 additions and 4 deletions

View File

@ -21,14 +21,20 @@
#include "windef.h"
#include "winbase.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(netcfgx);
static HINSTANCE NETCFGX_hInstance;
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
NETCFGX_hInstance = hinstDLL;
switch (fdwReason)
{
case DLL_WINE_PREATTACH:
@ -42,3 +48,25 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return TRUE;
}
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
return CLASS_E_CLASSNOTAVAILABLE;
}
HRESULT WINAPI DllRegisterServer(void)
{
return __wine_register_resources( NETCFGX_hInstance );
}
HRESULT WINAPI DllUnregisterServer(void)
{
return __wine_unregister_resources( NETCFGX_hInstance );
}
HRESULT WINAPI DllCanUnloadNow(void)
{
return S_FALSE;
}

View File

@ -1,7 +1,7 @@
@ stub DllCanUnloadNow
@ stub DllGetClassObject
@ stub DllRegisterServer
@ stub DllUnregisterServer
@ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr)
@ stdcall -private DllRegisterServer()
@ stdcall -private DllUnregisterServer()
@ stub HrDiAddComponentToINetCfg
@ stub LanaCfgFromCommandArgs
@ stub ModemClassCoInstaller