implemented SHGetRealIDL()

svn path=/trunk/; revision=7475
This commit is contained in:
Martin Fuchs 2004-01-06 11:45:37 +00:00
parent 18045c4c66
commit b9107ed69d

View file

@ -687,6 +687,7 @@ LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
/* TRACE(pidl,"--new pidl=%p\n",pidlNew);*/ /* TRACE(pidl,"--new pidl=%p\n",pidlNew);*/
return pidlNew; return pidlNew;
} }
/************************************************************************* /*************************************************************************
* SHGetRealIDL [SHELL32.98] * SHGetRealIDL [SHELL32.98]
* *
@ -694,10 +695,21 @@ LPITEMIDLIST WINAPI ILCombine(LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2)
*/ */
HRESULT WINAPI SHGetRealIDL(LPSHELLFOLDER lpsf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST *pidlReal) HRESULT WINAPI SHGetRealIDL(LPSHELLFOLDER lpsf, LPCITEMIDLIST pidlSimple, LPITEMIDLIST *pidlReal)
{ {
FIXME("sf=%p pidlSimple=%p pidlReal=%p\n", lpsf, pidlSimple, pidlReal); LPITEMIDLIST parentpidl;
HRESULT hr;
pdump (pidlSimple); TRACE("sf=%p pidlSimple=%p pidlReal=%p\n", lpsf, pidlSimple, pidlReal);
return 0;
hr = IShellFolder_ParseDisplayName(lpsf, 0, NULL, NULL, NULL, &parentpidl, NULL);
if (SUCCEEDED(hr)) {
*pidlReal = ILCombine(parentpidl, pidlSimple);
if (!*pidlReal)
hr = E_OUTOFMEMORY;
}
return S_OK;
} }
/************************************************************************* /*************************************************************************