mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:25:48 +00:00
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:
parent
2c0c4e0c0e
commit
06e11512f9
8 changed files with 1138 additions and 0 deletions
18
rostests/win32/DriverLoading/Driver/driver.c
Normal file
18
rostests/win32/DriverLoading/Driver/driver.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue