-
-
[求助]How to call ZwWriteFile with APCs disabled
-
发表于:
2009-12-22 12:57
5163
-
[求助]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();
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!