This commit is contained in:
2026-06-16 10:24:26 +08:00
parent c3ca187d96
commit 70d9a8d4cd
2 changed files with 3 additions and 11 deletions
+3
View File
@@ -39,6 +39,9 @@ auto io_ctl::init_device_and_symbolic(PDRIVER_OBJECT drv_obj) -> NTSTATUS
break;
}
drv_obj->MajorFunction[IRP_MJ_CLOSE] = dispatch_create_close;
drv_obj->MajorFunction[IRP_MJ_CREATE] = dispatch_create_close;
drv_obj->MajorFunction[IRP_MJ_DEVICE_CONTROL] = dispatch_device_io;
-11
View File
@@ -48,7 +48,6 @@ namespace protect_filter
auto list_data = reinterpret_cast<PFILTER>(CONTAINING_RECORD(list_head, FILTER, List));
list_head = list_head->Flink;
if (Pid)
{
if (list_data->Pid == Pid)
@@ -59,9 +58,6 @@ namespace protect_filter
if (list_data->Eprocess == Eprocess)
return TRUE;
}
//DbgPrintEx(77, 0, "[+] pid:%d | eproecss:%p\n", list_data->Pid, list_data->Eprocess);
}
return NULL;
@@ -73,7 +69,6 @@ namespace protect_filter
BOOL is_remove_list = FALSE;
if (IsListEmpty(&g_protect_list))
return NULL;
@@ -96,12 +91,6 @@ namespace protect_filter
}
}
return TRUE;
}
}