ISyncChange::GetRootItemId method (winsync.h)

Gets the ID of the changed item.


HRESULT GetRootItemId(
  [in, out] BYTE  *pbRootItemId,
  [in, out] DWORD *pcbIdSize


[in, out] pbRootItemId

Returns the ID of the item.

[in, out] pcbIdSize

Specifies the number of bytes in pbRootItemId. Returns the number of bytes required to retrieve the ID when pbRootItemId is too small, or returns the number of bytes written.

Return value

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
The method succeeded.
Invalid pointer.
pbRootItemId is too small. In this case, the required number of bytes is returned in pcbIdSize.


Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winsync.h

See also

ISyncChange Interface