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.
| Method | Description |
|---|---|
| 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. |
Remarks
Windows 2000 and Windows NT: Requires the WMI SDK Update or the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.
Windows NT: Requires the Microsoft .NET Framework SDK. For more information about obtaining this SDK, see Windows Management Instrumentation.
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 XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Redistributable | WMI Redistributable Components version 1.0 on Windows 2000. |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012