Plug and Play and power management encompass activities involved in the installation, configuration, and device operation. To properly support Plug and Play and power management, the operating system, drivers, system administration software, device installation software, system hardware, and device hardware must all work together.
Windows and the Windows Driver Model (WDM) expose a complicated model for Plug and Play and power management that depends on the driver to keep track of both the state of its device and the state of the system, thus in effect implementing its own informal state machine.
The WDF frameworks implement intelligent default behavior and expose a set of state-specific callbacks that drivers can implement to customize the Plug and Play and power behavior. The WDF driver supplies only the code required to manipulate its device. The framework tracks device and system state and calls the driver at its registered callbacks to perform device-specific actions.
Getting Started with PnP and Power in Drivers
| Plug and Play and Power Management in WDF Drivers | |
| Power Management in the WDK Kernel-Mode Driver Design Guide | |
WDK Online: Implementing Plug and Play
![]() | |
WDK Online: Implementing Power Management
![]() |
Plug and Play for Drivers
Power Management Best Practices for Drivers
Resources