
windows
guilanl
这个作者很懒,什么都没留下…
展开
-
PE 格式之 relocation
网络知识整理:EXE PE do not need any Relocation in any case because the default address is not real but virtual. DLL PE need a relocation for data because, for several EXE make call to the same dll an转载 2015-01-12 16:48:32 · 405 阅读 · 0 评论 -
在windows 下进行内存文件映射的相关函数
1. 首先要通过CreateFile()函数来创建或打开一个文件内核对象,这个对象标识了磁盘上将要用作内存映射文件的文件。 在用CreateFile()将文件映像在物理存储器的位置通告给操作系统后,只指定了映像文件的路径,映像的长度还没有指定。2. 通过CreateFileMapping()函数来创建一个文件映射内核对象以告诉系统文件的尺寸以及访问文件的方式。 在创建转载 2015-01-23 16:22:00 · 593 阅读 · 0 评论 -
win8.1 无法远程登录问题的解决
win8.1 开通了 allow remote connection 权限,但是还是无法从其他电脑登录。后来,改变了以下设置,就好了:Control Panel -- System and Security --- Windows Firewall -- Allowed apps : Remote Desktop Public选项勾上,就好了。原创 2015-03-23 16:12:27 · 1025 阅读 · 0 评论 -
如何知道一个server 的ip
ping 这个server的名字,可以知道他的IP:比如 server shwde7466, ping shwde7466 可以得到7466 这个server 的IP。原创 2015-06-10 15:02:13 · 777 阅读 · 0 评论 -
Visual Studio 中使用try except 遇到的问题
在Visual Studio 中使用try except , compile的时候遇到如下error:__try in functions containing objects with destructors原因是在使用try/except 的时候,不可以在函数中有object unwinding and destruction.解决办法, 参考微软: Compiler Error C2712原创 2015-07-09 16:45:15 · 693 阅读 · 0 评论 -
Windows API函数 WaitForMultiObjects 的使用注意事项
今天在使用CreateThread 和WaitForMultiObjects 来创建和回收线程的时候,发生了错误。当线程数是小于64的时候,没有问题,当线程数大于64的时候,出现问题。原因是 WaitForMultiObjects(...) 最多只能等待MAXIMUM_WAIT_OBJECTS个kernal objects。MAXIMUM_WAIT_OBJEC原创 2015-07-30 13:06:48 · 1916 阅读 · 0 评论 -
windows bat 里面的一些命令总结
1. dir 命令 dir /ad C:\ 列出C:\ 下的所有文件夹 dir /b C:\ dir默认会列出文件日期等信息,加上/b 只列出文件名称。 dir /p C:\ 结果分页显示 dir *.msi C:\ 只显示msi 后缀的文件2. set 命令例子1(设置值): set v原创 2015-06-12 16:41:49 · 821 阅读 · 0 评论