网站大量收购独家精品文档,联系QQ:2885784924

屏幕取词的原理和实现(Principle and Realization of screen).doc

屏幕取词的原理和实现(Principle and Realization of screen).doc

  1. 1、本文档共19页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
屏幕取词的原理和实现(Principle and Realization of screen)

屏幕取词的原理和实现(Principle and Realization of screen) The mouse screen technology is widely used in the electronic dictionary, such as four, and Kingsoft software, this technique seems simple, in fact it is very complex to achieve in the windows system, in general there are two ways to achieve: The first kind: uses interception to some GDIs API modulation to realize, such as TextOut, textouta and so on. Second: make a copy of each device context (DC), and track all operations that modify the context (DC). The second method is more powerful, but compatibility is not good, and use the first method to intercept windowsAPI calls, powerful this technique may go beyond your imagination, it is no exaggeration to say that the use of windowsAPI interception technology, you can transform the entire operating system, many Chinese platform plug-in windows is in fact realized the! And this technology is the subject of this article. Cut windowsAPI calls, in particular, can be divided into two methods: The first method by direct overwrite WinAPI image in memory, embedded assembly code, which is called the jump to the address specified to intercept operation; the second method (import address table IAT to rewrite the import address table), redirect calls to the WinAPI function to achieve the WinAPI intercept. The first method is cumbersome, but also in Win95, 98 below is more difficult, this is because Microsoft said win16 API just for compatibility only retained, the programmer should be as far as possible to call the 32 bit API, in fact is not so! Most of the 32 bit 9x inside win API calls the 16 bit API of the same name after transformation, that is, we need to embed 16 bit assembler code in the intercepted function! We are going to introduce second interception methods, which are stable and compatible under Win95, 98 and nt. Due to the use of windows virtual memory management, the process of breaking the boundary wall, and inject code to the application process space PE (portable exe

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档