IReplStore::FindNextItem

The IReplStore::FindNextItem method returns a new item handle to the next object in a given folder, if there is any.

Syntax

HRESULT FindNextItem(
HREPLFLD
hFolder,
HREPLITEM *
phItem,
BOOL *
pfExist
);

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

hFolder
Handle to a folder.
phItem
Output pointer. Points to a handle of the next object in the folder.
pfExist
Output pointer. Points to a boolean value that will be set to TRUE if there is an object in the folder.

Return Values

E_FAIL
There are problems with the enumeration. Replication should ignore the folder.
NOERROR
A new HREPLITEM was created for the next object in the folder and its pointer has been returned.

Remarks

The IReplStore::FindNextItem method works together with FindFirstItem and FindItemClose to enumerate all items in a given folder. FindNextItem and FindFirstItem are the only methods in IReplStore that can create HREPLITEM structures for the objects. All HREPLITEM structures passed by the ActiveSync service manager are guaranteed to be originally created from these two methods.

See Also

HREPLITEM, IReplStore::FindFirstItem, IReplStore::FindItemClose