今天逆向驱动加载防火墙看到了这个函数
PKEVENT
IoCreateNotificationEvent(
IN PUNICODE_STRING EventName,
OUT PHANDLE EventHandle
);
ddk中说可以用于r3和r0同步和便于传递信息,使用共享的事件对象有以下2个办法:
- The user-mode application creates the event object and passes a handle to the object to the driver by sending an IOCTL to the driver. The driver must handle the IOCTL in the context of the process that created the event object and must validate the handle by calling ObReferenceObjectByHandle

本文介绍了在驱动开发中如何利用IoCreateNotificationEvent进行用户态(r3)和内核态(r0)的同步。通过创建命名事件对象,驱动和应用程序可以通过IOCTL传递句柄实现通信。在DriverEntry中创建事件对象,并在用户模式下等待,内核态通过KeSetEvent和KeClearEvent控制线程执行。

2522

被折叠的 条评论
为什么被折叠?



