Windows驱动笔记
+ -

PsSetCreateProcessNotifyRoutineEx报错STATUS_ACCESS_DENIED-0xC0000022

2024-12-02 1 0

PsSetCreateProcessNotifyRoutineEx调用时报错误STATUS_ACCESS_DENIED,文档给的解释是:The image that contains the callback routine pointer did not have IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY set in its image header.

解释就是:PsSetCreateProcessNotifyRoutineEx使用的回调函数所在的PE文件中必须有IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY标识。
IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY

这个我们直接在VS链接命令行中指定就行了

/integritycheck

integritycheck

0 篇笔记 写笔记

PsSetCreateProcessNotifyRoutineEx报错STATUS_ACCESS_DENIED-0xC0000022
PsSetCreateProcessNotifyRoutineEx调用时报错误STATUS_ACCESS_DENIED,文档给的解释是:The image that contains the callback routine pointer did not have IMAGE_DLLCHARACT......
PsSetCreateProcessNotifyRoutineEx和PsSetLoadImageNotifyRoutine日志记录
分别使用如下方法进行回调设置: NTSTATUS Status = PsSetCreateProcessNotifyRoutineEx(&InjCreateProcessNotifyRoutineEx, FALSE); if (!NT_SUCCESS(Status)) ......
作者信息
我爱内核
Windows驱动开发,网站开发
好好学习,天天向上。
取消
感谢您的支持,我会继续努力的!
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

您的支持,是我们前进的动力!