IPnpCallbackSelfManagedIo::OnSelfManagedIoCleanup method (wudfddi.h)

[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 OnSelfManagedIoCleanup method releases memory for a device's self-managed I/O operations, after the device is removed.

Syntax

void OnSelfManagedIoCleanup(
  [in] IWDFDevice *pWdfDevice
);

Parameters

[in] pWdfDevice

A pointer to the IWDFDevice interface for the device object of the device that the driver performs cleanup for.

Return value

None

Remarks

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

Requirements

Requirement Value
Target Platform Windows
Header wudfddi.h (include Wudfddi.h)

See also

IPnpCallbackSelfManagedIo

IWDFDevice

IWDFDriver::CreateDevice