-
-
[旧帖]
[求助]函数指针数组怎么在汇编代码里没赋值动作
0.00雪花
-
发表于:
2010-9-23 20:40
1584
-
[旧帖] [求助]函数指针数组怎么在汇编代码里没赋值动作
0.00雪花
int main()
{
static int (*fcntab[])(PDEVICE_EXTENSION pdx, PIRP Irp) =
{
DefaultPnpHandler, // 0x00401020
DefaultPnpHandler,
DefaultPnpHandler,
};
return 0;
}
int DefaultPnpHandler(int int )
{
}
------------------------------------------------------------------------------------------------------
int main()
7: {
00401050 push ebp
00401051 mov ebp,esp
00401053 sub esp,40h
00401056 push ebx
00401057 push esi
00401058 push edi
00401059 lea edi,[ebp-40h]
0040105C mov ecx,10h
00401061 mov eax,0CCCCCCCCh
00401066 rep stos dword ptr [edi]
8: static int (*fcntab[])(int , int ) =
9: {
11: DefaultPnpHandler, // IRP_MN_START_DEVICE
12: DefaultPnpHandler, // IRP_MN_QUERY_BUS_INFORMATION
13: DefaultPnpHandler, // IRP_MN_DEVICE_USAGE_NOTIFICATION
14: DefaultPnpHandler, // IRP_MN_SURPRISE_REMOVAL
15: };
16:
17: return 0;
00401068 xor eax,eax
18: }
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!