Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|---|---|
|
The method succeeded. |
|
Invalid pointer. |
|
pszItemDisplayName is too small. In this case, the required number of characters is returned in pcchItemDisplayName. |
|
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 |