WdfWmiProviderGetDevice function

[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(
  WDFWMIPROVIDER WmiProvider
);

Parameters

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

   
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, KmdfIrql, KmdfIrql2

See Also

WdfWmiInstanceGetProvider

WdfWmiProviderCreate