Alistair Leslie-Hughes : netcfgx: Implement DllCanUnloadNow, DllGetClassObject, DllRegisterServer, DllUnregisterServer.
Alexandre Julliard
julliard at winehq.org
Thu Mar 20 16:22:52 CDT 2014
Module: wine
Branch: master
Commit: d2733579ae1dada7b4e362f41ba92784baa26e56
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d2733579ae1dada7b4e362f41ba92784baa26e56
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Mar 20 10:10:14 2014 +1100
netcfgx: Implement DllCanUnloadNow, DllGetClassObject, DllRegisterServer, DllUnregisterServer.
---
dlls/netcfgx/main.c | 28 ++++++++++++++++++++++++++++
dlls/netcfgx/netcfgx.spec | 8 ++++----
2 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/dlls/netcfgx/main.c b/dlls/netcfgx/main.c
index 6cd1894..dd3394c 100644
--- a/dlls/netcfgx/main.c
+++ b/dlls/netcfgx/main.c
@@ -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;
+}
diff --git a/dlls/netcfgx/netcfgx.spec b/dlls/netcfgx/netcfgx.spec
index 38ce927..cb48a6d 100644
--- a/dlls/netcfgx/netcfgx.spec
+++ b/dlls/netcfgx/netcfgx.spec
@@ -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
More information about the wine-cvs
mailing list