IReplStore::IsFolderChanged

The IReplStore::IsFolderChanged method checks if any object in a given folder has been changed since the method was last called.

Syntax

HRESULT IsFolderChanged(
HREPLFLD
hFolder,
BOOL *
pfChanged
);

At a Glance

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

Parameters

hFolder
Handle to a folder.
pfChanged
Pointer to a Boolean that will be set to TRUE if folder is changed.

Return Values

NOERROR
The operation completed successfully. The pfChanged parameter will be set to TRUE if the folder is changed or FALSE otherwise.
RERR_SHUT_DOWN
There was a serious error, and the ActiveSync service provider should shut down immediately.
RERR_UNLOAD
There was a less serious error, and replication modules must be unloaded.
RERR_STORE_REPLACED
The complete store was replaced.

Remarks

If the ActiveSync service provider wants real-time synchronization to be simulated (see GetStoreInfo). The ActiveSync service manager will call the IReplStore::IsFolderChanged method once the timer is up to see if it needs to scan the store further to pick up any changes. This is used to reduce the number of scans replication has to make to the store, improving efficiency. An ActiveSync service provider should simply return TRUE if it doesn't need to implement this method.

See Also

STOREINFO, IReplStore::GetStoreInfo