blob: 2d7becde641adc9ed2b816deb7a18ad904814261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <ntddk.h>
DRIVER_INITIALIZE DriverEntry;
DRIVER_UNLOAD DriverUnload;
NTSTATUS DriverEntry(
_In_ struct _DRIVER_OBJECT *DriverObject,
_In_ PUNICODE_STRING RegistryPath
)
{
(void)DriverObject;
(void)RegistryPath;
DbgPrint("%s\n", "Hello ring0!");
return STATUS_SUCCESS;
}
VOID
DriverUnload(
_In_ struct _DRIVER_OBJECT *DriverObject
)
{
(void)DriverObject;
DbgPrint("%s\n", "Bye ring0!");
}
|