|
[讨论]Windows是如何处理进程环境切换的?
谢谢forgot的回复! 这个我也曾经想过可能是这样处理的,这么做的复杂度是很大的,我还以为操作系统不会这么实现,呵呵,看来我低估了写操作系统的人。。。 。 |
|
[讨论]Windows是如何处理进程环境切换的?
举个例子 为了得到每个进程调用send发送了什么,有个做法就是利用钩子,修改每个进程的send函数的头部的代码,先跳到自己的处理函数得到发送的数据,然后再返回执行send函数,这个算是API HOOK了吧 所谓“加载”,无非就是指将DLL的代码拷贝到内存中去 比如将user32.dll的全部函数代码包括MessageBoxA拷贝进去,这样每个程序都可以方便地调用他 那是不是说,当系统调度后轮到进程A运行了,这时候进程A如果要调用user32的MessageBoxA函数,就会先拷贝一次这个MessageBoxA代码 也就是说,由头到尾始终只有一份代码拷贝。 但是如果没有多份拷贝,应该不会出现我上面提到的问题的:进程A修改他的MessageBoxA并不会影响到进程B 所以:操作系统为了减少环境切换时的时空消耗,应该要尽量减少拷贝的操作,为了实现这个目的,对同一个DLL,应该只需要维持一份就行了 但是:既然只有一个拷贝,进程A修改了某个函数的代码,为什么没有影响到别的进程? |
|
[求助]关于vc++6.0编译器的小问题
是PEid签名的问题吧 |
|
[求助]winlicense 限制了使用次数.怎样破解!?
论坛上有文章详细介绍过程,图文并茂的,楼主搜索一下吧 |
|
|
|
[讨论]OD调式网络游戏
楼主,OD还是用来调试用吧,至于说做外挂,还是得自己动手用别的编程工具来写 |
|
[讨论]问个很傻的问题,WINDOWS还要用PE格式多少年?
为了向下兼容,估计还能有一段时间的 但楼主这种担心反映了一个不好的心态,学习是永不停止的过程,不能抱着已有的知识就想混一辈子,何况现在技术更新和知识的淘汰速度非常快。 就算可执行文件的格式变了,还可以再学嘛 |
|
[求助]高级语言里插入汇编能否提升自己的进程权限
汇编这个语言本身是属于比较低级的语言,但不代表它放在别的高级语言里面就能进入系统底层了 |
|
[求助]如何在不关闭MessageBox的情况下解除对话框hWnd的锁定?
自己实现一个MessageBoxXXX |
|
|
|
[讨论]同样的二进制代码可能对应多条汇编指令吗?
还记得你见过的那些二进制代码是什么吗? |
|
[讨论]同样的二进制代码可能对应多条汇编指令吗?
其实我也不知道究竟是我们将这些东西想问题的时候想的太简单了,还是说那些负责设计指令系统得的天才想的太复杂了 可能是因为我水平有限,以为简单的事情,其实不是那么简单的 |
|
[讨论]同样的二进制代码可能对应多条汇编指令吗?
但我却还是有个疑问:如果5楼引用的那个人的说法正确,当初为什么要设计成这样? 为什么不设计成一一对应?这样不是多了麻烦? 所以我还是不敢完全同意他的说法。 |
|
[讨论]同样的二进制代码可能对应多条汇编指令吗?
百度过后,找到一些参考文章: http://www.asmedu.net/blog/user/mypost.jsp?neighborId=4321&kindLevel=1&kindId=8675 对于add ax,bx这样的双操作汇编指令,汇编编译器(或者其他什么器)会根据编译器的开发者的意愿,将其编译为不尽相同的两组机器码(二进制信息),但是在由同一个编译器编译的指令只能采取其中一种机器码,也就是说由同一个编译器在不同时刻编译的此汇编指令或同一编译器编译程序不同位置的相同指令过程中不可能出现两个结果。换句话说,就是对于编译过程而言,任何一条指令都有唯一个机器码与之对应。 |
|
[讨论]同样的二进制代码可能对应多条汇编指令吗?
一条汇编代码是可以对应2条以上的二进制串的 比如 mov eax, 0 可能对应的二进制代码有: 1) C7 C0 00 00 00 00 2) B8 00 00 00 00 但一个二进制串如果能对应多个汇编代码的话,那么系统怎么区分?怎么知道该执行的是哪一条代码? |
|
[调查]现在大家搞开发都用什么编译器呀?是.net吗?
楼主居然憋了2年才发第一个帖子 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值