fix protect

This commit is contained in:
2026-06-12 14:42:23 +08:00
parent eb87fee622
commit 18242cc37d
+3 -2
View File
@@ -39,14 +39,15 @@ auto ob_call_back::register_ob_reg_callback() -> NTSTATUS
if (protect_filter::is_protect_pid(HandleToLong(dwPid), nullptr))
{
//pOperationInformation->Parameters->DuplicateHandleInformation.DesiredAccess = 0;
//pOperationInformation->Parameters->DuplicateHandleInformation.OriginalDesiredAccess = 0;
pOperationInformation->Parameters->DuplicateHandleInformation.DesiredAccess = 0;
pOperationInformation->Parameters->DuplicateHandleInformation.OriginalDesiredAccess = 0;
}
}
end:
return OB_PREOP_SUCCESS;
};
NTSTATUS status;
OB_CALLBACK_REGISTRATION obReg;
OB_OPERATION_REGISTRATION opReg;