-
-
[求助]TDI_EVENT_CONNECT 回调问题
-
2013-8-15 15:55 3416
-
为什么设置 TDI_EVENT_CONNECT 回调函数 tdi_event_connect,但是没有进入回调函数?
if( TDI_SET_EVENT_HANDLER == pIrpSp->MinorFunction)
{
PTDI_REQUEST_KERNEL_SET_EVENT r = (PTDI_REQUEST_KERNEL_SET_EVENT)&pIrpSp->Parameters;
if((r->EventType == TDI_EVENT_CONNECT) && (r->EventHandler != NULL))
{
KdPrintEx((DPFLTR_IHVBUS_ID, DPFLTR_ERROR_LEVEL, "@@@@@@@@@@@@@@@@@@ setevent!--------okokokok:[%d]\n", r->EventType));
g_EventConnectContext->old_handler = r->EventHandler;
g_EventConnectContext->old_context = r->EventContext;
g_EventConnectContext->fileobj = pIrpSp->FileObject;
r->EventHandler = tdi_event_connect;
r->EventContext = g_EventConnectContext;
}
}
if( TDI_SET_EVENT_HANDLER == pIrpSp->MinorFunction)
{
PTDI_REQUEST_KERNEL_SET_EVENT r = (PTDI_REQUEST_KERNEL_SET_EVENT)&pIrpSp->Parameters;
if((r->EventType == TDI_EVENT_CONNECT) && (r->EventHandler != NULL))
{
KdPrintEx((DPFLTR_IHVBUS_ID, DPFLTR_ERROR_LEVEL, "@@@@@@@@@@@@@@@@@@ setevent!--------okokokok:[%d]\n", r->EventType));
g_EventConnectContext->old_handler = r->EventHandler;
g_EventConnectContext->old_context = r->EventContext;
g_EventConnectContext->fileobj = pIrpSp->FileObject;
r->EventHandler = tdi_event_connect;
r->EventContext = g_EventConnectContext;
}
}
[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法
赞赏
他的文章
赞赏
雪币:
留言: