IReplStore::CompareItem

The Compare method compares specified handles to objects by using entry identifiers, such as file names or record numbers. The handle is a Windows CE HREPLITEM structure.

Syntax

int CompareItem (
  HREPLITEM hItem1,
  HREPLITEM hItem2
);

Parameters

  • hItem1
    [in] Specifies a handle to the first object.
  • hItem2
    [in] Specifies a handle to the second object.

Return Values

  • 0
    The handles represent the same object.
  • 1
    The first object is bigger than the second object.
  • –1
    The first object is smaller than the second object.

Remarks

The ActiveSync service manager helps ensure that the handles specified by hItem1 and hItem2 are returned by one of the following methods:

Requirements

Pocket PC: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: cesync.h
Library: None

See Also

HREPLITEM

IReplStore

IReplStore::FindFirstItem

IReplStore::FindNextItem

IReplStore::IsItemChanged

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.