Zebediah Figura : http.sys: New stub driver.
Alexandre Julliard
julliard at winehq.org
Thu Aug 22 15:09:54 CDT 2019
Module: wine
Branch: master
Commit: 128dd3be7536f4869b51be1958d01c7ed1e6441d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=128dd3be7536f4869b51be1958d01c7ed1e6441d
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Aug 21 23:30:11 2019 -0500
http.sys: New stub driver.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/http.sys/Makefile.in | 6 ++++++
dlls/http.sys/http.c | 36 ++++++++++++++++++++++++++++++++++++
dlls/http.sys/http.sys.spec | 1 +
loader/wine.inf.in | 11 +++++++++++
6 files changed, 57 insertions(+)
diff --git a/configure b/configure
index a87fef5..c64dc5a 100755
--- a/configure
+++ b/configure
@@ -1340,6 +1340,7 @@ enable_hid
enable_hidclass_sys
enable_hlink
enable_hnetcfg
+enable_http_sys
enable_httpapi
enable_iccvid
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/hnetcfg enable_hnetcfg
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/tests enable_tests
wine_fn_config_makefile dlls/iccvid enable_iccvid
diff --git a/configure.ac b/configure.ac
index 1711c01..0d0ba2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3290,6 +3290,7 @@ WINE_CONFIG_MAKEFILE(dlls/hlink)
WINE_CONFIG_MAKEFILE(dlls/hlink/tests)
WINE_CONFIG_MAKEFILE(dlls/hnetcfg)
WINE_CONFIG_MAKEFILE(dlls/hnetcfg/tests)
+WINE_CONFIG_MAKEFILE(dlls/http.sys)
WINE_CONFIG_MAKEFILE(dlls/httpapi)
WINE_CONFIG_MAKEFILE(dlls/httpapi/tests)
WINE_CONFIG_MAKEFILE(dlls/iccvid)
diff --git a/dlls/http.sys/Makefile.in b/dlls/http.sys/Makefile.in
new file mode 100644
index 0000000..449ebae
--- /dev/null
+++ b/dlls/http.sys/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = http.sys
+IMPORTS = ntoskrnl
+EXTRADLLFLAGS = -Wl,--subsystem,native -mno-cygwin
+
+C_SRCS = \
+ http.c
diff --git a/dlls/http.sys/http.c b/dlls/http.sys/http.c
new file mode 100644
index 0000000..ed19c00
--- /dev/null
+++ b/dlls/http.sys/http.c
@@ -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;
+}
diff --git a/dlls/http.sys/http.sys.spec b/dlls/http.sys/http.sys.spec
new file mode 100644
index 0000000..76421d7
--- /dev/null
+++ b/dlls/http.sys/http.sys.spec
@@ -0,0 +1 @@
+# nothing to export
diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index ea647f6..e835466 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -119,6 +119,7 @@ AddReg=\
[DefaultInstall.Services]
AddService=BITS,0,BITSService
+AddService=HTTP,0,HTTPService
AddService=MSIServer,0,MSIService
AddService=MountMgr,0x800,MountMgrService
AddService=RpcSs,0,RpcSsService
@@ -135,6 +136,7 @@ AddService=Winmgmt,0,WinmgmtService
[DefaultInstall.NT.Services]
AddService=BITS,0,BITSService
+AddService=HTTP,0,HTTPService
AddService=MSIServer,0,MSIService
AddService=MountMgr,0x800,MountMgrService
AddService=RpcSs,0,RpcSsService
@@ -151,6 +153,7 @@ AddService=Winmgmt,0,WinmgmtService
[DefaultInstall.ntamd64.Services]
AddService=BITS,0,BITSService
+AddService=HTTP,0,HTTPService
AddService=MSIServer,0,MSIService
AddService=MountMgr,0x800,MountMgrService
AddService=RpcSs,0,RpcSsService
@@ -3434,6 +3437,14 @@ ServiceType=16
StartType=3
ErrorControl=1
+[HTTPService]
+Description="HTTP server"
+DisplayName="HTTP"
+ServiceBinary="%12%\http.sys"
+ServiceType=1
+StartType=3
+ErrorControl=1
+
[MSIService]
Description="MSI Installer Server"
DisplayName="MSIServer"
More information about the wine-cvs
mailing list