Commit ae3108e6 authored by Jay Yang's avatar Jay Yang Committed by Alexandre Julliard

include: Add header entries required for SHCreateDefaultContextMenu and CDefFolderMenu_Create2.

parent 2e5e7dbe
......@@ -1701,6 +1701,30 @@ static inline BOOL ILIsEmpty(LPCITEMIDLIST pidl)
return !(pidl && pidl->mkid.cb);
}
#include <pshpack8.h>
typedef struct {
HWND hwnd;
IContextMenuCB *pcmcb;
PCIDLIST_ABSOLUTE pidlFolder;
IShellFolder *psf;
UINT cidl;
PCUITEMID_CHILD_ARRAY apidl;
IUnknown *punkAssociationInfo;
UINT cKeys;
const HKEY *aKeys;
} DEFCONTEXTMENU;
#include <poppack.h>
HRESULT WINAPI SHCreateDefaultContextMenu(const DEFCONTEXTMENU *pdcm, REFIID riid, void **ppv);
typedef HRESULT (CALLBACK *LPFNDFMCALLBACK)(IShellFolder*,HWND,IDataObject*,UINT,WPARAM,LPARAM);
HRESULT WINAPI CDefFolderMenu_Create2(LPCITEMIDLIST pidlFolder, HWND hwnd, UINT cidl,
LPCITEMIDLIST *apidl, IShellFolder *psf,
LPFNDFMCALLBACK lpfn, UINT nKeys, const HKEY *ahkeys,
IContextMenu **ppcm);
#include <poppack.h>
......
......@@ -1586,6 +1586,23 @@ interface IContextMenu3 : IContextMenu2
}
[
object,
uuid(3409e930-5a39-11d1-83fa-00a0c90dc849),
pointer_default(unique),
local
]
interface IContextMenuCB : IUnknown
{
HRESULT CallBack(
[in] IShellFolder *psf,
[in] HWND hwndOwner,
[in] IDataObject *pdtobj,
[in] UINT uMsg,
[in] WPARAM wParam,
[in] LPARAM lParam);
}
/*****************************************************************************
* IShellExecuteHookA interface
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment