다음을 통해 공유


IRTCEnumWatchers::Next (Windows CE 5.0)

Send Feedback

This method retrieves the next specified number of elements in the enumeration sequence.

HRESULT Next( ULONG celt,  IRTCWatcher** ppElements,ULONG* pceltFetched);

Parameters

  • celt
    [in] Number of elements to fetch.

  • ppElements
    [out] Pointer to an array of IRTCWatcher pointers. This buffer must be large enough to hold celt pointers. The call overwrites the current values in the first celt items of the array.

    If the method succeeds, an object is created for each retrieved interface pointer. The caller must free these objects using Release when they are no longer being used.

  • pceltFetched
    [in, out] Pointer to the number of elements actually fetched by the enumerator, or NULL if celt is 1. When the method returns, the array contains pceltFetched valid pointers. The caller is responsible for releasing this memory. If celt is greater than pceltFetched , the rest of array contains NULL.

Return Values

This method can return an RTC_E_ constant. The following table shows additional possible return values.

Value Description
S_FALSE Some elements were fetched, but the total number is less than the specified number in celt parameter. The pceltFetched parameter contains the actual number of elements fetched.
S_OK Specified number of elements were fetched.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Rtccore.h, Rtccore.idl.
Link Library: Uuid.lib.

See Also

IRTCEnumWatchers | IRTCWatcher | Release

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.