WdfWdmDriverGetWdfDriverHandle function (wdfdriver.h)

[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

[in] DriverObject

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.

Requirements

Requirement Value
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(kmdf)