IEnumWbemClassObject::Reset

[This is preliminary documentation and subject to change.]

The IEnumWbemClassObject::Reset method resets the current position of the enumerator to zero, or to the beginning of the enumeration. Since CIM objects are dynamic, calling this method does not necessarily return the same list of objects that you obtained previously.

Note  This method will fail if the enumerator was originally created with the WBEM_FLAG_FORWARD_ONLY option.

HRESULT Reset( );
 

Parameters

None.

Return Values

S_OK The operation succeeded.
S_FALSE The operation failed.

If S_OK is not returned, a call to the COM function GetErrorInfo provides more information about the error.