Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This macro provides replication clients with the part of the OID that you should use to track objects. The OID is always unique within a volume, but if an object is deleted, a new object may receive its search identifier, but with a different OID. Changes are tracked per search identifier, not per OID.
GetOidSearchID(ceoid);
Parameters
- ceoid
The OID to retrieve the search identifier from.
Return Values
None.
Remarks
The following code example shows the syntax of the GetOIDSearchID macro.
HREPL hRepl;
REPLCHANGEINFO info;
DWORD dwSearchID;
// Use ReplOpenSync to initialize hRepl
if (ReplFindNextChange(hRepl, &info, FALSE) == TRUE) {
dwSearchID = GetOidSearchID(info.oidChanged);
// Compare the search ID against known IDs in the remote data store
// to see if the object was newly created, deleted, or modified
}
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Pwindbas.h.
See Also
Counter-Based Replication | REPLCHANGEINFO
Send Feedback on this topic to the authors