http.sys: New stub driver.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-08-21 23:30:11 -05:00 committed by Alexandre Julliard
parent fb5b0c6463
commit 128dd3be75
6 changed files with 57 additions and 0 deletions

2
configure vendored
View File

@ -1340,6 +1340,7 @@ enable_hid
enable_hidclass_sys enable_hidclass_sys
enable_hlink enable_hlink
enable_hnetcfg enable_hnetcfg
enable_http_sys
enable_httpapi enable_httpapi
enable_iccvid enable_iccvid
enable_icmp enable_icmp
@ -20307,6 +20308,7 @@ wine_fn_config_makefile dlls/hlink enable_hlink
wine_fn_config_makefile dlls/hlink/tests enable_tests wine_fn_config_makefile dlls/hlink/tests enable_tests
wine_fn_config_makefile dlls/hnetcfg enable_hnetcfg wine_fn_config_makefile dlls/hnetcfg enable_hnetcfg
wine_fn_config_makefile dlls/hnetcfg/tests enable_tests wine_fn_config_makefile dlls/hnetcfg/tests enable_tests
wine_fn_config_makefile dlls/http.sys enable_http_sys
wine_fn_config_makefile dlls/httpapi enable_httpapi wine_fn_config_makefile dlls/httpapi enable_httpapi
wine_fn_config_makefile dlls/httpapi/tests enable_tests wine_fn_config_makefile dlls/httpapi/tests enable_tests
wine_fn_config_makefile dlls/iccvid enable_iccvid wine_fn_config_makefile dlls/iccvid enable_iccvid

View File

@ -3290,6 +3290,7 @@ WINE_CONFIG_MAKEFILE(dlls/hlink)
WINE_CONFIG_MAKEFILE(dlls/hlink/tests) WINE_CONFIG_MAKEFILE(dlls/hlink/tests)
WINE_CONFIG_MAKEFILE(dlls/hnetcfg) WINE_CONFIG_MAKEFILE(dlls/hnetcfg)
WINE_CONFIG_MAKEFILE(dlls/hnetcfg/tests) WINE_CONFIG_MAKEFILE(dlls/hnetcfg/tests)
WINE_CONFIG_MAKEFILE(dlls/http.sys)
WINE_CONFIG_MAKEFILE(dlls/httpapi) WINE_CONFIG_MAKEFILE(dlls/httpapi)
WINE_CONFIG_MAKEFILE(dlls/httpapi/tests) WINE_CONFIG_MAKEFILE(dlls/httpapi/tests)
WINE_CONFIG_MAKEFILE(dlls/iccvid) WINE_CONFIG_MAKEFILE(dlls/iccvid)

View File

@ -0,0 +1,6 @@
MODULE = http.sys
IMPORTS = ntoskrnl
EXTRADLLFLAGS = -Wl,--subsystem,native -mno-cygwin
C_SRCS = \
http.c

36
dlls/http.sys/http.c Normal file
View File

@ -0,0 +1,36 @@
/*
* HTTP server driver
*
* Copyright 2019 Zebediah Figura
*
* 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 "winternl.h"
#include "ddk/wdm.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(http);
NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
{
TRACE("driver %p, path %s.\n", driver, debugstr_w(path->Buffer));
return STATUS_SUCCESS;
}

View File

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

View File

@ -119,6 +119,7 @@ AddReg=\
[DefaultInstall.Services] [DefaultInstall.Services]
AddService=BITS,0,BITSService AddService=BITS,0,BITSService
AddService=HTTP,0,HTTPService
AddService=MSIServer,0,MSIService AddService=MSIServer,0,MSIService
AddService=MountMgr,0x800,MountMgrService AddService=MountMgr,0x800,MountMgrService
AddService=RpcSs,0,RpcSsService AddService=RpcSs,0,RpcSsService
@ -135,6 +136,7 @@ AddService=Winmgmt,0,WinmgmtService
[DefaultInstall.NT.Services] [DefaultInstall.NT.Services]
AddService=BITS,0,BITSService AddService=BITS,0,BITSService
AddService=HTTP,0,HTTPService
AddService=MSIServer,0,MSIService AddService=MSIServer,0,MSIService
AddService=MountMgr,0x800,MountMgrService AddService=MountMgr,0x800,MountMgrService
AddService=RpcSs,0,RpcSsService AddService=RpcSs,0,RpcSsService
@ -151,6 +153,7 @@ AddService=Winmgmt,0,WinmgmtService
[DefaultInstall.ntamd64.Services] [DefaultInstall.ntamd64.Services]
AddService=BITS,0,BITSService AddService=BITS,0,BITSService
AddService=HTTP,0,HTTPService
AddService=MSIServer,0,MSIService AddService=MSIServer,0,MSIService
AddService=MountMgr,0x800,MountMgrService AddService=MountMgr,0x800,MountMgrService
AddService=RpcSs,0,RpcSsService AddService=RpcSs,0,RpcSsService
@ -3434,6 +3437,14 @@ ServiceType=16
StartType=3 StartType=3
ErrorControl=1 ErrorControl=1
[HTTPService]
Description="HTTP server"
DisplayName="HTTP"
ServiceBinary="%12%\http.sys"
ServiceType=1
StartType=3
ErrorControl=1
[MSIService] [MSIService]
Description="MSI Installer Server" Description="MSI Installer Server"
DisplayName="MSIServer" DisplayName="MSIServer"