ICommDlgBrowser2::GetDefaultMenuText method (shobjidl_core.h)

Called by the Shell view to get the default shortcut menu text.

Syntax

HRESULT GetDefaultMenuText(
  IShellView *ppshv,
  LPWSTR     pszText,
  int        cchMax
);

Parameters

ppshv

Type: IShellView*

A pointer to the IShellView interface of the hosted view.

pszText

Type: WCHAR*

A pointer to a buffer that is used by the Shell browser to return the default shortcut menu text.

cchMax

Type: int

The size of the pszText buffer, in characters. It should be at least the maximum allowable path length (MAX_PATH) in size.

Return value

Type: HRESULT

Returns S_OK if a new default shortcut menu text was returned in pshv. If S_FALSE is returned, use the normal default text. Otherwise, returns a standard COM error value.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)
DLL Shell32.dll (version 5.0 or later)