没有合适的资源?快使用搜索试试~ 我知道了~
首页Karen Hazzah - Writing Windows VxDs and Device Drivers Second 2Ed
假如你是专门开发Win98与Win95驱动程序的人员,那Karen Hazzah所写的 “Writing Windows VxDs and Device Drivers, Second 2Ed”, 可说是VxD方面的圣经
资源详情
资源评论
资源推荐
Writing Windows
VxDs
and Device Drivers
Karen Hazzah
CMP Books
Lawrence, KS 66046
CMP Books
an imprint of CMP Media, Inc.
1601 West 23rd Street, Suite 200
Lawrence, KS 66046
USA
Designations used by companies to distinguish their products are often claimed as
trademarks. In all instances where CMP is aware of a trademark claim, the product
name appears in initial capital letters, in all capital letters, or in accordance with the ven-
dor’s capitalization preference. Readers should contact the appropriate companies for
more complete information on trademarks and trademark registrations. All trademarks
and registered trademarks in this book are the property of their respective holders.
Copyright © 1997 by CMP Media, Inc., except where noted otherwise.
Published by CMP Books, an imprint of CMP Media, Inc.
All rights reserved.
Printed in the United States of America.
No part of this publication may be reproduced or distributed in any form or by any
means, or stored in a database or retrieval system, without the prior written permission
of the publisher; with the exception that the program listings may be entered, stored,
and executed in a computer system, but they may not be reproduced for publication.
The programs in this book are presented for instructional value. The programs have
been carefully tested, but are not guaranteed for any particular purpose. The publisher
does not offer any warranties and does not guarantee the accuracy, adequacy, or com-
pleteness of any information herein and is not responsible for any errors or omissions.
The publisher assumes no liability for damages resulting from the use of the informa-
tion in this book or for any infringement of the intellectual property rights of third
parties which would result from the use of this information.
Distributed in the U.S. and Canada by:
Publishers Group West
1700 Fourth St.
Berkeley, CA 94710
ISBN: 0-87930-438-3
LS #4 11-00
R&D Developer Series
iii
Preface
This book is primarily for developers who need to write a non-standard device driver,
either as a VxD or as a DLL. (A non-standard device is anything except a display,
keyboard, mouse, serial port, or printer.) This second edition expands the coverage of
VxDs, with particular attention to the issues raised by new Windows 95 features, like
Plug and Play.
While not intended for a beginning programmer, it is my intent that this book will
be accessible and useful to a wide range of readers. If you have written a device driver
or device interface code for DOS or some other operating system, you should be com-
fortable with the material in this book. To get the most from this book, you should
have a strong working knowledge of C. You should also be able to read 80x86 assem-
bly, although this edition uses far less assembly than the first edition. A strong grasp
of how segments are used by DOS compilers and assemblers will be helpful. You do
not need to be a Windows application programmer. In fact, you’ll find the code in this
book bears a much stronger resemblance to conventional DOS code than to the typical
Windows application.
A Step-by-Step Approach
Windows can be an overwhelmingly complex environment. My goal in this book is to
help you understand which parts of that environment are really critical to each differ-
ent type of driver. Each chapter introduces a new driver, and each chapter introduces
only as much new material as you need to understand the new example. I’ve tried to
iv
keep each example driver as simple as possible so that the critical features are nearly
self-evident. Most of the example code is written in C and embedded assembly using
VC++ 4.0. Where necessary, code is written in assembly using Microsoft Assembly
(MASM) v6.1. The code disk includes a library of wrapper functions that allow VxDs
to be coded almost entirely in C.
Which Version of Windows?
This book covers both Windows 95 and Windows 3.x (Enhanced Mode). The focus is
on Windows 95, but almost all of the material also applies to Windows 3.x. In most
chapters the differences between the two versions are minimal and Windows 3.x con-
siderations are simply highlighted in a separate section at the end of the chapter. In a
few chapters the differences are larger. In these chapters I fully describe both ver-
sions, each in a separate section.
About the Book
This book is partitioned into two major sections. Part I (Chapters 2 through 12) covers
the Windows execution environment and VxDs. Part II (Chapters 13 through 19) cov-
ers DLL-based drivers. Within each part, the chapters are ordered so that each builds
on the prior chapters. Once you have read Chapter 1 and decided whether you need to
build a VxD or a DLL, you can decide how to read the rest of the book. Nearly every-
one should read Chapters 2 and 3. These chapters describe those portions of the Win-
dows architecture that are important to device driver writers. The topics covered in
these chapters are important to both VxD and DLL developers. Those readers who are
rusty on selectors, descriptors, page tables, and the other architectural details of the
80x86 family of processors will want to read and refer to Appendix A as they read
Chapters 2 and 3. Throughout the book, I assume you are comfortably familiar with
the architectural information in Appendix A. Finally, if it bothers you to have certain
implementation details hidden, you may want to read portions of Appendix B as you
study the first example drivers. This appendix is the primary reference for the assem-
bly language “wrappers” used throughout the text.
Companion Files on the FTP Site
NOTE: The full source code, wrapper library, and so forth for this book are now avail-
able on the publisher’s ftp site at ftp://ftp.cmpbooks.com/pub/hazzah.zip; logon
as “anonymous” and download the file. Any references to the “companion code disk”
in the book now refer to the files available on the ftp site.
剩余496页未读,继续阅读
xwuta
- 粉丝: 12
- 资源: 37
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论3