From c4c97962ac44c35623604add7acc5eca9fd3506a Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 30 Aug 2022 11:51:46 +0200 Subject: initial commit Signed-off-by: Toni Uhlig --- driver.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 driver.cpp (limited to 'driver.cpp') diff --git a/driver.cpp b/driver.cpp new file mode 100644 index 0000000..69c82ff --- /dev/null +++ b/driver.cpp @@ -0,0 +1,22 @@ +#include + +extern "C" { +DRIVER_INITIALIZE DriverEntry; +DRIVER_UNLOAD DriverUnload; + +NTSTATUS DriverEntry(_In_ struct _DRIVER_OBJECT *DriverObject, + _In_ PUNICODE_STRING RegistryPath) { + UNREFERENCED_PARAMETER(DriverObject); + UNREFERENCED_PARAMETER(RegistryPath); + + DbgPrint("%s\n", "Hello ring0!"); + + return STATUS_SUCCESS; +} + +VOID DriverUnload(_In_ struct _DRIVER_OBJECT *DriverObject) { + UNREFERENCED_PARAMETER(DriverObject); + + DbgPrint("%s\n", "Bye ring0!"); +} +} -- cgit v1.2.3