[This is preliminary documentation and subject to change.]
The IWbemClassObject::BeginEnumeration method resets the enumeration sequence of all the properties in the object. The caller must call this method prior to the first call to IWbemClassObject::Next to enumerate all of the properties on an object.
HRESULT IWbemClassObject::BeginEnumeration(
[in] Long lEnumFlags
);
WBEM_E_INVALID_PARAMETER | The specified combination of flags was invalid, an invalid parameter was specified, or the namespace could not be parsed. |
WBEM_E_OUT_OF_MEMORY | There is not enough memory to begin a new enumeration. |
WBEM_NO_ERROR | Success. |
You can control the properties included in the enumeration by specifying a combination of the following flags. You can combine one flag from each group with any flag from any other group. However, flags from the same group are mutually exclusive.
IWbemClassObject::Next, System Properties, IWbemClassObject::EndEnumeration