ICommDlgBrowser2::GetDefaultMenuText method

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

Syntax


HRESULT GetDefaultMenuText(
   IShellView *pshv,
   WCHAR      *pszText,
   int        cchMax
);

Parameters

pshv

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

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

 

 

Show: