IReplNotify::OnItemNotify

The IReplNotify::OnItemNotify method notifies the ActiveSync service manager that an object has been created, deleted or modified.

Syntax

HRESULT OnItemNotify(
UINT
uCode,
LPSTR lpszProgId,
LPSTR lpszObjType,
HREPLITEM hItem,
ULONG ulFlags
);

At a Glance

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

Parameters

uCode
Code that describes what happened. This parameter can be one of the following values:
RNC_CREATED
Object was created.
RNC_MODIFIED
Object was modified.
RNC_DELETED
Object was deleted.
RNC_SHUTDOWN
The store has been shut down. Windows CE Services should unload the module immediately.
lpszProgId
the programmatic identifier of the store.
lpszObjType
Name of the object type.
hItem
Handle of the concerned item.
ulFlags
Reserved.

Remarks

If the store is capable of detecting changes and deletions as they occur, an ActiveSync service provider should call the IReplNotify::OnItemNotify method immediately after any changes or deletions are detected.

See Also

IReplNotify