- 1、本文档共19页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 国内外环氧氯丙烷生产应用及市场分析(Production, application and market analysis of epichlorohydrin at home and abroad).doc
- 国际投资税收政策对跨国企业集团投资战略的影响(The influence of international investment tax policy on the investment strategy of transnational enterprise groups).doc
- 国际市场营销学(二)试题03至05(International marketing (two) questions 03 through 05).doc
- 国际市场细分(Segmentation of the international market).doc
- 国外引进种子、苗木检疫审批事项办事指南(Guidelines for the examination and approval of import and export of seeds and seedlings by foreign countries).doc
- 国际旅游岛建设几点意见(Some opinions on the construction of international tourism island).doc
- 国际标准家具尺寸(International standard furniture size).doc
- 国际私法自测题一(Self test questions of private international law).doc
- 国际妇女节纪念仪式【孟晓驷】(International Women's day memorial ceremony [National Day]).doc
- 国际融资租赁公约(International Financial Leasing Convention).doc
- 山东济宁一中02-03年下学期高二生物期末考试(02-03 middle school in Shandong, Jining).doc
- 小键盘实现(Keyboard implementation).doc
- 小黄(Yellow).doc
- 山东省济宁市嘉祥一中2013-2014学年高一数学上学期期末模拟考试新人教a版(Jining, Shandong, Jiaxiang, one in 2013-2014 academic year, the final semester of mathematics exam, new person taught a version).doc
- 山寨现象...例子(Shanzhai phenomenon... Example).doc
- 山水画中的古诗(Ancient poems in landscape painting).doc
- 山西轻工学校专业(Shanxi Light Industry School).doc
- 岗位描述书填写导则(Guidelines for filling out job descriptions).doc
- 岳飞英雄事迹(Heroic deeds of Yue Fei).doc
- 嵩山少林 景点介绍(Introduction to Shaolin attractions in Songshan).doc
文档评论(0)