IShellMenuCallback::CallbackSM method (shobjidl_core.h)
Receives messages from a menu band object.
Syntax
HRESULT CallbackSM(
[in, out] LPSMDATA psmd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
);
Parameters
[in, out] psmd
Type: LPSMDATA
A pointer to a SMDATA structure that contains information about the menu.
uMsg
Type: UINT
A message ID. This will be one of the SMC_XXX values. See Shell Messages and Notifications for a complete list.
wParam
Type: WPARAM
A WPARAM value that contains additional information. See the specific SMC_XXX message reference for details.
lParam
Type: LPARAM
An LPARAM value that contains additional information. See the specific SMC_XXX message reference for details.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
Library | Shell32.lib |
DLL | Shell32.dll (version 4.0 or later) |