[This is preliminary documentation and subject to change.]
The DWbemContext.Next method retrieves the next qualifier in an enumeration that was started with DWbemContext.BeginEnumeration
Next(
[in] lFlags As Long,
[out] pName As String,
[out] pVal As VARIANT
) As Long
If WBEM_S_NO_MORE_DATA is returned, this parameter is set to a VARIANT of type VBNULL.
It is possible that an entire DWbemClassObject is returned inside the VARIANT. If that is the case, CIM_OBJECT is the VARIANT type.
Note At the end of the enumeration, WBEM_S_NO_MORE_DATA is returned. The returned VARIANT is of type VBNULL, and the returned pName is set to vbNullString.
WBEM_E_INVALID_PARAMETER | An invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_UNEXPECTED | Caller did not call DWbemContext.BeginEnumeration. |
WBEM_NO_ERROR | Success. |
WBEM_S_NO_MORE_DATA | No more properties are left in the enumeration. |
WBEM_E_OUT_OF_MEMORY | There was not enough memory to complete the call. |
DWbemContext.BeginEnumeration, DWbemContext.EndEnumeration