摘要: 什么是重定位:重定位就是你本来这个程序理论上要占据这个地址,但是由于某种原因,这个地址现在不能让你占用,你必须转移到别的地址,这就需要基址重定位。你可能会问,不是说过每个进程都有自己独立的虚拟地址空间吗?既然都是自己的,怎么会被占据呢?对于EXE应用程序来说,是这样的。但是动态链接库就不一样了,我们... 阅读全文
posted @ 2015-11-13 17:30 _No.47 阅读(4959) 评论(0) 推荐(2)
摘要: Retrieves a module handle for the specified module. The module must have been loaded by the calling process.HMODULE WINAPI GetModuleHandle( _In_opt_ ... 阅读全文
posted @ 2015-11-12 15:47 _No.47 阅读(3578) 评论(0) 推荐(0)
摘要: sectionalignment和FileAlignment内存中块大小和文件中块大小参考:http://bbs.pediy.com/showthread.php?s=&threadid=18022 阅读全文
posted @ 2015-11-12 11:17 _No.47 阅读(439) 评论(0) 推荐(0)
摘要: 什么是DLL:自从微软推出16位的Windows操作系统起,此后每种版本的Windows操作系统都非常依赖于动态链接库(DLL)中的函数和数据,实际上 Windows操作系统中几乎所有的内容都由DLL以一种或另外一种形式代表着,例如显示的字体和图标存储在GDI DLL中、显示Windows桌面和处理... 阅读全文
posted @ 2015-11-11 17:35 _No.47 阅读(29032) 评论(0) 推荐(3)
摘要: Expression(ptm!=NULL)就是用来提示出错的原因的,这里表示如果该指针为空就会错误。参考:http://bbs.csdn.net/topics/390366131http://bbs.csdn.net/topics/390503391/ 阅读全文
posted @ 2015-10-29 17:40 _No.47 阅读(527) 评论(0) 推荐(0)
摘要: 火狐浏览器快捷键: 阅读全文
posted @ 2015-10-28 10:17 _No.47 阅读(434) 评论(0) 推荐(0)
摘要: GetExitCodeRetrieves the termination status of the specified thread.BOOL WINAPI GetExitCodeThread( _In_ HANDLE hThread, _Out_ LPDWORD lpExitCode);... 阅读全文
posted @ 2015-10-28 09:32 _No.47 阅读(275) 评论(0) 推荐(0)
摘要: 参考:http://qiusuoge.com/11496.htmlhttp://www.cnblogs.com/BoyXiao/archive/2011/01/01/1923828.htmlstdin是标准输入,stdout是标准输出,stderr是标准错误输出。大多数的命令行程序从stdin输入,... 阅读全文
posted @ 2015-10-26 15:34 _No.47 阅读(3327) 评论(0) 推荐(0)
摘要: WaitForSingleObjectWaits until the specified object is in the signaled state or the time-out interval elapses.DWORD WINAPI WaitForSingleObject( _In_ ... 阅读全文
posted @ 2015-10-23 18:02 _No.47 阅读(855) 评论(0) 推荐(0)
摘要: 如果我们有一个子函数,返回值是string类型对象: 那么我们在主函数中常使用char类型指针去接收它的返回对象: 当我们用: 输出p指向的字符数组时,会输出“sssssssssssssssssss”吗?答案是否定的: 我曾一度认为因为可以做类似如下的定义: 且可以输出正确的结果: 则上边的用p接收 阅读全文
posted @ 2015-10-23 10:04 _No.47 阅读(198) 评论(0) 推荐(0)