WdfDriverMiniportUnload method

[Applies to KMDF only]

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

Syntax


VOID WdfDriverMiniportUnload(
  [in]  WDFDRIVER Driver
);

Parameters

Driver [in]

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

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

See also

EvtDriverUnload
WdfDeviceMiniportCreate
WdfDriverCreate
WdfGetDriver

 

 

Send comments about this topic to Microsoft

Показ:
© 2014 Microsoft