hlink: Added HlinkParseDisplayName implementation.

This commit is contained in:
Jacek Caban 2008-01-29 00:21:19 +01:00 committed by Alexandre Julliard
parent e888e88694
commit 24853242a8
2 changed files with 26 additions and 1 deletions

View File

@ -11,7 +11,7 @@
14 stub HlinkResolveMonikerForData 14 stub HlinkResolveMonikerForData
15 stub HlinkResolveStringForData 15 stub HlinkResolveStringForData
16 stub OleSaveToStreamEx 16 stub OleSaveToStreamEx
18 stub HlinkParseDisplayName 18 stdcall HlinkParseDisplayName(ptr wstr long ptr ptr)
20 stdcall HlinkQueryCreateFromData(ptr) 20 stdcall HlinkQueryCreateFromData(ptr)
21 stub HlinkSetSpecialReference 21 stub HlinkSetSpecialReference
22 stdcall HlinkGetSpecialReference(long ptr) 22 stdcall HlinkGetSpecialReference(long ptr)

View File

@ -322,6 +322,31 @@ HRESULT WINAPI HlinkUpdateStackItem(IHlinkFrame *pihlframe, IHlinkBrowseContext
return E_NOTIMPL; return E_NOTIMPL;
} }
HRESULT WINAPI HlinkParseDisplayName(LPBC pibc, LPCWSTR pwzDisplayName, BOOL fNoForceAbs,
ULONG *pcchEaten, IMoniker **ppimk)
{
HRESULT hres;
TRACE("(%p %s %x %p %p)\n", pibc, debugstr_w(pwzDisplayName), fNoForceAbs, pcchEaten, ppimk);
if(fNoForceAbs)
FIXME("Unsupported fNoForceAbs\n");
hres = MkParseDisplayNameEx(pibc, pwzDisplayName, pcchEaten, ppimk);
if(SUCCEEDED(hres))
return hres;
hres = MkParseDisplayName(pibc, pwzDisplayName, pcchEaten, ppimk);
if(SUCCEEDED(hres))
return hres;
hres = CreateFileMoniker(pwzDisplayName, ppimk);
if(SUCCEEDED(hres))
*pcchEaten = strlenW(pwzDisplayName);
return hres;
}
static HRESULT WINAPI HLinkCF_fnQueryInterface ( LPCLASSFACTORY iface, static HRESULT WINAPI HLinkCF_fnQueryInterface ( LPCLASSFACTORY iface,
REFIID riid, LPVOID *ppvObj) REFIID riid, LPVOID *ppvObj)
{ {