Jump to content

Windows Programming/Driver Structure

From Wikibooks, open books for an open world

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 | edit source]

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 | edit source]

Device Object Structures

[edit | edit source]

DeviceExtensions

[edit | edit source]

DriverEntry and DriverUnload

[edit | edit source]

StartIo and AddDevice

[edit | edit source]

Service Routines

[edit | edit source]