街角_祝福

导航

随笔分类 -  内核

文件映射
摘要:FileMap.h#include "..\include\error_type.h"#include #include #include using namespace std;class FileMap{public: FileMap(const string& path, const stri... 阅读全文

posted @ 2013-11-10 19:45 街角_祝福 阅读(178) 评论(0) 推荐(0)

程序地址重定位和模块绑定
摘要:1.程序的构建在构建程序的时候,链接器都会给程序设置一个默认的加载地址,即首选基地址,它表示该模块被映射到进程地址空间时最佳的内存地址。默认情况下,对于EXE程序而言,windows链接器会将它的首选基地址设置为0X400000(四十万),而DLL程序的首选基地址则被设置为0X10000000(1千... 阅读全文

posted @ 2013-09-11 00:17 街角_祝福 阅读(703) 评论(0) 推荐(0)