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.


The IPnpCallbackHardware2 interface has these methods.

Method Description
IPnpCallbackHardware2::OnPrepareHardware The OnPrepareHardware method performs any operations that are needed to make a device accessible to the driver.
IPnpCallbackHardware2::OnReleaseHardware The OnReleaseHardware method performs operations that are needed when a device is no longer accessible.


End of support Unavailable in UMDF 2.0 and later.
Target Platform Desktop
Minimum UMDF version 1.11
Header wudfddi.h

See Also