[This is preliminary documentation and subject to change.]
The IWbemQualifierSet::Next method retrieves the next qualifier in an enumeration that was started with IWbemQualifierSet::BeginEnumeration. This method is called repeatedly to enumerate all the qualifiers until WBEM_S_NO_MORE_DATA is returned. To terminate the enumeration early, call IWbemQualifierSet::EndEnumeration.
The order of the qualifiers returned during the enumeration is not defined.
HRESULT IWbemQualifierSet::Next(
[in] LONG lFlags,
[out, OPTIONAL] BSTR *pbstrName,
[out, OPTIONAL] VARIANT *pVal,
[out, OPTIONAL] LONG *plFlavor
);
The caller must call SysFreeString on the returned string when it is no longer required.
Note If pbstrName points to a valid BSTR on entry, the valid BSTR is not freed, and there will be a memory leak.
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_UNEXPECTED | Caller did not call IWbemQualifierSet::BeginEnumeration. |
WBEM_NO_ERROR | Success. |
WBEM_S_NO_MORE_DATA | No more properties are left in the enumeration. |
IWbemQualifierSet::BeginEnumeration, IWbemQualifierSet::EndEnumeration, Qualifier Flavors