首页
社区
课程
招聘
[讨论]APC和DPC
发表于: 2015-3-15 10:21 8037

[讨论]APC和DPC

2015-3-15 10:21
8037
KeInsertQueueDpc这个函数式插入DPC队列,那么APC有没有对应的函数啊?
DPC可以自己编写,然后 KeInitializeDpc ,KeInsertQueueDpc插入DPC队列,
那么APC是不是也可以这样做呢?还是说APC没办法操作?因为我找了半天没找到
KeInitializeApc ,KeInsertQueueApc 这样的函数啊?

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (10)
雪    币: 178
活跃值: (182)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
有啊,看wrt
2015-3-15 10:37
0
雪    币: 19
活跃值: (1086)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
KeInitializeApc  KeInsertQueueApc 声明一下就可以用了
2015-3-15 13:01
0
雪    币: 8
活跃值: (233)
能力值: (RANK:10 )
在线值:
发帖
回帖
粉丝
4
No Results Found For: KeInitializeApc

Can’t find it? Here are some options:

    Change your query to use different or fewer keywords.
    Check your spelling. Tip: autocomplete on the search box can help you spell difficult terms.
    Your search is currently refined, which restricts results. Search again with refinements removed.
    Try asking a question in MSDN Forums.
2015-3-15 13:03
0
雪    币: 8
活跃值: (233)
能力值: (RANK:10 )
在线值:
发帖
回帖
粉丝
5
可是不知道怎么用啊?没有msdn官网文档?查不到啊?
2015-3-15 13:04
0
雪    币: 8
活跃值: (233)
能力值: (RANK:10 )
在线值:
发帖
回帖
粉丝
6
是不是非公开的api,windows不让使用的啊?
2015-3-15 13:05
0
雪    币: 19
活跃值: (1086)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
VOID KeInitializeApc (
                                          PKAPC Apc,
                                          PETHREAD Thread,
                                          KAPC_ENVIRONMENT Environment,
                                          PKKERNEL_ROUTINE KernelRoutine,
                                          PKRUNDOWN_ROUTINE RundownRoutine,
                                          PKNORMAL_ROUTINE NormalRoutine,
                                          KPROCESSOR_MODE ProcessorMode,
                                          PVOID NormalContext
                                          );

extern "C"
BOOLEAN KeInsertQueueApc(PKAPC Apc,PVOID SystemArg1,PVOID SystemArg2,KPRIORITY Increment);

                                                        PKAPC ExitApc=NULL;
                                                        ExitApc=(PKAPC)ExAllocatePoolWithTag(NonPagedPool,sizeof(KAPC),'root');

                                                        KeInitializeApc(ExitApc,
                                                                (PETHREAD)pThreadInfo[i].Thread,                         //线程
                                                                OriginalApcEnvironment,
                                                                KernelKillThreadRoutine,
                                                                NULL,
                                                                NULL,
                                                                KernelMode,
                                                                NULL);//为线程初始化APC

                                                        NTSTATUS status=KeInsertQueueApc(ExitApc,ExitApc,NULL,2);   //插入Apc到线程队列
2015-3-15 13:31
0
雪    币: 8
活跃值: (233)
能力值: (RANK:10 )
在线值:
发帖
回帖
粉丝
8
谢谢,可是很疑惑为什么微软封杀了 APC,想看到微软系统的APC文档,各种apc函数的齐全的介绍。
就像DPC一样,微软msdn里面有系统介绍,而且不止这2个api,可能有10几个dpc函数,而apc函数为什么被
封杀了呢?或者有谁能提供详细的apc 的文章或网站吗?
2015-3-15 15:36
0
雪    币: 326
活跃值: (56)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
9
http://www.osronline.com/article.cfm?id=75
2015-3-16 09:19
0
雪    币: 190
活跃值: (84)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
10
不是封杀啊,只是没有公开而已。
2015-3-18 23:40
0
雪    币: 190
活跃值: (84)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
11
在WRK里搜
2015-3-18 23:47
0
游客
登录 | 注册 方可回帖
返回
//