How to Implement Plug and Play and Power Management in WDF Drivers

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

  • Software-only drivers.

  • Simple function drivers, such as UMDF protocol function drivers and KMDF hardware function drivers that do not support idle or wake.

  • KMDF hardware function drivers that support idle and wake.

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 ...

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.