Chapter 10. Programming Plug and Play and Power Management

A few drivers, like the Simple Toaster sample, can use the WDF default for Plug and Play and power management. Most drivers, however, must perform device-specific activities in response to Plug and Play and power management requests.

The Featured Toaster driver is the power policy manager for its device and supports wake signals and idling in a low-power state. To implement such support, the driver must

• Register callbacks for Plug and Play, power, and power policy events.

• Set power policy options for its device.

• Implement callbacks to handle wake-up when a wake signal arrives.

• Implement callbacks for power-up and power-down to support idling in a low-power state.

This chapter ...

Get Windows 7 Device Driver now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.