IRecoverableErrorData::GetItemDisplayName method (winsync.h)

Gets the display name of the item that caused the error.

Syntax

HRESULT GetItemDisplayName(
  [in, out] LPWSTR pszItemDisplayName,
  [in, out] DWORD  *pcchItemDisplayName
);

Parameters

[in, out] pszItemDisplayName

Returns the display name of the item that caused the error.

[in, out] pcchItemDisplayName

Specifies the number of characters in pszItemDisplayName. Returns the required number of characters for pszItemDisplayName when pcchItemDisplayName is too small; otherwise, returns the number of characters written.

Return value

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

Return code Description
S_OK
The method succeeded.
E_POINTER
Invalid pointer.
HRESULT_FROM_WIN32(ERROR_MORE_DATA)
pszItemDisplayName is too small. In this case, the required number of characters is returned in pcchItemDisplayName.
Provider-determined error codes.

Requirements

Requirement Value
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

IRecoverableErrorData Interface