Contains information about a context menu command.
typedef struct _CMInvokeCommandInfo {
DWORD cbSize; // sizeof(CMINVOKECOMMANDINFO)
DWORD fMask;
HWND hwnd;
LPCSTR lpVerb;
LPCSTR lpParameters;
LPCSTR lpDirectory;
int nShow;
DWORD dwHotKey;
HANDLE hIcon;
} CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO;
|
CMIC_MASK_HOTKEY |
Specifies that the dwHotKey member is valid. |
|
CMIC_MASK_ICON |
Specifies that the hIcon member is valid. |
|
CMIC_MASK_FLAG_NO_UI |
Prevents the system from displaying user interface elements (for example, error messages) while carrying out a command. |
If the high-order word is not zero, this member is the address of a null-terminated string specifying the language-independent name of the command to carry out. This member is typically a string when a command is being activated by an application. The system provides predefined constant values for the following command strings:
|
Value |
String |
|
CMDSTR_NEWFOLDER |
“NewFolder” |
|
CMDSTR_VIEWDETAILS |
“ViewDetails” |
|
CMDSTR_VIEWLIST |
“ViewList” |
The address of this structure is passed to the IContextMenu::InvokeCommand method.