WdfWmiProviderGetDevice method

[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

WmiProvider [in]

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.

Examples

The following code example obtains a handle to the framework device object that is the parent of a specified WMI provider object.


WDFDEVICE device;

device = WdfWmiProviderGetDevice(wmiProvider);

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

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft