IWbemQuery::Parse method

The IWbemQuery::Parse method parses a query string.

Syntax

HRESULT Parse(
  LPCWSTR pszLang,
  LPCWSTR pszQuery,
  ULONG   uFlags
);

Parameters

pszLang

Language of the query. Must be either "WQL" or "SQL" (case-sensitive). Any other value will result in the method failing and WBEM_E_INVALID_PARAMETER being returned.

pszQuery

Valid WQL or SQL WMI query.

uFlags

Reserved for future use. Must be 0 (zero).

Return Value

This method returns an HRESULT indicating the status of the method call.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wmiutils.h
Library Wbemuuid.lib
DLL Wmiutils.dll

See Also

IWbemQuery