-
-
[求助]How to call ZwWriteFile with APCs disabled
-
发表于:
2009-12-22 12:57
5398
-
[求助]How to call ZwWriteFile with APCs disabled
我遍历一个链表, 用ExAcquireResourceSharedLite , 要disable APC, 但是 循环中又要 ZwWriteFile, 要求 enable APC, 怎么解决呢?
KeEnterCriticalRegion();
ExAcquireResourceSharedLite (...);
list = listFileExecuteRule .Flink;
while(list != &listFileExecuteRule ){
rule = (PGUIPOPUP_RULE )CONTAINING_RECORD(list, GUIPOPUP_RULE , listEntry);
//...
status = ZwWriteFile(...);
//....
}
list = list->Flink ;
}
ExReleaseResourceLite(...);
KeLeaveCriticalRegion();
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课