IReplStore::CompareStoreIDs

The IReplStore::CompareStoreIDs method compares two store identifiers to determine if they are equal.

Syntax

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

At a Glance

Header file: Cesync.h
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

lpbID1
Pointer to the first store identifier.
cbID1
Size of the first store identifier.
lpbID2
Pointer to the second store identifier.
cbID2
Size of the second store identifier.

Return Values

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 will call the IReplStore::CompareStoreIDs method whenever it needs to know if the current store is different than the one it last replicated with. The store identifiers passed are always obtained from the STOREINFO structure set by the IReplStore::GetStoreInfo method.

See Also

IReplStore::GetStoreInfo, STOREINFO