- implement SHCreateDataObject

- fix prototype of CIDLData_CreateFromIDArray
- remove CIDLData_CreateFromIDArray from undocshell.h as its now documented in shlobj.h

svn path=/trunk/; revision=30759
This commit is contained in:
Johannes Anderwald 2007-11-25 20:41:28 +00:00
parent 9ece943c19
commit b344e147b3
3 changed files with 16 additions and 8 deletions

View file

@ -451,3 +451,17 @@ LPDATAOBJECT IDataObject_Constructor(HWND hwndOwner,
TRACE("(%p)->(apidl=%p cidl=%u)\n",dto, apidl, cidl); TRACE("(%p)->(apidl=%p cidl=%u)\n",dto, apidl, cidl);
return (LPDATAOBJECT)dto; return (LPDATAOBJECT)dto;
} }
/*************************************************************************
* SHCreateDataObject [SHELL32.@]
*
*/
HRESULT WINAPI SHCreateDataObject(LPCITEMIDLIST pidlFolder, UINT cidl, LPCITEMIDLIST* apidl, IDataObject *pdtInner, REFIID riid, void **ppv)
{
if (IsEqualIID(riid, &IID_IDataObject))
{
return CIDLData_CreateFromIDArray(pidlFolder, cidl, apidl, ppv);
}
return E_FAIL;
}

View file

@ -1816,9 +1816,9 @@ void WINAPI SHDestroyPropSheetExtArray(HPSXA hpsxa)
*/ */
HRESULT WINAPI CIDLData_CreateFromIDArray( HRESULT WINAPI CIDLData_CreateFromIDArray(
LPCITEMIDLIST pidlFolder, LPCITEMIDLIST pidlFolder,
DWORD cpidlFiles, UINT cpidlFiles,
LPCITEMIDLIST *lppidlFiles, LPCITEMIDLIST *lppidlFiles,
LPDATAOBJECT *ppdataObject) IDataObject **ppdataObject)
{ {
UINT i; UINT i;
HWND hwnd = 0; /*FIXME: who should be hwnd of owner? set to desktop */ HWND hwnd = 0; /*FIXME: who should be hwnd of owner? set to desktop */

View file

@ -350,12 +350,6 @@ BOOL WINAPI DAD_SetDragImageFromListView(
BOOL WINAPI DAD_ShowDragImage(BOOL bShow); BOOL WINAPI DAD_ShowDragImage(BOOL bShow);
HRESULT WINAPI CIDLData_CreateFromIDArray(
LPCITEMIDLIST pidlFolder,
DWORD cpidlFiles,
LPCITEMIDLIST *lppidlFiles,
LPDATAOBJECT *ppdataObject);
/**************************************************************************** /****************************************************************************
* Path Manipulation Routines * Path Manipulation Routines
*/ */