Compartilhar via


GetOIDSearchID (Compact 2013)

3/26/2014

This macro provides replication clients with the part of the object identifier (OID) used to track objects. The OID is always unique in a volume, but if an object is deleted, a new object can receive its search identifier, but with a different OID. Changes are tracked per search identifier, not per OID.

Syntax

GetOidSearchID(ceoid);

Parameters

  • ceoid
    OID from which to retrieve the search identifier.

Return Value

None.

Remarks

The following code example shows the syntax of this 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

Header

pwindbas.h

See Also

Reference

Database Replication Macros
REPLCHANGEINFO