wmilib.h header

TThis header is used in providing kernel-mode Windows Management Instrumentation (WMI) extensions to WDM.

Drivers can use these routines in processing WMI IRPs.

To handle WMI IRPs by calling WmiSystemControl, a driver must implement certain required callback routines, for information, see Calling WmiSystemControl to Handle WMI IRPs

For more information, see:

wmilib.h contains the following programming interfaces:

Functions

 
WmiCompleteRequest

The WmiCompleteRequest routine indicates that a driver has finished processing a WMI request in a DpWmiXxx routine.
WmiFireEvent

The WmiFireEvent routine sends an event to WMI for delivery to data consumers that have requested notification of the event.
WmiSystemControl

The WmiSystemControl routine is a dispatch routine for drivers that use WMI library support routines to handle WMI IRPs.

Callback functions

 
WMI_EXECUTE_METHOD_CALLBACK

The DpWmiExecuteMethod routine executes a method associated with a data block. This routine is optional.
WMI_FUNCTION_CONTROL_CALLBACK

The DpWmiFunctionControl routine enables or disables notification of events, and enables or disables data collection for data blocks that the driver registered as expensive to collect. This routine is optional.
WMI_QUERY_DATABLOCK_CALLBACK

The DpWmiQueryDataBlock routine returns either a single instance or all instances of a data block. This routine is required.
WMI_QUERY_REGINFO_CALLBACK

The DpWmiQueryReginfo routine provides information about the data blocks and event blocks to be registered by a driver. This routine is required.
WMI_SET_DATABLOCK_CALLBACK

The DpWmiSetDataBlock routine changes all data items in a single instance of a data block. This routine is optional.
WMI_SET_DATAITEM_CALLBACK

The DpWmiSetDataItem routine changes a single data item in an instance of a data block. This routine is optional.

Structures

 
WMIGUIDREGINFO

The WMIGUIDREGINFO structure contains registration information for a given data block or event block exposed by a driver that uses the WMI library support routines.
WMILIB_CONTEXT

The WMILIB_CONTEXT structure provides registration information for a driver's data blocks and event blocks and defines entry points for the driver's WMI library callback routines.