Partager via


Next method

Retrieves an array of entries from the collection.

 

Syntax

HRESULT retVal = object.Next(celt, rgelt, pceltFetched);

Parameters

  • celt [in]
    Type: unsigned long

    The maximum number of entries to retrieve.

  • rgelt [out]
    Type: EnumActivityType

    The array of retrieved entries. The array must be large enough to hold the number of entries specified by the celt parameter.

  • pceltFetched [out]
    Type: unsigned long

    The number of entries actually retrieved.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The rgelt parameter is defined as a pointer to an IOpenServiceActivity interface.

The rgelt parameter is defined as a pointer to an IOpenServiceActivityCategory interface.

This method increases the reference count of each retrieved interface. To release an interface, your program must call the Release method.

See also

IEnumOpenServiceActivity::Skip