Bewerken

Delen via


IDriverEntry::OnDeinitialize 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 OnDeinitialize method performs any operations that are necessary before a system unloads a driver.

Syntax

void OnDeinitialize(
  [in] IWDFDriver *pWdfDriver
);

Parameters

[in] pWdfDriver

A pointer to the IWDFDriver interface for the driver object that represents the driver that the system unloads.

Return value

None

Remarks

The framework creates a new driver object for each driver that is loaded in the driver host process. When a driver is about to be unloaded from the host process, the framework calls OnDeinitialize to notify the driver of the departure and passes the IWDFDriver interface in the call. The system unloads the driver after OnDeinitialize returns.

Requirements

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

See also

IDriverEntry

IWDFDriver