IWbemQuery interface

The IWbemQuery interface provides an entry point through which a WMI Query Language (WQL) query can be parsed. For more information about WQL, see WQL (SQL for WMI).

The following table lists the methods for IWbemQuery.

Members

The IWbemQuery interface inherits from the IUnknown interface. IWbemQuery also has these types of members:

Methods

The IWbemQuery interface has these methods.

MethodDescription
Empty

Frees the memory that the parser is holding.

FreeMemory

Frees the memory that the parser returned to the caller in the previous call to GetAnalysis.

GetAnalysis

Gets the results of a successfully parsed query.

GetQueryInfo

Not implemented. Returns E_NOTIMPL if called.

Parse

Parses a query string.

SetLanguageFeatures

Not implemented. Returns E_NOTIMPL if called.

TestLanguageFeatures

Not implemented. Returns E_NOTIMPL if called.

 

Examples

The following code example creates a parser object.


IWbemQuery *pQuery = NULL;
HRESULT hr = NULL;
hr = CoCreateInstance(CLSID_WbemQuery,
                      0,
                      CLSCTX_INPROC_SERVER,
                      IID_IWbemQuery,
                      (LPVOID *)&pQuery);

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wmiutils.h

Library

Wbemuuid.lib

DLL

Wmiutils.dll

See also

COM API for WMI
Querying with WQL

 

 

Show:
© 2014 Microsoft