EndEnumeration function
Terminates an enumeration sequence started with a call to the BeginEnumeration function.
Note
This API is for internal use only. It's not intended for use from developer code.
Syntax
HRESULT EndEnumeration (
[in] int vFunc,
[in] IWbemClassObject* ptr
);
Parameters
vFunc
[in] This parameter is unused.
ptr
[in] A pointer to an IWbemClassObject instance.
Return value
The following values returned by this function are defined in the WbemCli.h header file, or you can define them as constants in your code:
Constant | Value | Description |
---|---|---|
WBEM_E_FAILED |
0x80041001 | There has been a general failure. |
WBEM_S_NO_ERROR |
0 | The function call was successful. |
Remarks
This function wraps a call to the IWbemClassObject::EndEnumeration method.
A call to the EndEnumeration
function is not required, but it is recommended because it releases resources associated with the enumeration. However, the resources are deallocated automatically when the next enumeration is started or the object is released.
Requirements
Platforms: See System Requirements.
Header: WMINet_Utils.idl
.NET Framework Versions: Available since 4.7.2