IPnpCallbackHardware interface

[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 IPnpCallbackHardware interface is a Plug and Play (PnP) and power management (PM) interface.

Members

The IPnpCallbackHardware interface inherits from the IUnknown interface. IPnpCallbackHardware also has these types of members:

Methods

The IPnpCallbackHardware interface has these methods.

MethodDescription
IPnpCallbackHardware::OnPrepareHardware

The OnPrepareHardware method notifies a driver to make the specified hardware accessible.

IPnpCallbackHardware::OnReleaseHardware

The OnReleaseHardware method notifies a driver to perform operations that are necessary when the specified hardware is no longer accessible.

 

Remarks

A driver registers the IPnpCallbackHardware interface when the driver calls the IWDFDriver::CreateDevice method to create a device object.

Requirements

Header

Wudfddi.h (include Wudfddi.h)

See also

IPnpCallbackHardware2

 

 

Send comments about this topic to Microsoft

Show: