style
This commit is contained in:
@@ -39,6 +39,9 @@ auto io_ctl::init_device_and_symbolic(PDRIVER_OBJECT drv_obj) -> NTSTATUS
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
drv_obj->MajorFunction[IRP_MJ_CLOSE] = dispatch_create_close;
|
drv_obj->MajorFunction[IRP_MJ_CLOSE] = dispatch_create_close;
|
||||||
drv_obj->MajorFunction[IRP_MJ_CREATE] = dispatch_create_close;
|
drv_obj->MajorFunction[IRP_MJ_CREATE] = dispatch_create_close;
|
||||||
drv_obj->MajorFunction[IRP_MJ_DEVICE_CONTROL] = dispatch_device_io;
|
drv_obj->MajorFunction[IRP_MJ_DEVICE_CONTROL] = dispatch_device_io;
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ namespace protect_filter
|
|||||||
auto list_data = reinterpret_cast<PFILTER>(CONTAINING_RECORD(list_head, FILTER, List));
|
auto list_data = reinterpret_cast<PFILTER>(CONTAINING_RECORD(list_head, FILTER, List));
|
||||||
list_head = list_head->Flink;
|
list_head = list_head->Flink;
|
||||||
|
|
||||||
|
|
||||||
if (Pid)
|
if (Pid)
|
||||||
{
|
{
|
||||||
if (list_data->Pid == Pid)
|
if (list_data->Pid == Pid)
|
||||||
@@ -59,9 +58,6 @@ namespace protect_filter
|
|||||||
if (list_data->Eprocess == Eprocess)
|
if (list_data->Eprocess == Eprocess)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//DbgPrintEx(77, 0, "[+] pid:%d | eproecss:%p\n", list_data->Pid, list_data->Eprocess);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -73,7 +69,6 @@ namespace protect_filter
|
|||||||
|
|
||||||
BOOL is_remove_list = FALSE;
|
BOOL is_remove_list = FALSE;
|
||||||
|
|
||||||
|
|
||||||
if (IsListEmpty(&g_protect_list))
|
if (IsListEmpty(&g_protect_list))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@@ -96,12 +91,6 @@ namespace protect_filter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user