mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- halfplement CDefFolderMenu_Create2
svn path=/trunk/; revision=29554
This commit is contained in:
@@ -249,7 +249,7 @@
|
||||
|
||||
660 stdcall -noname FileIconInit(long)
|
||||
680 stdcall IsUserAnAdmin()
|
||||
|
||||
701 stdcall CDefFolderMenu_Create2(ptr ptr long ptr ptr ptr long ptr ptr)
|
||||
714 stdcall @(ptr) SHELL32_714 # PathIsTemporaryW
|
||||
730 stdcall -noname RestartDialogEx(long wstr long long)
|
||||
|
||||
|
||||
@@ -599,3 +599,50 @@ static const IContextMenu2Vtbl cmvt =
|
||||
ISvItemCm_fnGetCommandString,
|
||||
ISvItemCm_fnHandleMenuMsg
|
||||
};
|
||||
|
||||
/*************************************************************************
|
||||
* SHCreateDefaultContextMenu [SHELL32.325] Vista API
|
||||
*
|
||||
*/
|
||||
|
||||
HRESULT SHCreateDefaultContextMenu(
|
||||
const DEFCONTEXTMENU *pdcm,
|
||||
REFIID riid,
|
||||
void **ppv)
|
||||
{
|
||||
|
||||
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*************************************************************************
|
||||
* CDefFolderMenu_Create2 [SHELL32.701]
|
||||
*
|
||||
*/
|
||||
|
||||
INT CDefFolderMenu_Create2(
|
||||
LPCITEMIDLIST pidlFolder,
|
||||
HWND hwnd,
|
||||
UINT cidl,
|
||||
LPCITEMIDLIST *apidl,
|
||||
IShellFolder *psf,
|
||||
LPFNDFMCALLBACK lpfn,
|
||||
UINT nKeys,
|
||||
HKEY *ahkeyClsKeys,
|
||||
IContextMenu **ppcm)
|
||||
{
|
||||
DEFCONTEXTMENU pdcm;
|
||||
|
||||
pdcm.hwnd = hwnd;
|
||||
pdcm.pcmcb = NULL; //FIXME
|
||||
pdcm.pidlFolder = pidlFolder;
|
||||
pdcm.psf = psf;
|
||||
pdcm.cidl = cidl;
|
||||
pdcm.apidl = apidl;
|
||||
pdcm.punkAssociationInfo = NULL;
|
||||
pdcm.cKeys = nKeys;
|
||||
pdcm.aKeys = ahkeyClsKeys;
|
||||
|
||||
return SHCreateDefaultContextMenu(&pdcm, &IID_IContextMenu, (void**)ppcm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user