aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/km/src/minimal
diff options
context:
space:
mode:
Diffstat (limited to 'km/src/minimal')
-rw-r--r--km/src/minimal/main.c12
-rw-r--r--km/src/minimal/makefile1
-rw-r--r--km/src/minimal/sources3
3 files changed, 16 insertions, 0 deletions
diff --git a/km/src/minimal/main.c b/km/src/minimal/main.c
new file mode 100644
index 0000000..6983929
--- /dev/null
+++ b/km/src/minimal/main.c
@@ -0,0 +1,12 @@
+#include <ntddk.h>
+
+static void on_driver_unload(DRIVER_OBJECT *driver_object)
+{ }
+
+NTSTATUS DriverEntry(
+ DRIVER_OBJECT *driver_object,
+ UNICODE_STRING *registry_path)
+{
+ driver_object->DriverUnload = on_driver_unload;
+ return STATUS_SUCCESS;
+}
diff --git a/km/src/minimal/makefile b/km/src/minimal/makefile
new file mode 100644
index 0000000..5acbbd2
--- /dev/null
+++ b/km/src/minimal/makefile
@@ -0,0 +1 @@
+!INCLUDE $(NTMAKEENV)\makefile.def
diff --git a/km/src/minimal/sources b/km/src/minimal/sources
new file mode 100644
index 0000000..b6e92c3
--- /dev/null
+++ b/km/src/minimal/sources
@@ -0,0 +1,3 @@
+TARGETTYPE = DRIVER
+TARGETNAME = minimal
+SOURCES = main.c