diff options
Diffstat (limited to 'driver.cpp')
-rw-r--r-- | driver.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
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 <ntddk.h> + +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!"); +} +} |