xp下用户程序空间分配(6):加载用户DLL[VC/C++编程]
本文“xp下用户程序空间分配(6):加载用户DLL[VC/C++编程]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
在本项目里利用了自行编译的一个DLL—cywin.dll,这个DLL占用的内存块出奇的多:
基址 | 分配基址 | 分配保护 | 大小 | 状况 | 保护 | 范例 |
10000000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00001000 | 00001000
MEM_COMMIT |
00000002
PAGE_READONLY |
01000000
MEM_IMAGE |
10001000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
000a5000 | 00001000
MEM_COMMIT |
00000020
PAGE_EXECUTE_READ |
01000000
MEM_IMAGE |
100a6000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00038000 | 00001000
MEM_COMMIT |
00000002
PAGE_READONLY |
01000000
MEM_IMAGE |
100de000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00082000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
10160000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
0007f000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
101df000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00002000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
101e1000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
0000f000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
101f0000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00001000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
101f1000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00010000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
10201000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00001000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
10202000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00007000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
10209000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00001000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
1020a000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00007000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
10211000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00002000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
10213000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00007000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
1021a000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00002000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
1021c000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00001000 | 00001000
MEM_COMMIT |
00000008
PAGE_WRITECOPY |
01000000
MEM_IMAGE |
1021d000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00001000 | 00001000
MEM_COMMIT |
00000004
PAGE_READWRITE |
01000000
MEM_IMAGE |
1021e000 | 10000000 | 00000080
PAGE_EXECUTE_WRITECOPY |
00011000 | 00001000
MEM_COMMIT |
00000002
PAGE_READONLY |
01000000
MEM_IMAGE |
1022f000 | 00000000 | 00000000 | 00251000 | 00010000
MEM_FREE |
00000001
PAGE_NOACCESS |
00000000 |
一样把文件里的内容dump出来举行对比.
以上是“xp下用户程序空间分配(6):加载用户DLL[VC/C++编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |