WdfWdmDriverGetWdfDriverHandle method

[Applies to KMDF only]

The WdfWdmDriverGetWdfDriverHandle method returns a handle to the framework driver object that is associated with a specified Windows Driver Model (WDM) driver object.

Syntax


WDFDRIVER WdfWdmDriverGetWdfDriverHandle(
  [in] PDRIVER_OBJECT DriverObject
);

Parameters

DriverObject [in]

A pointer to a WDM driver object.

Return value

WdfWdmDriverGetWdfDriverHandle returns a handle to a framework driver object. A system bug check occurs if the DriverObject pointer is NULL.

Examples

The following code example obtains a handle to the framework driver object that is associated with a specified WDM driver object.


WDFDRIVER  wdfDriverObject;

wdfDriverObject = WdfWdmDriverGetWdfDriverHandle(DriverObject);

Requirements

Target platform

Universal

Minimum KMDF version

1.0

Header

Wdfdriver.h (include Wdf.h)

Library

Wdf01000.sys (see Framework Library Versioning.)

IRQL

Any level

DDI compliance rules

DriverCreate

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft