12 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL,
"[+] Panoptes: Driver Exit\n");
24NTSTATUS
DriverEntry(PDRIVER_OBJECT DriverObject,PUNICODE_STRING RegistryPath)
35 if (!NT_SUCCESS(status)) {
36 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL,
"[!] Panoptes: Failed to initialize the event queue\n");
42 if (!NT_SUCCESS(status)) {
43 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL,
"[!] Panoptes: An error occured when attempting to initialized filter\n");
50 if (!NT_SUCCESS(status)) {
51 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL,
"[!] Panoptes: An error occured when attempting to initialize the driver link\n");
59 if (!NT_SUCCESS(status))
61 DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL,
"[!] Panoptes: An error occured when attempting to initialized kernel callbacks\n");
69 return STATUS_SUCCESS;
NTSTATUS InitializeKernelCallbacks()
void UnloadPanoptes(PDRIVER_OBJECT DriverObject)
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
NTSTATUS EventQueueInit()
Initializes the event queue. Call once from DriverEntry before any producer can run and before the de...
void EventQueueCleanup()
Cancels every pending GET_EVENT request and frees all buffered events. Call from the unload path afte...
void InjectExclusionsInit()
Initializes the (empty) list of image names the hook DLL is not injected into. Call before the device...
void InjectExclusionsCleanup()
Frees the list. Call once the device and the image load callback are gone.
void RemoveDriverLink()
Deletes the device and symbolic link created by InitializeDriverLink.
NTSTATUS InitializeDriverLink(PDRIVER_OBJECT DriverObject)
Creates the \Device\Panoptes device and symbolic link and registers the IOCTL dispatch routines.
void FilterUninit()
Unregisters the minifilter if FilterInit registered it.
NTSTATUS FilterInit(PDRIVER_OBJECT *DriverObject)
void Log_DriverExit(PDRIVER_OBJECT DriverObject)