Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method compares the specified handles using entry identifiers, such as file names or record numbers.

Syntax

int CompareItem(
  HREPLITEM 
hItem1,
  HREPLITEM 
hItem2
);

Parameters

hItem1

[in] Handle to the first object. The ActiveSync manager guarantees this handle is one of those returned by FindFirstItemor FindNextItem.

hItem2

[in] Handle to the second object. The ActiveSync manager guarantees this handle is one of those returned by FindFirstItemor FindNextItem.

Return Value

The following table shows the possible return values for this method.

Value Description

0

These two 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.

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