Created
November 1, 2019 12:47
-
-
Save rikoudosenin/30851bb75d35beefa64a696889f492c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ntddk.h> | |
// Unloading function | |
void SampleUnload(_In_ PDRIVER_OBJECT DriverObject) { | |
// Nothing in here since we are not allocating anything | |
UNREFERENCED_PARAMETER(DriverObject); | |
} | |
extern "C" | |
NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING RegistryPath) { | |
UNREFERENCED_PARAMETER(DriverObject); | |
UNREFERENCED_PARAMETER(RegistryPath); | |
DriverObject->DriverUnload = SampleUnload; | |
return STATUS_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment