// wdfminiport.h
VOID WdfDriverMiniportUnload(
[in] WDFDRIVER Driver
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF only]
The WdfDriverMiniportUnload method deletes a specified miniport driver's framework driver object.
Driver
[in]A handle to the driver's framework driver object that the driver obtained from a previous call to WdfDriverCreate or WdfGetDriver.
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.
The following code example deletes a specified miniport driver's framework driver object.
WdfDriverMiniportUnload(WdfGetDriver());