-
-
[求助]How to call ZwWriteFile with APCs disabled
-
发表于:
2009-12-22 12:57
5159
-
[求助]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();
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)