Skip to content

Instantly share code, notes, and snippets.

@rikoudosenin
Created November 1, 2019 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rikoudosenin/30851bb75d35beefa64a696889f492c0 to your computer and use it in GitHub Desktop.
Save rikoudosenin/30851bb75d35beefa64a696889f492c0 to your computer and use it in GitHub Desktop.
#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