WdfDriverMiniportUnload - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfminiport.h

VOID WdfDriverMiniportUnload(
  [in] WDFDRIVER Driver
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfminiport-wdfdriverminiportunload)

WdfDriverMiniportUnload function

Description

[Applies to KMDF only]

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

Parameters

Driver [in]

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

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());

See also

EvtDriverUnload

WdfDeviceMiniportCreate

WdfDriverCreate

WdfGetDriver