将驱动移植到Windows Embedded CE 60.ppt

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

总结: 驱动移到了内核中; 考虑一下是否可以作为用户态驱动; 需要对内嵌的指针做访问检查; 异步的内存访问需要对内存指针做marshalling; 如果驱动需要现实用户界面,需要将用户界面部分移到用户态; 快速指南(1) 实例 需要做什么? 如何做 同步使用传入的参数 访问检查; 安全复制 因为在“陷入”内核时已做过访问检查,驱动无需再做了;使用CeAllocDuplicateBuffer 得到一个本地的副本。 异步使用传入的参数 访问检查; 内存编组(marshalling) 安全复制 使用CeAllocAsynchronousBuffer / CeFreeAsynchronousBuffer. Marshalling内存; 使用CeAllocDuplicateBuffer 得到一个本地的副本。 同步使用内嵌的指针 访问检查; 内存编组(marshalling) 安全复制 使用CeOpenCallerBuffer / CeCloseCallerBuffer做内存检查; 调用CeOpenCallerBuffer时将ForceDuplicate 置为 TRUE或者使用CeAllocDuplicateBuffer得到一个本地的副本。 快速指南(2) 实例 需要做什么? 如何做 异步使用内嵌的指针 访问检查; 内存编组(marshalling) 安全复制 在调用call CeOpenCallerBuffer之后,调用 CeAllocAsynchronousBuffer ; 必须在调用CeCloseCallerBuffer之前,调用 CeFreeAsynchronousBuffer; 调用CeOpenCallerBuffer时将ForceDuplicate 置为 TRUE或者使用CeAllocDuplicateBuffer得到一个本地的副本。 对所有过时的APIs 移除所有过时的APIs 逐一移除所有过时的APIs 例如: CeGetCallerTrust, SetKMode and so on. 对所有 UI/Dialog boxes 使用CeCallUserProc 编写一个用户态DLL实现用户界;以dll名字作为参数调用 CeCallUserProc API 。 其它的资源 BSP Wiki: /wiki/default.aspx/CeDeveloper.WindowsCEBSP Web Resources: /embedded/windowsce/default.aspx 社区资源 Community Sites: /communities/default.mspx List of Newsgroups: /communities/newsgroups/en-us/default.aspx Attend a free chat or webcast: /communities/chats/default.mspx /seminar/events/webcasts/default.mspx ? 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. Full Example: Win

文档评论(0)

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

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

1亿VIP精品文档

相关文档