IPnpCallback interface
The IPnpCallback interface is a Plug and Play (PnP) and power management (PM) interface.
Members
The IPnpCallback interface inherits from the IUnknown interface. IPnpCallback also has these types of members:
Methods
The IPnpCallback interface has these methods.
Method | Description |
---|---|
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
Header |
|
---|