Поделиться через


GetOIDSearchID (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

REPLCHANGEINFO

Concepts

Database Replication Macros