Share via


IReplNotify::OnItemNotify

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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

Parameters

  • uCode
    [in] 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. ActiveSync should unload the module immediately.

  • lpszProgId
    [in] Long pointer to the null-terminated string that contains the programmatic identifier of the store.
  • lpszObjType
    [in] Long pointer to the null-terminated string that contains the name of the object type.
  • hItem
    [in] Handle to the concerned item.
  • ulFlags
    [in] Reserved.

Return Value

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.

Requirements

Header cesync.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IReplNotify