WdfGetDriver 方法

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

语法

WDFDRIVER WdfGetDriver();

参数

This 没有参数。

返回值

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

示例

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

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfdriver.h (包括Wdf.h)

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

Any level

另请参见

WdfDriverCreate

 

 

社区附加资源

添加
显示:
© 2015 Microsoft