WdfGetDriver method

[Applies to KMDF and UMDF]

The WdfGetDriver method returns a handle to the framework driver object that represents the calling driver.

Syntax


WDFDRIVER WdfGetDriver();

Parameters

This method has no parameters.

Return value

WdfGetDriver returns a handle to a framework driver object, or NULL if the driver has not called WdfDriverCreate.

Examples

The following code example obtains a handle to the calling driver's framework driver object and uses the handle as input to WdfDriverMiniportUnload.


WdfDriverMiniportUnload(WdfGetDriver());

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfdriver.h (include Wdf.h)

Library

Wdf01000.sys (KMDF);
WUDFx02000.dll (UMDF)

IRQL

Any level

See also

WdfDriverCreate

 

 

Send comments about this topic to Microsoft

Anzeigen:
© 2014 Microsoft