-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCore.c
More file actions
57 lines (31 loc) · 1.54 KB
/
Copy pathCore.c
File metadata and controls
57 lines (31 loc) · 1.54 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <ntddk.h>
#include <wdf.h>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////
/// Îáúÿâëåíèÿ ôóíêöèé, îïðåäåë¸ííûõ íèæå.
EVT_WDF_DRIVER_DEVICE_ADD EvtDriverDeviceAdd;
/////////////////////////////////////////////////////////////////////////////////////////////////
NTSTATUS
DriverEntry( _In_ DRIVER_OBJECT * pdriverobjectThe, _In_ UNICODE_STRING * pusRegistryPath)
{
NTSTATUS statusReturn;
WDF_DRIVER_CONFIG driverconfigThe;
KdPrintEx(( DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "HelloWorld: DriverEntry\n"));
WDF_DRIVER_CONFIG_INIT( & driverconfigThe, & EvtDriverDeviceAdd);
statusReturn = WdfDriverCreate( pdriverobjectThe, pusRegistryPath,
WDF_NO_OBJECT_ATTRIBUTES, & driverconfigThe, WDF_NO_HANDLE );
return statusReturn;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
NTSTATUS
EvtDriverDeviceAdd( _In_ WDFDRIVER driver_, _Inout_ struct WDFDEVICE_INIT * pdeviceinitThe)
{
UNREFERENCED_PARAMETER( driver_);
NTSTATUS statusReturn;
WDFDEVICE deviceThe;
KdPrintEx(( DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "HelloWorld: EvtDriverDeviceAdd\n"));
statusReturn = WdfDeviceCreate( & pdeviceinitThe, WDF_NO_OBJECT_ATTRIBUTES, & deviceThe);
return statusReturn;
}
//