Test code for loading and unloading a driver via 3 different methods. SCM, native methods and via the relatively unknown NtSetSystemInformation methods.

Needs rbuild files to test in ros.

svn path=/trunk/; revision=32897
This commit is contained in:
Ged Murphy 2008-04-09 13:43:34 +00:00
parent 2c0c4e0c0e
commit 06e11512f9
8 changed files with 1138 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#include <ntddk.h>
VOID
DriverUnload(PDRIVER_OBJECT pDriverObject)
{
DbgPrint("Test driver unloaded sucessfully\n");
}
NTSTATUS
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
{
DriverObject->DriverUnload = DriverUnload;
DbgPrint("Test driver loaded sucessfully\n");
return STATUS_SUCCESS;
}