The IPnpCallbackHardware interface is a Plug and Play (PnP) and power management (PM) interface.
The IPnpCallbackHardware interface inherits from the IUnknown interface. IPnpCallbackHardware also has these types of members:
The IPnpCallbackHardware interface has these methods.
The OnPrepareHardware method notifies a driver to make the specified hardware accessible.
The OnReleaseHardware method notifies a driver to perform operations that are necessary when the specified hardware is no longer accessible.
A driver registers the IPnpCallbackHardware interface when the driver calls the IWDFDriver::CreateDevice method to create a device object.