From 79a82bb0fba6786ef42d832b6c35c9a74ff4f71e Mon Sep 17 00:00:00 2001 From: Austin English Date: Tue, 13 Oct 2020 04:42:03 -0500 Subject: [PATCH] dxapi.sys: add stub dll Signed-off-by: Austin English --- configure.ac | 1 + dlls/dxapi.sys/Makefile.in | 8 +++++++ dlls/dxapi.sys/dxapi.sys.spec | 7 ++++++ dlls/dxapi.sys/main.c | 42 +++++++++++++++++++++++++++++++++++ dlls/dxapi.sys/version.rc | 26 ++++++++++++++++++++++ loader/wine.inf.in | 2 ++ 6 files changed, 86 insertions(+) create mode 100644 dlls/dxapi.sys/Makefile.in create mode 100644 dlls/dxapi.sys/dxapi.sys.spec create mode 100644 dlls/dxapi.sys/main.c create mode 100644 dlls/dxapi.sys/version.rc diff --git a/configure.ac b/configure.ac index 11c7eb88a00..794e3207517 100644 --- a/configure.ac +++ b/configure.ac @@ -3247,6 +3247,7 @@ WINE_CONFIG_MAKEFILE(dlls/dwmapi) WINE_CONFIG_MAKEFILE(dlls/dwmapi/tests) WINE_CONFIG_MAKEFILE(dlls/dwrite) WINE_CONFIG_MAKEFILE(dlls/dwrite/tests) +WINE_CONFIG_MAKEFILE(dlls/dxapi.sys) WINE_CONFIG_MAKEFILE(dlls/dx8vb) WINE_CONFIG_MAKEFILE(dlls/dxdiagn) WINE_CONFIG_MAKEFILE(dlls/dxdiagn/tests) diff --git a/dlls/dxapi.sys/Makefile.in b/dlls/dxapi.sys/Makefile.in new file mode 100644 index 00000000000..53df0e25040 --- /dev/null +++ b/dlls/dxapi.sys/Makefile.in @@ -0,0 +1,8 @@ +MODULE = dxapi.sys + +EXTRADLLFLAGS = -mno-cygwin + +C_SRCS = \ + main.c + +RC_SRCS = version.rc diff --git a/dlls/dxapi.sys/dxapi.sys.spec b/dlls/dxapi.sys/dxapi.sys.spec new file mode 100644 index 00000000000..05748b5fe59 --- /dev/null +++ b/dlls/dxapi.sys/dxapi.sys.spec @@ -0,0 +1,7 @@ +@ stub _DxApi@20 +@ stub _DxApiGetVersion@0 +@ stub _DxApiInitialize@32 +@ stub _DxAutoflipUpdate@20 +@ stub _DxEnableIRQ@8 +@ stub _DxLoseObject@8 +@ stub _DxUpdateCapture@12 diff --git a/dlls/dxapi.sys/main.c b/dlls/dxapi.sys/main.c new file mode 100644 index 00000000000..be1e04ec188 --- /dev/null +++ b/dlls/dxapi.sys/main.c @@ -0,0 +1,42 @@ +/* + * + * 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 + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(dxapi); + +BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) +{ + TRACE("(%p, %u, %p)\n", instance, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(instance); + break; + } + + return TRUE; +} diff --git a/dlls/dxapi.sys/version.rc b/dlls/dxapi.sys/version.rc new file mode 100644 index 00000000000..7ecd1565052 --- /dev/null +++ b/dlls/dxapi.sys/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 dxapi.sys" +#define WINE_FILENAME_STR "dxapi.sys" +#define WINE_FILEVERSION 5,0,2180,1 +#define WINE_FILEVERSION_STR "5.0.2180.1" +#define WINE_PRODUCTVERSION 5,0,2180,1 +#define WINE_PRODUCTVERSION_STR "5.0.2180.1" + +#include "wine/wine_common_ver.rc" diff --git a/loader/wine.inf.in b/loader/wine.inf.in index 20d5243aa4b..b4052b146b4 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -2632,6 +2632,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 10,syswow64,stdole2.tlb 11,,iexplore.exe 11,,winetest.exe,- +12,,dxapi.sys,- 12,,dxgkrnl.sys,- 12,,dxgmms1.sys,- 12,,fltmgr.sys,- @@ -2689,6 +2690,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 11,,iexplore.exe 11,,notepad.exe 11,,winetest.exe,- +12,,dxapi.sys,- 12,,dxgkrnl.sys 12,,dxgmms1.sys 12,,fltmgr.sys -- 2.29.2