psf
[in] A pointer to the IShellFolder interface of the object that supports the IContextMenuCB::CallBack interface. The context menu interface is returned on a call to IShellFolder::GetUIObjectOf.
hwndOwner
[in] A handle to the owner of the context menu.
pdtobj
[in] A pointer to an IDataObject that contains information about a menu selection. Implement interface IDataObject, or call SHCreateDataObject for the default implementation.
uMsg
[in] A notification from the Shell's default menu implementation. For example, the default menu implementation calls DFM_MERGECONTEXTMENU to allow the implementer of IContextMenuCB::CallBack to remove, add, or disable context menu items in this callback. Use one of the following notifications.
DFM_MERGECONTEXTMENU
DFM_INVOKECOMMAND
DFM_GETHELPTEXT
DFM_GETHELPTEXTW
DFM_WM_MEASUREITEM
DFM_WM_DRAWITEM
DFM_WM_INITMENUPOPUP
DFM_VALIDATECMD
DFM_INVOKECOMMANDEX
DFM_MAPCOMMANDNAME
DFM_GETDEFSTATICID
DFM_GETVERB
DFM_MERGECONTEXTMENU_BOTTOM
wParam
[in] Data specific to the notification specified in uMsg. See the individual notification page for specific requirements.
lParam
[in] Data specific to the notification specified in uMsg. See the individual notification page for specific requirements.
Return Value
Returns S_OK if successful, or an error value otherwise.