Export (0) Print
Expand All

IShellMenuCallback::CallbackSM method

Receives messages from a menu band object.

Syntax


HRESULT CallbackSM(
  [in, out] LPSMDATA psmd,
            UINT     uMsg,
            WPARAM   wParam,
            LPARAM   lParam
);

Parameters

psmd [in, out]

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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

Library

Shell32.lib

DLL

Shell32.dll (version 4.0 or later)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft