WdfWmiInstanceGetProvider method

[Applies to KMDF only]

The WdfWmiInstanceGetProvider method returns a handle to the WMI provider object that is the parent object of a specified WMI instance object.

Syntax


WDFWMIPROVIDER WdfWmiInstanceGetProvider(
  [in]  WDFWMIINSTANCE WmiInstance
);

Parameters

WmiInstance [in]

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

Return value

WdfWmiInstanceGetProvider returns a handle to a WMI provider object.

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

Examples

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


WDFWMIPROVIDER providerHandle;

providerHandle = WdfWmiInstanceGetProvider(wmiInstance);

Requirements

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

WdfWmiInstanceCreate

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft