Writing Windows VxDs and Device Drivers / Edition 2

Writing Windows VxDs and Device Drivers / Edition 2

by Karen Hazzah
     
 

ISBN-10: 0879304383

ISBN-13: 9780879304386

Pub. Date: 01/12/1996

Publisher: Taylor & Francis

Software developer and author Karen Hazzah expands her original treatise on device drivers in the second edition of Writing Windows VxDs and Device Drivers. The book and companion disk include the author's library of wrapper functions that allow the progr

Overview

Software developer and author Karen Hazzah expands her original treatise on device drivers in the second edition of Writing Windows VxDs and Device Drivers. The book and companion disk include the author's library of wrapper functions that allow the progr

Product Details

ISBN-13:
9780879304386
Publisher:
Taylor & Francis
Publication date:
01/12/1996
Series:
R&D Developer Series
Edition description:
2nd Edition
Pages:
479
Product dimensions:
7.50(w) x 9.25(h) x 1.00(d)

Table of Contents

A Step-by-step Approach ..... iv
of a VxD ..... 39
The Device Descriptor Block ..... 40
Supporting Data Structures ..... 42
Event Notification ..... 47
Statically Loaded VxD Initialization and Termination Messages ..... 49
Dynamically Loaded VxD Initialization and Termination Messages ..... 50
VM State Change Messages ..... 51
Thread Messages ..... 53
Windows 3.x Differences ..... 54
Summary ..... 54

Chapter 5: A Skeleton VxD ..... 55
Tools for Building VxDs ..... 55
"DDK" Version Source Files ..... 57
The DDB and Device Control Procedure: SKELCTRL.ASM ..... 60
VToolsD Version ..... 63
A Windows 3.x Version of SKELETON ..... 67
Summary ..... 68

Chapter 6: VxD Talks to Hardware ..... 79
I/O-mapped versus Memory-mapped ..... 79
Talking to an I/O-mapped Device ..... 80
Talking to a Memory-mapped Device ..... 81
Statically Configured Memory-mapped Devices ..... 82
Dynamically Configurable Devices ..... 82
Another Data Transfer Method: DMA ..... 85
Using System DMA ..... 86
System DMA Buffer Requirements ..... 86
A Function for Allocating a System DMA Buffer ..... 88
Overview of VDMAD Services ..... 90
VDMAD Services in Detail ..... 91
Using Bus-master DMA ..... 93
The Right Way to Use VDMAD_Scatter_Lock ..... 96
Using Events with Bus-master DMA Transfers ..... 99
Windows 3.x Differences ..... 100
Summary ..... 100

Chapter 7: Handling Hardware Interrupts in a VxD ..... 107
Interrupts and the VMM ..... 108
Using VPICD Services ..... 109
Examining VPICD Services in Detail: VXDIRQ.C ..... 110
Assembly Thunks and C Handlers ..... 112
The HwIntProc Callback: DDBISR.ASM and VXDISR.C ..... 112
Event Handling in VXDISR ..... 113
Windows 3.x Differences ..... 114
Summary ..... 116

Chapter 8: VxDs for Virtualization ..... 127
VMM and Processor Exceptions ..... 128
Device Owne

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >