IReplNotify::OnItemNotify

This method notifies the ActiveSync service manager that an object has been created, deleted, or modified.

At a Glance

Header file: Cesync.h
Windows CE versions: 2.0 and later

Syntax

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

Parameters

uCode

Code that describes what happened. It is one of the following values:

Value Description
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

Long pointer to the null-terminated string that contains the programmatic identifier of the store.

lpszObjType

Long pointer to the null-terminated string that contains the name of the object type.

hItem

Handle to the concerned item.

ulFlags

Reserved.

Return Values

An appropriate HRESULT value is returned.

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