IWbemHiPerfEnum::GetObjects method (wbemcli.h)

The IWbemHiPerfEnum::GetObjects method retrieves objects currently residing in the enumerator.


HRESULT GetObjects(
  [in]  long              lFlags,
  [in]  ULONG             uNumObjects,
  [out] IWbemObjectAccess **apObj,
  [out] ULONG             *puReturned


[in] lFlags

Integer that contains the flags.

[in] uNumObjects

Size of the array passed to this method in the apObj parameter.

[out] apObj

Pointer that holds the reference to an array of IWbemObjectAccess objects, which contains the returned objects. The array must be big enough to hold all objects in the enumerator.

[out] puReturned

Pointer to a ULONG used to return the number of objects placed in the array.

Return value

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


The array must be large enough to hold all objects, or puReturned is filled with the number of returned objects, and WBEM_E_BUFFER_TOO_SMALL is returned.


Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemcli.h (include Wbemidl.h)
Library Wbemuuid.lib

See also