IVoIPCallLogDBEnum::Next (Windows CE 5.0)
This method retrieves the next specified number of elements in the enumeration sequence.
HRESULT Next( unsigned longcelt,IVoIPCallRecord**rgVoIPCallRecord,unsigned long*pceltFetched );
Parameters
- celt
[in] Number of elements to fetch. - rgVoIPCallRecord
[out] Pointer to an array of IVoIPCallRecord 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 by using Release when they are no longer being used. - pceltFetched
[out] Pointer to the number of records actually fetched from the database, or NULL if no information is available. After 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
The following table shows the possible return values.
Value | Description |
---|---|
VOIP_E_ENUMOUTOFDATE | The database was modified or the internal seek pointer was moved, which rendered the enumerator out of date. No items were fetched. The application must call IVoIPCallLogDBEnum::Reset to restore the out-of-date enumerator. |
S_OK | Specified number of records was fetched. |
S_FALSE | Some records were fetched, but the total number is less than the specified number in celt parameter. The pceltFetched parameter contains the actual number of records fetched. |
Remarks
The enumerator only retrieves call log records of the type associated with the enumerator when it is created. For example, an enumerator created by IVoIPCallLogDB::IncomingEnumerator enumerates incoming calls.
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Voipstore.idl.
Link Library: Voipguid.lib.
See Also
VoIP Application Interface Layer Architecture | VoIP Application Interface Layer Reference | IVoIPCallLogDB::IncomingEnumerator | IVoIPCallLogDBEnum::Reset | IVoIPCallLogDBEnum::Skip | IVoIPCallRecord
Send Feedback on this topic to the authors