DFM_GETVERB message

Sent by the default context menu implementation to get the verb for the given command ID in the context menu.


                DFM_GETVERB 

    wParam = (WPARAM)(int) idCmd,cchMax;

    lParam = (LPARAM)(LPTSTR) pszText;

            

Parameters

idCmd_cchMax [in]

The low-order word of this parameter holds the command ID. The high-order word holds the number of characters in the pszText buffer.

pszText [out]

A pointer to a null-terminated string that contains the verb text.

Remarks

This message is sent to either the callback function or the callback object depending on how the default context menu object is constructed. There are two APIs for its construction, CDefFolderMenu_Create2, SHCreateDefaultContextMenu.

DFM_INVOKECOMMANDEX is an extended version of this message and provides more information to the callback. Use DFM_INVOKECOMMANDEX if the additional information provided by that interface is needed in your implementation.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Shlobj.h
Unicode and ANSI names
DFM_GETVERBW (Unicode) and DFM_GETVERBA (ANSI)