IPerPropertyBrowsing::GetDisplayString method (ocidl.h)
Retrieves a text string describing the specified property.
Syntax
HRESULT GetDisplayString(
[in] DISPID dispID,
[out] BSTR *pBstr
);
Parameters
[in] dispID
The dispatch identifier of the property whose display name is requested.
[out] pBstr
A pointer to a variable that receives the display name for the property identified in dispID. The string is allocated by this method using SysAllocString. Upon return, the string is the responsibility of the caller, which must free it with SysFreeString when it is no longer needed.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following values.
Return code | Description |
---|---|
|
The display name was successfully returned. |
|
The object does not provide display names for individual properties. The caller has the recourse to check the object's type information for the text name of the object in this case. |
|
The address in pbstr is not valid. For example, it may be NULL. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |