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 two store identifiers to determine if they are equal.

Syntax

HRESULT CompareStoreIDs(
  LPBYTE 
lpbID1,
  UINT 
cbID1,
  LPBYTE 
lpbID2,
  UINT 
cbID2
);

Parameters

lpbID1

[in] Long pointer to the first store identifier.

cbID1

[in] Size of the first store identifier.

lpbID2

[in] Long pointer to the second store identifier.

cbID2

[in] Size of the second store identifier.

Return Value

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

Value Description

0

These store identifiers represent the same store.

1

The first store is bigger than the second store.

-1

The first store is smaller than the second store.

Remarks

Replication calls CompareStoreIDswhen it needs to know if the current store is different from the one accessed during the last synchronization. The store identifiers passed are always obtained from the STOREINFOstructure set by the IReplStore::GetStoreInfomethod.

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

IReplStore::GetStoreInfo

Other Resources

STOREINFO (COM)