Skip to content

Latest commit

 

History

History
145 lines (112 loc) · 3.79 KB

nc-shlobj_core-lpfndfmcallback.md

File metadata and controls

145 lines (112 loc) · 3.79 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NC:shlobj_core.LPFNDFMCALLBACK
LPFNDFMCALLBACK (shlobj_core.h)
LPFNDFMCALLBACK may be altered or unavailable.
LPFNDFMCALLBACK
LPFNDFMCALLBACK callback
LPFNDFMCALLBACK callback function [Windows Shell]
_win32_LPFNDFMCALLBACK
shell.LPFNDFMCALLBACK
shlobj_core/LPFNDFMCALLBACK
shell\LPFNDFMCALLBACK.htm
shell
a5635196-80de-4db9-9c3a-65f2b241b4a0
12/05/2018
LPFNDFMCALLBACK, LPFNDFMCALLBACK callback, LPFNDFMCALLBACK callback function [Windows Shell], _win32_LPFNDFMCALLBACK, shell.LPFNDFMCALLBACK, shlobj_core/LPFNDFMCALLBACK
shlobj_core.h
Shlobj.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
LPFNDFMCALLBACK
shlobj_core/LPFNDFMCALLBACK
c++
APIRef
kbSyntax
UserDefined
shlobj_core.h
LPFNDFMCALLBACK

LPFNDFMCALLBACK callback function

-description

[LPFNDFMCALLBACK is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Defines the prototype for the callback function that receives messages from the Shell's default context menu implementation.

-parameters

-param psf [in, optional]

Type: IShellFolder*

A pointer to the IShellFolder object the message applies to. This value can be NULL.

-param hwnd [in, optional]

Type: HWND

The handle of the window that contains the view. This value can be NULL.

-param pdtobj [in, optional]

Type: IDataObject*

IDataObject that represents the selection the context menu is based on. This value can be NULL.

-param uMsg

Type: UINT

One of the following notifications.

Notification Usage
DFM_MERGECONTEXTMENU Sent by the default context menu implementation to allow LPFNDFMCALLBACK to add items to the menu.
DFM_INVOKECOMMAND Sent by the default context menu implementation to request LPFNDFMCALLBACK to invoke a menu command.
DFM_GETDEFSTATICID Sent by the default context menu implementation when the default menu command is being created, allowing an alternate choice to be made.

-param wParam

Type: WPARAM

Additional information. See the individual notification pages for specific requirements.

-param lParam

Type: LPARAM

Additional information. See the individual notification pages for specific requirements.

-returns

Type: HRESULT

Returns S_OK if the message was handled, or an error value otherwise, including the following:

Return code Description
E_NOTIMPL
The message was not handled.