dmscript: Convert dll registration to the IRegistrar mechanism.
diff --git a/dlls/dmscript/dmscript_main.c b/dlls/dmscript/dmscript_main.c
index 6c382ed..da68ce1 100644
--- a/dlls/dmscript/dmscript_main.c
+++ b/dlls/dmscript/dmscript_main.c
@@ -21,9 +21,11 @@
#include "wine/port.h"
#include "dmscript_private.h"
+#include "rpcproxy.h"
WINE_DEFAULT_DEBUG_CHANNEL(dmscript);
+static HINSTANCE instance;
LONG DMSCRIPT_refCount = 0;
typedef struct {
@@ -552,6 +554,7 @@
*/
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
if (fdwReason == DLL_PROCESS_ATTACH) {
+ instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
/* FIXME: Initialisation */
} else if (fdwReason == DLL_PROCESS_DETACH) {
@@ -628,6 +631,22 @@
}
+/***********************************************************************
+ * DllRegisterServer (DMSCRIPT.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ return __wine_register_resources( instance, NULL );
+}
+
+/***********************************************************************
+ * DllUnregisterServer (DMSCRIPT.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ return __wine_unregister_resources( instance, NULL );
+}
+
/******************************************************************
* Helper functions
*