Required Driver Components

Every driver, whether it runs in user mode or kernel mode, must implement certain functions and use certain objects, as follows:

  • An entry point at which the driver is called when it is loaded.

  • A driver object, which represents the driver.

  • One or more device objects, which represent the devices that the driver controls.

  • Additional objects that the driver uses with the device objects to control the device and manage the flow of I/O requests to the device.

  • Event callbacks to handle events of importance to the driver.

Every driver has a driver object, which represents the driver in the framework. The driver supplies the framework with information about the callbacks that it supports for the driver object.

When the system enumerates ...

Get Developing Drivers with the Windows® Driver Foundation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.