This method of the IMoniker interface gets the display name, which is a user-readable representation of this moniker.
public String GetDisplayName(IBindCtx pbc, IMoniker pmkToLeft);
The method supports the standard return value E_OUTOFMEMORY, as well as the following:
S_OK -- The display name was successfully supplied.
MK_E_EXCEEDEDDEADLINE -- The binding operation could not be completed within the time limit specified by the bind context's BIND_OPTS structure.
E_NOTIMPL -- There is no display name.
[in] pbc | Pointer to the IBindCtx interface on the bind context to be used in this operation. The bind context caches objects bound during the binding process, contains parameters that apply to all operations using the bind context, and provides the means by which the moniker implementation should retrieve information about its environment. |
[in] pmkToLeft | If the moniker is part of a composite moniker, pointer to the moniker to the left of this moniker. This parameter is primarily used by moniker implementers to enable cooperation between the various components of a composite moniker. Moniker clients should pass NULL. |