ISyncMgrEvent::GetItemID method (syncmgr.h)

Gets the ID of the item for which the event was logged.

Syntax

HRESULT GetItemID(
  [out] LPWSTR *ppszItemID
);

Parameters

[out] ppszItemID

Type: LPWSTR*

Contains a pointer to an item ID as a Unicode string.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The item ID can have a maximum length of MAX_SYNCMGR_ID, including the terminating null character. The event is expected to allocate the string buffer using CoTaskMemAlloc, which Sync Center uses to deallocate the string buffer.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header syncmgr.h