Windows Programming/Driver Structure

From Wikibooks, open books for an open world
< Windows Programming
Jump to: navigation, search

This page of the Windows Programming book is a stub. You can help by expanding it.

Drivers, unlike user-mode programs, have a number of different entry points, and each entry point is specifically designed to handle a single type of interface. In this chapter, we will talk about the required interfaces, and we will also talk about adding additional interfaces.

DRIVER_OBJECT[edit]

Driver routines all receive a pointer to a DRIVER_OBJECT structure. The driver must fill in the appropriate fields of this structure, so that Windows can learn the whereabouts of the different access routines, and any other information about the driver.

I/O Request Packets[edit]

Device Object Structures[edit]

DeviceExtensions[edit]

DriverEntry and DriverUnload[edit]

StartIo and AddDevice[edit]

Service Routines[edit]