
APC
就是APC
0xwangliang
热爱可抵岁月漫长
QQ 1993250372 CPDD
展开
-
APC(四)
KiDeliverApc 内核APC从KiFastEntry进入内核然后进入KiDeliverApc函数分发APC.text:0043E262 loc_43E262: ; CODE XREF: _KiServiceExit+18↑j.text:0043E262 mov byte ptr [ebx+3Ah], 0.text:0043E266 cmp byte ptr原创 2021-12-01 17:30:04 · 3019 阅读 · 0 评论 -
APC(三)
内核APC插入VOID KeInitializeApc ( __out PRKAPC Apc, //输出APC __in PRKTHREAD Thread, //要插入的线程 __in KAPC_ENVIRONMENT Environment, //APC的线程环境 __in PKKERNEL_ROUTINE KernelRoutine, //内核函数 __in_opt PKRUNDOWN_ROUTINE RundownRoutine, //特殊函数原创 2021-11-30 23:34:54 · 337 阅读 · 0 评论 -
APC(一)
线程资源的利用如果线程出现等待的情况,如Sleep,WaitForStingleObject的情况,为了防止等待,所以会插入APC(异步过程调用)到用户链表或者内核链表中,进行切换时会检测有无APC的存在,然后进行调用。 +0x03a Alerted : [2] UChar //0对应内核 1对应三环 +0x03c Alertable : Pos 5, 1 Bit //是否能唤醒 +0x040 ApcState : _KAPC_STA原创 2021-11-23 23:06:02 · 2947 阅读 · 0 评论 -
APC(二)
BOOLEANKeInsertQueueApc ( __inout PRKAPC Apc, //APC的结构 __in_opt PVOID SystemArgument1, __in_opt PVOID SystemArgument2,//参数 __in KPRIORITY Increment//优先级 ) ```原创 2021-11-26 13:09:40 · 501 阅读 · 0 评论