[PATCH 1/6] netio.sys: Add driver stub.
Paul Gofman
pgofman at codeweavers.com
Mon May 25 06:52:50 CDT 2020
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
configure.ac | 1 +
dlls/netio.sys/Makefile.in | 6 +++++
dlls/netio.sys/netio.c | 44 +++++++++++++++++++++++++++++++++++
dlls/netio.sys/netio.sys.spec | 1 +
loader/wine.inf.in | 2 ++
5 files changed, 54 insertions(+)
create mode 100644 dlls/netio.sys/Makefile.in
create mode 100644 dlls/netio.sys/netio.c
create mode 100644 dlls/netio.sys/netio.sys.spec
diff --git a/configure.ac b/configure.ac
index d81f5cc88c..3b00c28d7e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3556,6 +3556,7 @@ WINE_CONFIG_MAKEFILE(dlls/netapi32)
WINE_CONFIG_MAKEFILE(dlls/netapi32/tests)
WINE_CONFIG_MAKEFILE(dlls/netcfgx)
WINE_CONFIG_MAKEFILE(dlls/netcfgx/tests)
+WINE_CONFIG_MAKEFILE(dlls/netio.sys)
WINE_CONFIG_MAKEFILE(dlls/netprofm)
WINE_CONFIG_MAKEFILE(dlls/netprofm/tests)
WINE_CONFIG_MAKEFILE(dlls/newdev)
diff --git a/dlls/netio.sys/Makefile.in b/dlls/netio.sys/Makefile.in
new file mode 100644
index 0000000000..45bccc7971
--- /dev/null
+++ b/dlls/netio.sys/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = netio.sys
+IMPORTS = ntoskrnl
+EXTRADLLFLAGS = -mno-cygwin -Wl,--subsystem,native
+
+C_SRCS = \
+ netio.c
diff --git a/dlls/netio.sys/netio.c b/dlls/netio.sys/netio.c
new file mode 100644
index 0000000000..862b08f0ac
--- /dev/null
+++ b/dlls/netio.sys/netio.c
@@ -0,0 +1,44 @@
+/*
+ * WSK (Winsock Kernel) driver library.
+ *
+ * Copyright 2020 Paul Gofman <pgofman at codeweavers.com> for Codeweavers
+ *
+ * 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 "ntstatus.h"
+#define WIN32_NO_STATUS
+#include "windef.h"
+#include "winioctl.h"
+#include "winternl.h"
+#include "ddk/wdm.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(netio);
+
+static void WINAPI driver_unload(DRIVER_OBJECT *driver)
+{
+ TRACE("driver %p.\n", driver);
+}
+
+NTSTATUS WINAPI DriverEntry(DRIVER_OBJECT *driver, UNICODE_STRING *path)
+{
+ TRACE("driver %p, path %s.\n", driver, debugstr_w(path->Buffer));
+
+ driver->DriverUnload = driver_unload;
+
+ return STATUS_SUCCESS;
+}
+
diff --git a/dlls/netio.sys/netio.sys.spec b/dlls/netio.sys/netio.sys.spec
new file mode 100644
index 0000000000..792d600548
--- /dev/null
+++ b/dlls/netio.sys/netio.sys.spec
@@ -0,0 +1 @@
+#
diff --git a/loader/wine.inf.in b/loader/wine.inf.in
index 0a43cc779c..de0dd4e455 100644
--- a/loader/wine.inf.in
+++ b/loader/wine.inf.in
@@ -2617,6 +2617,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
12,,ksecdd.sys,-
12,,mountmgr.sys,-
12,,ndis.sys,-
+12,,netio.sys,-
12,,scsiport.sys,-
12,,tdi.sys,-
12,,usbd.sys,-
@@ -2673,6 +2674,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
12,,ksecdd.sys
12,,mountmgr.sys
12,,ndis.sys
+12,,netio.sys
12,,scsiport.sys
12,,tdi.sys
12,,usbd.sys
--
2.26.2
More information about the wine-devel
mailing list