This method compares two store identifiers to determine if they are equal.
At a Glance
Header file: | Cesync.h |
Windows CE versions: | 2.0 and later |
Syntax
HRESULT CompareStoreIDs( LPBYTE lpbID1, UINT cbID1,
LPBYTE lpbID2, UINT cbID2 );
Parameters
lpbID1
Long pointer to the first store identifier.
cbID1
Size of the first store identifier.
lpbID2
Long pointer to the second store identifier.
cbID2
Size of the second store identifier.
Return Values
One of the values described in the following table is returned.
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 the IReplStore::CompareStoreIDs method whenever it needs to know if the current store is different from 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