From: Vijay Kiran Kamuju Subject: [PATCH 3/3] xactengine3_7:Register the com classes. Message-Id: Date: Sat, 27 Jun 2020 02:06:45 +0200 Signed-off-by: Vijay Kiran Kamuju From 772cf293d7ee443bc73ad9e877ad7c9724bf1443 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sat, 13 Jun 2020 23:02:45 +0200 Subject: [PATCH 3/3] xactengine3_7:Register the com classes. Signed-off-by: Vijay Kiran Kamuju --- dlls/xactengine3_7/Makefile.in | 2 ++ dlls/xactengine3_7/xact_classes.idl | 28 +++++++++++++++++++++++++++ dlls/xactengine3_7/xact_dll.c | 12 ++++++++++++ dlls/xactengine3_7/xactengine3_7.spec | 4 ++-- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 dlls/xactengine3_7/xact_classes.idl diff --git a/dlls/xactengine3_7/Makefile.in b/dlls/xactengine3_7/Makefile.in index 139ccc67dc..f92aad6680 100644 --- a/dlls/xactengine3_7/Makefile.in +++ b/dlls/xactengine3_7/Makefile.in @@ -2,3 +2,5 @@ MODULE = xactengine3_7.dll C_SRCS = \ xact_dll.c + +IDL_SRCS = xact_classes.idl diff --git a/dlls/xactengine3_7/xact_classes.idl b/dlls/xactengine3_7/xact_classes.idl new file mode 100644 index 0000000000..24c792e2f0 --- /dev/null +++ b/dlls/xactengine3_7/xact_classes.idl @@ -0,0 +1,28 @@ +/* + * COM Classes for xactengine + * + * Copyright 2018 Ethan Lee for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#pragma makedep register + +[ + helpstring("XACT3 Class"), + threading(both), + uuid(bcc782bc-6492-4c22-8c35-f5d72fe73c6e) +] +coclass XACTEngine37 { interface IXACT37Engine; } diff --git a/dlls/xactengine3_7/xact_dll.c b/dlls/xactengine3_7/xact_dll.c index 0c4c24e9a2..f4cd84f044 100644 --- a/dlls/xactengine3_7/xact_dll.c +++ b/dlls/xactengine3_7/xact_dll.c @@ -21,7 +21,9 @@ #include #include "xact3.h" +#include +#include "rpcproxy.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(xact3); @@ -53,3 +55,13 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv) return CLASS_E_CLASSNOTAVAILABLE; } + +HRESULT WINAPI DllRegisterServer(void) +{ + return __wine_register_resources(instance); +} + +HRESULT WINAPI DllUnregisterServer(void) +{ + return __wine_unregister_resources(instance); +} diff --git a/dlls/xactengine3_7/xactengine3_7.spec b/dlls/xactengine3_7/xactengine3_7.spec index c534b4fbf4..b16365d0c9 100644 --- a/dlls/xactengine3_7/xactengine3_7.spec +++ b/dlls/xactengine3_7/xactengine3_7.spec @@ -1,4 +1,4 @@ @ stdcall -private DllCanUnloadNow() @ stdcall -private DllGetClassObject(ptr ptr ptr) -@ stub DllRegisterServer -@ stub DllUnregisterServer +@ stdcall -private DllRegisterServer() +@ stdcall -private DllUnregisterServer() -- 2.27.0