MCPcopy Create free account
hub / github.com/D4stiny/PeaceMaker / DriverEntry

Function DriverEntry

PeaceMaker Kernel/FilterTesting.cpp:52–71  ·  view source on GitHub ↗

Initialize the mini-filter driver. DriverObject - The driver's object. RegistryPath - The path to the driver's registry entry. */

Source from the content-addressed store, hash-verified

50 RegistryPath - The path to the driver's registry entry.
51*/
52NTSTATUS
53DriverEntry (
54 _In_ PDRIVER_OBJECT DriverObject,
55 _In_ PUNICODE_STRING RegistryPath
56 )
57{
58 NTSTATUS status;
59
60 status = STATUS_SUCCESS;
61
62 DBGPRINT("FilterTesting!DriverEntry: Hello world.");
63
64 Communicator = new (NonPagedPool, 'cImP') IOCTLCommunication(DriverObject, RegistryPath, NULL, &status);
65 if (NT_SUCCESS(status) == FALSE)
66 {
67 DBGPRINT("FilterTesting!DriverEntry: Failed to initialize communication with status 0x%X.", status);
68 }
69
70 return status;
71}
72
73/**
74 This function handles unloading the mini-filter.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected