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.
HRESULT BeginEnumeration( long lEnumFlags );
Combination of flags described in Remarks.
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.
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.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|
|Header||wbemcli.h (include Wbemidl.h)|
|DLL||CIMWin32.dll; Esscli.dll; Fastprox.dll; FrameDyn.dll; FrameDynOS.dll; Krnlprov.dll; Ncprov.dll; Wbemcore.dll; Wbemess.dll; Wmipiprt.dll|