IWbemClassObject::BeginEnumeration method

The IWbemClassObject::BeginEnumeration method resets an enumeration back to the beginning of the enumeration. The caller must call this method prior to the first call to IWbemClassObject::Next to enumerate all of the properties on an object. The order in which properties are enumerated is guaranteed to be invariant for a given instance of IWbemClassObject.

Syntax

HRESULT BeginEnumeration(
  long lEnumFlags
);

Parameters

lEnumFlags

Combination of flags described in Remarks.

Return value

This method returns an HRESULT indicating the status of the method call. The following list lists the value contained within an HRESULT. For general HRESULT values, see System Error Codes.

Remarks

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.

GROUP 1

GROUP 2

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemcli.h (include Wbemidl.h)
Library WbemUuid.lib
DLL CIMWin32.dll; Esscli.dll; Fastprox.dll; FrameDyn.dll; FrameDynOS.dll; Krnlprov.dll; Ncprov.dll; Wbemcore.dll; Wbemess.dll; Wmipiprt.dll

See also

IWbemClassObject

IWbemClassObject::EndEnumeration

IWbemClassObject::Next

WMI System Properties