IEnumWbemClassObject::Reset method

The IEnumWbemClassObject::Reset method resets an enumeration sequence back to the beginning. Because CIM objects are dynamic, calling this method does not necessarily return the same list of objects that you obtained previously.

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

Syntax


HRESULT Reset();

Parameters

This method has no parameters.

Return value

The Reset method returns an HRESULT indicating the status of the method call. The following table lists the value contained within an HRESULT.

Return codeDescription
WBEM_S_NO_ERROR

The operation succeeded.

WBEM_E_INVALID_OPERATION

The operation failed.

 

Remarks

The COM-specific error codes may also be returned if the remote connection to the Windows Management is lost due to network problems.

You may see COM-specific error codes returned if network problems cause you to lose the remote connection to Windows Management.

If WBEM_S_NO_ERROR is not returned, you can call the COM function GetErrorInfo to get more information about the error.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

Fastprox.dll

 

 

Show:
© 2014 Microsoft