dcomp: Add stub dll.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50206
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Austin English 2020-11-30 02:27:56 -06:00 committed by Alexandre Julliard
parent bd02a82d9c
commit 0f29186a23
6 changed files with 108 additions and 0 deletions

2
configure vendored
View File

@ -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

View File

@ -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)

8
dlls/dcomp/Makefile.in Normal file
View File

@ -0,0 +1,8 @@
MODULE = dcomp.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c
RC_SRCS = version.rc

27
dlls/dcomp/dcomp.spec Normal file
View File

@ -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

44
dlls/dcomp/main.c Normal file
View File

@ -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;
}

26
dlls/dcomp/version.rc Normal file
View File

@ -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"