WdfWmiProviderGetDevice function (wdfwmi.h)

[Applies to KMDF only]

The WdfWmiProviderGetDevice method returns a handle to the framework device object that is the parent of a specified WMI provider object.

Syntax

WDFDEVICE WdfWmiProviderGetDevice(
  [in] WDFWMIPROVIDER WmiProvider
);

Parameters

[in] WmiProvider

A handle to a WMI provider object that the driver obtained by calling WdfWmiProviderCreate or WdfWmiInstanceGetProvider.

Return value

WdfWmiProviderGetDevice 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

WdfWmiInstanceGetProvider

WdfWmiProviderCreate