Execute a query against the WMI namespace set with a call to SetNamespace, as shown in Table 26 and Table 27.

Table 26. HRESULT ExecQuery

Parameter

Description

Query

The string for the WMI query you want to execute

ppIterator

Pass a pointer to an interface pointer, which on return will be filled in with an interface, giving you access to the query results

 

Table 27. HRESULT Query Result

HRESULT

Description

S_OK

Query succeeded

Other

If the query did not succeed, returns a WMI HRESULT

 

Related Topics

IWmiRepository Interface