WdfWmiInstanceGetDevice function (wdfwmi.h)

[Applies to KMDF only]

The WdfWmiInstanceGetDevice method returns a handle to the framework device object that is associated with a specified WMI instance object.

Syntax

WDFDEVICE WdfWmiInstanceGetDevice(
  [in] WDFWMIINSTANCE WmiInstance
);

Parameters

[in] WmiInstance

A handle to a WMI instance object that the driver obtained from a previous call to WdfWmiInstanceCreate.

Return value

WdfWmiInstanceGetDevice returns a handle to a framework device object.

A bug check occurs if the driver supplies an invalid object handle.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Header wdfwmi.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL <=DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

See also

WdfWmiInstanceCreate