winebus.sys: Add stub driver.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2016-09-01 15:18:17 +02:00 committed by Alexandre Julliard
parent 5942625a00
commit f839f1f8aa
6 changed files with 61 additions and 0 deletions

2
configure vendored
View File

@ -1383,6 +1383,7 @@ enable_wimgapi
enable_windowscodecs enable_windowscodecs
enable_windowscodecsext enable_windowscodecsext
enable_winealsa_drv enable_winealsa_drv
enable_winebus_sys
enable_winecoreaudio_drv enable_winecoreaudio_drv
enable_wined3d enable_wined3d
enable_winegstreamer 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_dll windowscodecsext enable_windowscodecsext implib
wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
wine_fn_config_dll winealsa.drv enable_winealsa_drv 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_dll winecoreaudio.drv enable_winecoreaudio_drv
wine_fn_config_lib winecrt0 wine_fn_config_lib winecrt0
wine_fn_config_dll wined3d enable_wined3d implib wine_fn_config_dll wined3d enable_wined3d implib

View File

@ -3368,6 +3368,7 @@ WINE_CONFIG_TEST(dlls/windowscodecs/tests)
WINE_CONFIG_DLL(windowscodecsext,,[implib]) WINE_CONFIG_DLL(windowscodecsext,,[implib])
WINE_CONFIG_TEST(dlls/windowscodecsext/tests) WINE_CONFIG_TEST(dlls/windowscodecsext/tests)
WINE_CONFIG_DLL(winealsa.drv) WINE_CONFIG_DLL(winealsa.drv)
WINE_CONFIG_DLL(winebus.sys)
WINE_CONFIG_DLL(winecoreaudio.drv) WINE_CONFIG_DLL(winecoreaudio.drv)
WINE_CONFIG_LIB(winecrt0) WINE_CONFIG_LIB(winecrt0)
WINE_CONFIG_DLL(wined3d,,[implib]) WINE_CONFIG_DLL(wined3d,,[implib])

View File

@ -0,0 +1,5 @@
MODULE = winebus.sys
EXTRADLLFLAGS = -Wb,--subsystem,native
C_SRCS = \
main.c

38
dlls/winebus.sys/main.c Normal file
View File

@ -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 <stdarg.h>
#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;
}

View File

@ -0,0 +1 @@
# nothing to export

View File

@ -130,6 +130,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService
AddService=LanmanServer,0,LanmanServerService AddService=LanmanServer,0,LanmanServerService
AddService=FontCache,0,FontCacheService AddService=FontCache,0,FontCacheService
AddService=Schedule,0,TaskSchedulerService AddService=Schedule,0,TaskSchedulerService
AddService=WineBus,0,WineBusService
[DefaultInstall.NT.Services] [DefaultInstall.NT.Services]
AddService=BITS,0,BITSService AddService=BITS,0,BITSService
@ -144,6 +145,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService
AddService=LanmanServer,0,LanmanServerService AddService=LanmanServer,0,LanmanServerService
AddService=FontCache,0,FontCacheService AddService=FontCache,0,FontCacheService
AddService=Schedule,0,TaskSchedulerService AddService=Schedule,0,TaskSchedulerService
AddService=WineBus,0,WineBusService
[DefaultInstall.ntamd64.Services] [DefaultInstall.ntamd64.Services]
AddService=BITS,0,BITSService AddService=BITS,0,BITSService
@ -158,6 +160,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService
AddService=LanmanServer,0,LanmanServerService AddService=LanmanServer,0,LanmanServerService
AddService=FontCache,0,FontCacheService AddService=FontCache,0,FontCacheService
AddService=Schedule,0,TaskSchedulerService AddService=Schedule,0,TaskSchedulerService
AddService=WineBus,0,WineBusService
[Strings] [Strings]
MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions" MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions"
@ -2518,6 +2521,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
12,,mountmgr.sys,- 12,,mountmgr.sys,-
12,,ndis.sys,- 12,,ndis.sys,-
12,,tdi.sys,- 12,,tdi.sys,-
12,,winebus.sys,-
; skip .NET fake dlls in Wine Mono package ; skip .NET fake dlls in Wine Mono package
11,,aspnet_regiis.exe,- 11,,aspnet_regiis.exe,-
11,,ngen.exe,- 11,,ngen.exe,-
@ -2560,6 +2564,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
12,,mountmgr.sys 12,,mountmgr.sys
12,,ndis.sys 12,,ndis.sys
12,,tdi.sys 12,,tdi.sys
12,,winebus.sys
; skip .NET fake dlls in Wine Mono package ; skip .NET fake dlls in Wine Mono package
11,,aspnet_regiis.exe,- 11,,aspnet_regiis.exe,-
11,,ngen.exe,- 11,,ngen.exe,-
@ -3176,6 +3181,15 @@ ServiceType=32
StartType=3 StartType=3
ErrorControl=1 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] [SpoolerService]
Description="Loads files to memory for later printing" Description="Loads files to memory for later printing"
DisplayName="Print Spooler" DisplayName="Print Spooler"