Developing Drivers with the Windows Driver Foundation (Pro Developer)

The rest of this chapter provides sample code that shows how to implement Plug and Play and power management in several types of drivers:

The Plug and Play and power management implementation is more complex in each successive example, and each example builds upon the information in the previous examples. You can add the Plug and Play and power code to your own driver in a similar incremental way. Even if your device supports advanced capabilities such as idle or wake, you can start by implementing the simple features. When these features work correctly, you can implement additional callbacks to support the more complex features.

For each type of driver, the discussion covers:

In each sample listing, the significant lines of code are in bold.

Категории