IPnpCallbackHardware2 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 IPnpCallbackHardware2 interface exposes callback methods related to hardware.

When to implement

A driver implements this interface and registers it when it calls the IWDFDriver::CreateDevice method to create a device object.

Members

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

Methods

The IPnpCallbackHardware2 interface has these methods.

MethodDescription
OnPrepareHardware

The OnPrepareHardware method performs any operations that are needed to make a device accessible to the driver.

OnReleaseHardware

The OnReleaseHardware method performs operations that are needed when a device is no longer accessible.

 

Requirements

Target platform

Desktop

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.11

Header

Wudfddi.h

See also

IUnknown

 

 

Send comments about this topic to Microsoft

Show: