From f839f1f8aadac5d7853044537f22a127f20d6487 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 1 Sep 2016 15:18:17 +0200 Subject: [PATCH] winebus.sys: Add stub driver. Signed-off-by: Aric Stewart Signed-off-by: Sebastian Lackner Signed-off-by: Alexandre Julliard --- configure | 2 ++ configure.ac | 1 + dlls/winebus.sys/Makefile.in | 5 ++++ dlls/winebus.sys/main.c | 38 +++++++++++++++++++++++++++++++ dlls/winebus.sys/winebus.sys.spec | 1 + loader/wine.inf.in | 14 ++++++++++++ 6 files changed, 61 insertions(+) create mode 100644 dlls/winebus.sys/Makefile.in create mode 100644 dlls/winebus.sys/main.c create mode 100644 dlls/winebus.sys/winebus.sys.spec diff --git a/configure b/configure index a7eac8dc458..da08e8f0848 100755 --- a/configure +++ b/configure @@ -1383,6 +1383,7 @@ enable_wimgapi enable_windowscodecs enable_windowscodecsext enable_winealsa_drv +enable_winebus_sys enable_winecoreaudio_drv enable_wined3d enable_winegstreamer @@ -18148,6 +18149,7 @@ wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test wine_fn_config_dll windowscodecsext enable_windowscodecsext implib wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test wine_fn_config_dll winealsa.drv enable_winealsa_drv +wine_fn_config_dll winebus.sys enable_winebus_sys wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv wine_fn_config_lib winecrt0 wine_fn_config_dll wined3d enable_wined3d implib diff --git a/configure.ac b/configure.ac index 0331c362a99..0154baa73c1 100644 --- a/configure.ac +++ b/configure.ac @@ -3368,6 +3368,7 @@ WINE_CONFIG_TEST(dlls/windowscodecs/tests) WINE_CONFIG_DLL(windowscodecsext,,[implib]) WINE_CONFIG_TEST(dlls/windowscodecsext/tests) WINE_CONFIG_DLL(winealsa.drv) +WINE_CONFIG_DLL(winebus.sys) WINE_CONFIG_DLL(winecoreaudio.drv) WINE_CONFIG_LIB(winecrt0) WINE_CONFIG_DLL(wined3d,,[implib]) diff --git a/dlls/winebus.sys/Makefile.in b/dlls/winebus.sys/Makefile.in new file mode 100644 index 00000000000..d646dc3397a --- /dev/null +++ b/dlls/winebus.sys/Makefile.in @@ -0,0 +1,5 @@ +MODULE = winebus.sys +EXTRADLLFLAGS = -Wb,--subsystem,native + +C_SRCS = \ + main.c diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c new file mode 100644 index 00000000000..d495cd98757 --- /dev/null +++ b/dlls/winebus.sys/main.c @@ -0,0 +1,38 @@ +/* + * WINE Platform native bus driver + * + * Copyright 2016 Aric Stewart + * + * 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 "ntstatus.h" +#define WIN32_NO_STATUS +#include "windef.h" +#include "winbase.h" +#include "winternl.h" +#include "ddk/wdm.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(plugplay); + +NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) +{ + TRACE( "(%p, %s)\n", driver, debugstr_w(path->Buffer) ); + + return STATUS_SUCCESS; +} diff --git a/dlls/winebus.sys/winebus.sys.spec b/dlls/winebus.sys/winebus.sys.spec new file mode 100644 index 00000000000..76421d7e35b --- /dev/null +++ b/dlls/winebus.sys/winebus.sys.spec @@ -0,0 +1 @@ +# nothing to export diff --git a/loader/wine.inf.in b/loader/wine.inf.in index f611ea0665f..4e2902637f8 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -130,6 +130,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineBus,0,WineBusService [DefaultInstall.NT.Services] AddService=BITS,0,BITSService @@ -144,6 +145,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineBus,0,WineBusService [DefaultInstall.ntamd64.Services] AddService=BITS,0,BITSService @@ -158,6 +160,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineBus,0,WineBusService [Strings] MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions" @@ -2518,6 +2521,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 12,,mountmgr.sys,- 12,,ndis.sys,- 12,,tdi.sys,- +12,,winebus.sys,- ; skip .NET fake dlls in Wine Mono package 11,,aspnet_regiis.exe,- 11,,ngen.exe,- @@ -2560,6 +2564,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 12,,mountmgr.sys 12,,ndis.sys 12,,tdi.sys +12,,winebus.sys ; skip .NET fake dlls in Wine Mono package 11,,aspnet_regiis.exe,- 11,,ngen.exe,- @@ -3176,6 +3181,15 @@ ServiceType=32 StartType=3 ErrorControl=1 +[WineBusService] +Description="Wine Platform Bus Kernel" +DisplayName="Platform Bus Kernel" +ServiceBinary="%12%\winebus.sys" +LoadOrderGroup="WinePlugPlay" +ServiceType=1 +StartType=3 +ErrorControl=1 + [SpoolerService] Description="Loads files to memory for later printing" DisplayName="Print Spooler"