From: Aric Stewart Subject: (resend)[1/2]winehidminidriver.sys: Add HID minidriver Message-Id: <559FF0B8.8080002@codeweavers.com> Date: Fri, 10 Jul 2015 11:20:08 -0500 --- configure | 2 ++ configure.ac | 1 + dlls/winehidminidriver.sys/Makefile.in | 6 ++++ dlls/winehidminidriver.sys/main.c | 36 ++++++++++++++++++++++ .../winehidminidriver.sys.spec | 1 + loader/wine.inf.in | 13 ++++++++ 6 files changed, 59 insertions(+) create mode 100644 dlls/winehidminidriver.sys/Makefile.in create mode 100644 dlls/winehidminidriver.sys/main.c create mode 100644 dlls/winehidminidriver.sys/winehidminidriver.sys.spec diff --git a/configure b/configure index f91f1a8..4e71b96 100755 --- a/configure +++ b/configure @@ -1309,6 +1309,7 @@ enable_winealsa_drv enable_winecoreaudio_drv enable_wined3d enable_winegstreamer +enable_winehidminidriver_sys enable_winejoystick_drv enable_winemac_drv enable_winemapi @@ -17663,6 +17664,7 @@ wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv wine_fn_config_lib winecrt0 wine_fn_config_dll wined3d enable_wined3d implib wine_fn_config_dll winegstreamer enable_winegstreamer +wine_fn_config_dll winehidminidriver.sys enable_winehidminidriver_sys wine_fn_config_dll winejoystick.drv enable_winejoystick_drv wine_fn_config_dll winemac.drv enable_winemac_drv wine_fn_config_dll winemapi enable_winemapi diff --git a/configure.ac b/configure.ac index 3eaec29..4445556 100644 --- a/configure.ac +++ b/configure.ac @@ -3359,6 +3359,7 @@ WINE_CONFIG_DLL(winecoreaudio.drv) WINE_CONFIG_LIB(winecrt0) WINE_CONFIG_DLL(wined3d,,[implib]) WINE_CONFIG_DLL(winegstreamer) +WINE_CONFIG_DLL(winehidminidriver.sys,,[implib]) WINE_CONFIG_DLL(winejoystick.drv) WINE_CONFIG_DLL(winemac.drv) WINE_CONFIG_DLL(winemapi) diff --git a/dlls/winehidminidriver.sys/Makefile.in b/dlls/winehidminidriver.sys/Makefile.in new file mode 100644 index 0000000..1d90c0e --- /dev/null +++ b/dlls/winehidminidriver.sys/Makefile.in @@ -0,0 +1,6 @@ +MODULE = winehidminidriver.sys +IMPORTS = ntoskrnl.exe hidclass +EXTRADLLFLAGS = -Wb,--subsystem,native + +C_SRCS = \ + main.c diff --git a/dlls/winehidminidriver.sys/main.c b/dlls/winehidminidriver.sys/main.c new file mode 100644 index 0000000..ffe8974 --- /dev/null +++ b/dlls/winehidminidriver.sys/main.c @@ -0,0 +1,36 @@ +/* + * WINE Hid minidriver + * + * Copyright 2015 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 + */ + +#define NONAMELESSUNION +#include +#include +#include "ntstatus.h" +#define WIN32_NO_STATUS +#include "windef.h" +#include "winbase.h" +#include "winternl.h" +#include "ddk/wdm.h" +#include "wine/unicode.h" + +/* main entry point for the driver */ +NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) +{ + return STATUS_SUCCESS; +} diff --git a/dlls/winehidminidriver.sys/winehidminidriver.sys.spec b/dlls/winehidminidriver.sys/winehidminidriver.sys.spec new file mode 100644 index 0000000..76421d7 --- /dev/null +++ b/dlls/winehidminidriver.sys/winehidminidriver.sys.spec @@ -0,0 +1 @@ +# nothing to export diff --git a/loader/wine.inf.in b/loader/wine.inf.in index b647c3b..21efca5 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -129,6 +129,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineHID,0x800,WineHIDService [DefaultInstall.NT.Services] AddService=BITS,0,BITSService @@ -142,6 +143,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineHID,0x800,WineHIDService [DefaultInstall.ntamd64.Services] AddService=BITS,0,BITSService @@ -155,6 +157,7 @@ AddService=FontCache3.0.0.0,0,WPFFontCacheService AddService=LanmanServer,0,LanmanServerService AddService=FontCache,0,FontCacheService AddService=Schedule,0,TaskSchedulerService +AddService=WineHID,0x800,WineHIDService [Strings] MciExtStr="Software\Microsoft\Windows NT\CurrentVersion\MCI Extensions" @@ -2499,6 +2502,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 11,,winetest.exe,- 12,,mountmgr.sys,- 12,,ndis.sys,- +12,,winehidminidriver.sys,- ; skip .NET fake dlls in Wine Mono package 11,,aspnet_regiis.exe,- 11,,ngen.exe,- @@ -2537,6 +2541,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G" 11,,winetest.exe,- 12,,mountmgr.sys 12,,ndis.sys +12,,winehidminidriver.sys,- ; skip .NET fake dlls in Wine Mono package 11,,aspnet_regiis.exe,- 11,,ngen.exe,- @@ -3128,6 +3133,14 @@ ServiceType=1 StartType=2 ErrorControl=1 +[WineHIDService] +Description="Wine HID Minidriver" +DisplayName="Wine HID" +ServiceBinary="%12%\winehidminidriver.sys" +ServiceType=1 +StartType=2 +ErrorControl=1 + [SpoolerService] Description="Loads files to memory for later printing" DisplayName="Print Spooler"