WdfDriverMiniportUnload function (wdfminiport.h)

[Applies to KMDF only]

The WdfDriverMiniportUnload method deletes a specified miniport driver's framework driver object.

Syntax

void WdfDriverMiniportUnload(
  [in] WDFDRIVER Driver
);

Parameters

[in] Driver

A handle to the driver's framework driver object that the driver obtained from a previous call to WdfDriverCreate or WdfGetDriver.

Return value

None

Remarks

A miniport driver calls the WdfDriverMiniportUnload method when the miniport driver is about to be unloaded. The method calls the driver's EvtDriverUnload event callback function and deletes the driver's framework driver object.

Typically, a miniport driver calls WdfDriverMiniportUnload from within a driver-supplied unload routine that is defined by the port driver's architecture.

For more information about miniport drivers, see Using Kernel-Mode Driver Framework with Miniport Drivers.

Examples

The following code example deletes a specified miniport driver's framework driver object.

WdfDriverMiniportUnload(WdfGetDriver());

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Header wdfminiport.h (include Wdfminiport.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL <= DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf)

See also

EvtDriverUnload

WdfDeviceMiniportCreate

WdfDriverCreate

WdfGetDriver