[PATCH v2 3/3] xactengine2_10: Add new dll.

Vijay Kiran Kamuju infyquest at gmail.com
Sun Mar 21 06:15:58 CDT 2021


Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
---
 configure.ac                            |  1 +
 dlls/xactengine2_10/Makefile.in         |  8 ++++
 dlls/xactengine2_10/xact2_classes.idl   | 27 +++++++++++
 dlls/xactengine2_10/xact2_dll.c         | 64 +++++++++++++++++++++++++
 dlls/xactengine2_10/xactengine2_10.spec |  4 ++
 5 files changed, 104 insertions(+)
 create mode 100644 dlls/xactengine2_10/Makefile.in
 create mode 100644 dlls/xactengine2_10/xact2_classes.idl
 create mode 100644 dlls/xactengine2_10/xact2_dll.c
 create mode 100644 dlls/xactengine2_10/xactengine2_10.spec

diff --git a/configure.ac b/configure.ac
index 923d5e3b0f3..62464406ec1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3912,6 +3912,7 @@ WINE_CONFIG_MAKEFILE(dlls/x3daudio1_4)
 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_5)
 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_6)
 WINE_CONFIG_MAKEFILE(dlls/x3daudio1_7)
+WINE_CONFIG_MAKEFILE(dlls/xactengine2_10)
 WINE_CONFIG_MAKEFILE(dlls/xactengine3_0)
 WINE_CONFIG_MAKEFILE(dlls/xactengine3_1)
 WINE_CONFIG_MAKEFILE(dlls/xactengine3_2)
diff --git a/dlls/xactengine2_10/Makefile.in b/dlls/xactengine2_10/Makefile.in
new file mode 100644
index 00000000000..b1c131ddfd9
--- /dev/null
+++ b/dlls/xactengine2_10/Makefile.in
@@ -0,0 +1,8 @@
+MODULE    = xactengine2_10.dll
+IMPORTS   = ole32 uuid
+EXTRADEFS = -DXACT3_VER=0x0210
+
+C_SRCS = \
+	xact2_dll.c
+
+IDL_SRCS = xact2_classes.idl
diff --git a/dlls/xactengine2_10/xact2_classes.idl b/dlls/xactengine2_10/xact2_classes.idl
new file mode 100644
index 00000000000..1a248327bb7
--- /dev/null
+++ b/dlls/xactengine2_10/xact2_classes.idl
@@ -0,0 +1,27 @@
+/*
+ * 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
+
+[
+    threading(both),
+    uuid(65d822a4-4799-42c6-9b18-d26cf66dd320)
+]
+coclass XACTEngine {}
diff --git a/dlls/xactengine2_10/xact2_dll.c b/dlls/xactengine2_10/xact2_dll.c
new file mode 100644
index 00000000000..743f17c0691
--- /dev/null
+++ b/dlls/xactengine2_10/xact2_dll.c
@@ -0,0 +1,64 @@
+/*
+ * Copyright (c) 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+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "initguid.h"
+#include "xact.h"
+#include "rpcproxy.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(xact3);
+
+static HINSTANCE instance;
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, void *pReserved)
+{
+    TRACE("(%p, %d, %p)\n", hinstDLL, reason, pReserved);
+
+    switch (reason)
+    {
+    case DLL_PROCESS_ATTACH:
+        instance = hinstDLL;
+        DisableThreadLibraryCalls( hinstDLL );
+        break;
+    }
+    return TRUE;
+}
+
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+    return S_FALSE;
+}
+
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, void **ppv)
+{
+    FIXME("Unknown class %s\n", debugstr_guid(rclsid));
+    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/xactengine2_10/xactengine2_10.spec b/dlls/xactengine2_10/xactengine2_10.spec
new file mode 100644
index 00000000000..b16365d0c9f
--- /dev/null
+++ b/dlls/xactengine2_10/xactengine2_10.spec
@@ -0,0 +1,4 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
-- 
2.29.2




More information about the wine-devel mailing list