WdfWmiInstanceGetDevice function

[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

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.

The following code example obtains a handle to the framework device object that is associated with a specified WMI instance object.

Requirements

   
Windows Driver kit version
Target platform Universal
Minimum KMDF version 1.0
Minimum UMDF version
Header wdfwmi.h (include Wdf.h)
Library
IRQL <=DISPATCH_LEVEL
DDI compliance rules DriverCreate, KmdfIrql, KmdfIrql2

See Also

WdfWmiInstanceCreate

Send comments about this topic to Microsoft