IPnpCallback interface (wudfddi.h)
[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]
The IPnpCallback interface is a Plug and Play (PnP) and power management (PM) interface.
Inheritance
The IPnpCallback interface inherits from the IUnknown interface. IPnpCallback also has these types of members:
- Methods
Methods
The IPnpCallback interface has these methods.
IPnpCallback::OnD0Entry The OnD0Entry method notifies a driver when a device enters the D0 power state so that the driver can perform necessary operations, such as enabling the device. |
IPnpCallback::OnD0Exit The OnD0Exit method notifies a driver when a device exits the D0 power state so that the driver can perform necessary operations, such as disabling the device. |
IPnpCallback::OnQueryRemove The OnQueryRemove method notifies a driver before a device is removed from a computer. |
IPnpCallback::OnQueryStop The OnQueryStop method notifies a driver before a device is stopped. |
IPnpCallback::OnSurpriseRemoval The OnSurpriseRemoval method notifies a driver after a device is removed from a computer unexpectedly so that the driver can perform necessary operations. |
Remarks
A driver registers the IPnpCallback interface when the driver calls the IWDFDriver::CreateDevice method to create a device object.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wudfddi.h (include Wudfddi.h) |