Module: wine
Branch: master
Commit: 0f29186a23c2639eb14a805569b8b5e9a848428f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=0f29186a23c2639eb14a8055…
Author: Austin English <austinenglish(a)gmail.com>
Date: Mon Nov 30 02:27:56 2020 -0600
dcomp: Add stub dll.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50206
Signed-off-by: Austin English <austinenglish(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/dcomp/Makefile.in | 8 ++++++++
dlls/dcomp/dcomp.spec | 27 +++++++++++++++++++++++++++
dlls/dcomp/main.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
dlls/dcomp/version.rc | 26 ++++++++++++++++++++++++++
6 files changed, 108 insertions(+)
diff --git a/configure b/configure
index 9ee3ffdc947..d025c38934c 100755
--- a/configure
+++ b/configure
@@ -1244,6 +1244,7 @@ enable_davclnt
enable_dbgeng
enable_dbghelp
enable_dciman32
+enable_dcomp
enable_ddraw
enable_ddrawex
enable_devenum
@@ -20214,6 +20215,7 @@ wine_fn_config_makefile dlls/dbgeng/tests enable_tests
wine_fn_config_makefile dlls/dbghelp enable_dbghelp
wine_fn_config_makefile dlls/dbghelp/tests enable_tests
wine_fn_config_makefile dlls/dciman32 enable_dciman32
+wine_fn_config_makefile dlls/dcomp enable_dcomp
wine_fn_config_makefile dlls/ddeml.dll16 enable_win16
wine_fn_config_makefile dlls/ddraw enable_ddraw
wine_fn_config_makefile dlls/ddraw/tests enable_tests
diff --git a/configure.ac b/configure.ac
index 92b555bb3b8..e823543f1cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3145,6 +3145,7 @@ WINE_CONFIG_MAKEFILE(dlls/dbgeng/tests)
WINE_CONFIG_MAKEFILE(dlls/dbghelp)
WINE_CONFIG_MAKEFILE(dlls/dbghelp/tests)
WINE_CONFIG_MAKEFILE(dlls/dciman32)
+WINE_CONFIG_MAKEFILE(dlls/dcomp)
WINE_CONFIG_MAKEFILE(dlls/ddeml.dll16,enable_win16)
WINE_CONFIG_MAKEFILE(dlls/ddraw)
WINE_CONFIG_MAKEFILE(dlls/ddraw/tests)
diff --git a/dlls/dcomp/Makefile.in b/dlls/dcomp/Makefile.in
new file mode 100644
index 00000000000..6d75a87980f
--- /dev/null
+++ b/dlls/dcomp/Makefile.in
@@ -0,0 +1,8 @@
+MODULE = dcomp.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ main.c
+
+RC_SRCS = version.rc
diff --git a/dlls/dcomp/dcomp.spec b/dlls/dcomp/dcomp.spec
new file mode 100644
index 00000000000..03801ebba6f
--- /dev/null
+++ b/dlls/dcomp/dcomp.spec
@@ -0,0 +1,27 @@
+1017 stub @
+1019 stub @
+1028 stub @
+1031 stub @
+1033 stub @
+1038 stub @
+1039 stub @
+1040 stub @
+1041 stub @
+1042 stub @
+
+@ stub CompileEffectDescription
+@ stub CreateEffectDescription
+@ stub DCompositionAttachMouseDragToHwnd
+@ stub DCompositionAttachMouseWheelToHwnd
+@ stub DCompositionCreateDevice2
+@ stub DCompositionCreateDevice3
+@ stub DCompositionCreateDevice
+@ stub DCompositionCreateSurfaceHandle
+@ stub DeserializeEffectDescription
+@ stub DllCanUnloadNow
+@ stub DllGetActivationFactory
+@ stub DllGetClassObject
+@ stub DwmEnableMMCSS
+@ stub DwmFlush
+@ stub DwmpEnableDDASupport
+@ stub SerializeEffectDescription
diff --git a/dlls/dcomp/main.c b/dlls/dcomp/main.c
new file mode 100644
index 00000000000..b0b911a9bf5
--- /dev/null
+++ b/dlls/dcomp/main.c
@@ -0,0 +1,44 @@
+/*
+ * DirectComposition Library
+ *
+ * Copyright 2020 Austin English
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(dcomp);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ default:
+ break;
+ }
+
+ return TRUE;
+}
diff --git a/dlls/dcomp/version.rc b/dlls/dcomp/version.rc
new file mode 100644
index 00000000000..a76f2675829
--- /dev/null
+++ b/dlls/dcomp/version.rc
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2020 Austin English
+ *
+ * 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
+ */
+
+#define WINE_FILEDESCRIPTION_STR "Wine dcomp"
+#define WINE_FILENAME_STR "dcomp.dll"
+#define WINE_FILEVERSION 10,0,14393,0
+#define WINE_FILEVERSION_STR "10.0.14393.0"
+#define WINE_PRODUCTVERSION 10,0,14393,0
+#define WINE_PRODUCTVERSION_STR "10.0.14393.0"
+
+#include "wine/wine_common_ver.rc"