4 * Copyright 1999 Ulrich Czekalla for Corel Corporation
5 * Copyright 2002 Huw D M Davies for CodeWeavers
6 * Copyright 2005 Jacek Caban for CodeWeavers
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include "urlmon_main.h"
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
35 const IMonikerVtbl *lpIMonikerVtbl;
39 LPOLESTR URLName; /* URL string identified by this URLmoniker */
42 #define MONIKER_THIS(iface) DEFINE_THIS(URLMoniker, IMoniker, iface)
44 static HRESULT WINAPI URLMoniker_QueryInterface(IMoniker *iface, REFIID riid, void **ppv)
46 URLMoniker *This = MONIKER_THIS(iface);
51 if(IsEqualIID(&IID_IUnknown, riid)) {
52 TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
54 }else if(IsEqualIID(&IID_IPersist, riid)) {
55 TRACE("(%p)->(IID_IPersist %p)\n", This, ppv);
57 }else if(IsEqualIID(&IID_IPersistStream,riid)) {
58 TRACE("(%p)->(IID_IPersistStream %p)\n", This, ppv);
60 }else if(IsEqualIID(&IID_IMoniker, riid)) {
61 TRACE("(%p)->(IID_IMoniker %p)\n", This, ppv);
63 }else if(IsEqualIID(&IID_IAsyncMoniker, riid)) {
64 TRACE("(%p)->(IID_IAsyncMoniker %p)\n", This, ppv);
67 WARN("(%p)->(%s,%p)\n", This, debugstr_guid(riid), ppv);
72 IMoniker_AddRef((IUnknown*)*ppv);
76 static ULONG WINAPI URLMoniker_AddRef(IMoniker *iface)
78 URLMoniker *This = MONIKER_THIS(iface);
79 ULONG refCount = InterlockedIncrement(&This->ref);
81 TRACE("(%p) ref=%u\n",This, refCount);
86 static ULONG WINAPI URLMoniker_Release(IMoniker *iface)
88 URLMoniker *This = MONIKER_THIS(iface);
89 ULONG refCount = InterlockedDecrement(&This->ref);
91 TRACE("(%p) ref=%u\n",This, refCount);
94 heap_free(This->URLName);
97 URLMON_UnlockModule();
103 static HRESULT WINAPI URLMoniker_GetClassID(IMoniker *iface, CLSID *pClassID)
105 URLMoniker *This = MONIKER_THIS(iface);
107 TRACE("(%p,%p)\n", This, pClassID);
112 /* Windows always returns CLSID_StdURLMoniker */
113 *pClassID = CLSID_StdURLMoniker;
117 static HRESULT WINAPI URLMoniker_IsDirty(IMoniker *iface)
119 URLMoniker *This = MONIKER_THIS(iface);
121 TRACE("(%p)\n",This);
123 /* Note that the OLE-provided implementations of the IPersistStream::IsDirty
124 method in the OLE-provided moniker interfaces always return S_FALSE because
125 their internal state never changes. */
129 static HRESULT WINAPI URLMoniker_Load(IMoniker* iface,IStream* pStm)
131 URLMoniker *This = MONIKER_THIS(iface);
136 TRACE("(%p,%p)\n",This,pStm);
143 * Writes a ULONG containing length of unicode string, followed
144 * by that many unicode characters
146 res = IStream_Read(pStm, &size, sizeof(ULONG), &got);
148 if(got == sizeof(ULONG)) {
149 heap_free(This->URLName);
150 This->URLName = heap_alloc(size);
154 res = IStream_Read(pStm, This->URLName, size, NULL);
155 This->URLName[size/sizeof(WCHAR) - 1] = 0;
165 static HRESULT WINAPI URLMoniker_Save(IMoniker *iface, IStream* pStm, BOOL fClearDirty)
167 URLMoniker *This = MONIKER_THIS(iface);
171 TRACE("(%p,%p,%d)\n", This, pStm, fClearDirty);
176 size = (strlenW(This->URLName) + 1)*sizeof(WCHAR);
177 res=IStream_Write(pStm,&size,sizeof(ULONG),NULL);
179 res=IStream_Write(pStm,This->URLName,size,NULL);
185 static HRESULT WINAPI URLMoniker_GetSizeMax(IMoniker* iface, ULARGE_INTEGER *pcbSize)
187 URLMoniker *This = MONIKER_THIS(iface);
189 TRACE("(%p,%p)\n",This,pcbSize);
194 pcbSize->QuadPart = sizeof(ULONG) + ((strlenW(This->URLName)+1) * sizeof(WCHAR));
198 static HRESULT WINAPI URLMoniker_BindToObject(IMoniker *iface, IBindCtx* pbc, IMoniker *pmkToLeft,
199 REFIID riid, void **ppv)
201 URLMoniker *This = MONIKER_THIS(iface);
202 IRunningObjectTable *obj_tbl;
206 TRACE("(%p)->(%p,%p,%s,%p): stub\n", This, pbc, pmkToLeft, debugstr_guid(riid), ppv);
208 hres = IBindCtx_GetRunningObjectTable(pbc, &obj_tbl);
209 if(SUCCEEDED(hres)) {
210 FIXME("use running object table\n");
211 IRunningObjectTable_Release(obj_tbl);
214 hres = CreateUri(This->URLName, Uri_CREATE_FILE_USE_DOS_PATH, 0, &uri);
218 hres = bind_to_object(iface, uri, pbc, riid, ppv);
224 static HRESULT WINAPI URLMoniker_BindToStorage(IMoniker* iface, IBindCtx* pbc,
225 IMoniker* pmkToLeft, REFIID riid, void **ppvObject)
227 URLMoniker *This = MONIKER_THIS(iface);
231 TRACE("(%p)->(%p %p %s %p)\n", This, pbc, pmkToLeft, debugstr_guid(riid), ppvObject);
234 FIXME("Unsupported pmkToLeft\n");
236 hres = CreateUri(This->URLName, Uri_CREATE_FILE_USE_DOS_PATH, 0, &uri);
240 hres = bind_to_storage(uri, pbc, riid, ppvObject);
246 static HRESULT WINAPI URLMoniker_Reduce(IMoniker *iface, IBindCtx *pbc,
247 DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
249 URLMoniker *This = MONIKER_THIS(iface);
251 TRACE("(%p,%p,%d,%p,%p)\n", This, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
256 IMoniker_AddRef(iface);
257 *ppmkReduced = iface;
258 return MK_S_REDUCED_TO_SELF;
261 static HRESULT WINAPI URLMoniker_ComposeWith(IMoniker *iface, IMoniker *pmkRight,
262 BOOL fOnlyIfNotGeneric, IMoniker **ppmkComposite)
264 URLMoniker *This = MONIKER_THIS(iface);
265 FIXME("(%p)->(%p,%d,%p): stub\n",This,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
269 static HRESULT WINAPI URLMoniker_Enum(IMoniker *iface, BOOL fForward, IEnumMoniker **ppenumMoniker)
271 URLMoniker *This = MONIKER_THIS(iface);
273 TRACE("(%p,%d,%p)\n", This, fForward, ppenumMoniker);
278 /* Does not support sub-monikers */
279 *ppenumMoniker = NULL;
283 static HRESULT WINAPI URLMoniker_IsEqual(IMoniker *iface, IMoniker *pmkOtherMoniker)
285 URLMoniker *This = MONIKER_THIS(iface);
291 TRACE("(%p,%p)\n",This, pmkOtherMoniker);
293 if(pmkOtherMoniker==NULL)
296 IMoniker_GetClassID(pmkOtherMoniker,&clsid);
298 if(!IsEqualCLSID(&clsid,&CLSID_StdURLMoniker))
301 res = CreateBindCtx(0,&bind);
306 if(SUCCEEDED(IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&urlPath))) {
307 int result = lstrcmpiW(urlPath, This->URLName);
308 CoTaskMemFree(urlPath);
312 IUnknown_Release(bind);
317 static HRESULT WINAPI URLMoniker_Hash(IMoniker *iface, DWORD *pdwHash)
319 URLMoniker *This = MONIKER_THIS(iface);
320 int h = 0,i,skip,len;
324 TRACE("(%p,%p)\n",This,pdwHash);
333 for(i = len ; i > 0; i--) {
334 h = (h * 37) + val[off++];
337 /* only sample some characters */
339 for(i = len; i > 0; i -= skip, off += skip) {
340 h = (h * 39) + val[off];
347 static HRESULT WINAPI URLMoniker_IsRunning(IMoniker* iface, IBindCtx* pbc,
348 IMoniker *pmkToLeft, IMoniker *pmkNewlyRunning)
350 URLMoniker *This = MONIKER_THIS(iface);
351 FIXME("(%p)->(%p,%p,%p): stub\n",This,pbc,pmkToLeft,pmkNewlyRunning);
355 static HRESULT WINAPI URLMoniker_GetTimeOfLastChange(IMoniker *iface,
356 IBindCtx *pbc, IMoniker *pmkToLeft, FILETIME *pFileTime)
358 URLMoniker *This = MONIKER_THIS(iface);
359 FIXME("(%p)->(%p,%p,%p): stub\n", This, pbc, pmkToLeft, pFileTime);
363 static HRESULT WINAPI URLMoniker_Inverse(IMoniker *iface, IMoniker **ppmk)
365 URLMoniker *This = MONIKER_THIS(iface);
366 TRACE("(%p,%p)\n",This,ppmk);
367 return MK_E_NOINVERSE;
370 static HRESULT WINAPI URLMoniker_CommonPrefixWith(IMoniker *iface, IMoniker *pmkOther, IMoniker **ppmkPrefix)
372 URLMoniker *This = MONIKER_THIS(iface);
373 FIXME("(%p)->(%p,%p): stub\n",This,pmkOther,ppmkPrefix);
377 static HRESULT WINAPI URLMoniker_RelativePathTo(IMoniker *iface, IMoniker *pmOther, IMoniker **ppmkRelPath)
379 URLMoniker *This = MONIKER_THIS(iface);
380 FIXME("(%p)->(%p,%p): stub\n",This,pmOther,ppmkRelPath);
384 static HRESULT WINAPI URLMoniker_GetDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft,
385 LPOLESTR *ppszDisplayName)
387 URLMoniker *This = MONIKER_THIS(iface);
390 TRACE("(%p,%p,%p,%p)\n", This, pbc, pmkToLeft, ppszDisplayName);
396 return E_OUTOFMEMORY;
398 /* FIXME: If this is a partial URL, try and get a URL moniker from SZ_URLCONTEXT in the bind context,
399 then look at pmkToLeft to try and complete the URL
401 len = lstrlenW(This->URLName)+1;
402 *ppszDisplayName = CoTaskMemAlloc(len*sizeof(WCHAR));
403 if(!*ppszDisplayName)
404 return E_OUTOFMEMORY;
405 lstrcpyW(*ppszDisplayName, This->URLName);
409 static HRESULT WINAPI URLMoniker_ParseDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft,
410 LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
412 URLMoniker *This = MONIKER_THIS(iface);
413 FIXME("(%p)->(%p,%p,%p,%p,%p): stub\n",This,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
417 static HRESULT WINAPI URLMoniker_IsSystemMoniker(IMoniker *iface, DWORD *pwdMksys)
419 URLMoniker *This = MONIKER_THIS(iface);
421 TRACE("(%p,%p)\n",This,pwdMksys);
426 *pwdMksys = MKSYS_URLMONIKER;
430 static const IMonikerVtbl URLMonikerVtbl =
432 URLMoniker_QueryInterface,
435 URLMoniker_GetClassID,
439 URLMoniker_GetSizeMax,
440 URLMoniker_BindToObject,
441 URLMoniker_BindToStorage,
443 URLMoniker_ComposeWith,
447 URLMoniker_IsRunning,
448 URLMoniker_GetTimeOfLastChange,
450 URLMoniker_CommonPrefixWith,
451 URLMoniker_RelativePathTo,
452 URLMoniker_GetDisplayName,
453 URLMoniker_ParseDisplayName,
454 URLMoniker_IsSystemMoniker
457 static URLMoniker *alloc_moniker(void)
461 ret = heap_alloc(sizeof(URLMoniker));
465 ret->lpIMonikerVtbl = &URLMonikerVtbl;
472 static HRESULT URLMoniker_Init(URLMoniker *This, LPCOLESTR lpszLeftURLName, LPCOLESTR lpszURLName)
477 TRACE("(%p,%s,%s)\n",This,debugstr_w(lpszLeftURLName),debugstr_w(lpszURLName));
479 This->URLName = heap_alloc(INTERNET_MAX_URL_LENGTH*sizeof(WCHAR));
482 hres = CoInternetCombineUrl(lpszLeftURLName, lpszURLName, URL_FILE_USE_PATHURL,
483 This->URLName, INTERNET_MAX_URL_LENGTH, &sizeStr, 0);
485 hres = CoInternetParseUrl(lpszURLName, PARSE_CANONICALIZE, URL_FILE_USE_PATHURL,
486 This->URLName, INTERNET_MAX_URL_LENGTH, &sizeStr, 0);
489 heap_free(This->URLName);
495 if(sizeStr != INTERNET_MAX_URL_LENGTH)
496 This->URLName = heap_realloc(This->URLName, (sizeStr+1)*sizeof(WCHAR));
498 TRACE("URLName = %s\n", debugstr_w(This->URLName));
503 HRESULT StdURLMoniker_Construct(IUnknown *outer, void **ppv)
505 TRACE("(%p %p)\n", outer, ppv);
507 *ppv = alloc_moniker();
508 return *ppv ? S_OK : E_OUTOFMEMORY;
511 /***********************************************************************
512 * CreateURLMonikerEx (URLMON.@)
514 * Create a url moniker.
517 * pmkContext [I] Context
518 * szURL [I] Url to create the moniker for
519 * ppmk [O] Destination for created moniker.
523 * Success: S_OK. ppmk contains the created IMoniker object.
524 * Failure: MK_E_SYNTAX if szURL is not a valid url, or
525 * E_OUTOFMEMORY if memory allocation fails.
527 HRESULT WINAPI CreateURLMonikerEx(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk, DWORD dwFlags)
531 LPOLESTR lefturl = NULL;
533 TRACE("(%p, %s, %p, %08x)\n", pmkContext, debugstr_w(szURL), ppmk, dwFlags);
541 if (dwFlags & URL_MK_UNIFORM) FIXME("ignoring flag URL_MK_UNIFORM\n");
543 if(!(obj = alloc_moniker()))
544 return E_OUTOFMEMORY;
549 IMoniker_IsSystemMoniker(pmkContext, &dwMksys);
550 if(dwMksys == MKSYS_URLMONIKER && SUCCEEDED(CreateBindCtx(0, &bind))) {
551 IMoniker_GetDisplayName(pmkContext, bind, NULL, &lefturl);
552 TRACE("lefturl = %s\n", debugstr_w(lefturl));
553 IBindCtx_Release(bind);
557 hres = URLMoniker_Init(obj, lefturl, szURL);
558 CoTaskMemFree(lefturl);
560 hres = URLMoniker_QueryInterface((IMoniker*)obj, &IID_IMoniker, (void**)ppmk);
561 IMoniker_Release((IMoniker*)obj);
565 /**********************************************************************
566 * CreateURLMoniker (URLMON.@)
568 * Create a url moniker.
571 * pmkContext [I] Context
572 * szURL [I] Url to create the moniker for
573 * ppmk [O] Destination for created moniker.
576 * Success: S_OK. ppmk contains the created IMoniker object.
577 * Failure: MK_E_SYNTAX if szURL is not a valid url, or
578 * E_OUTOFMEMORY if memory allocation fails.
580 HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk)
582 return CreateURLMonikerEx(pmkContext, szURL, ppmk, URL_MK_LEGACY);
585 /***********************************************************************
586 * IsAsyncMoniker (URLMON.@)
588 HRESULT WINAPI IsAsyncMoniker(IMoniker *pmk)
592 TRACE("(%p)\n", pmk);
595 if(SUCCEEDED(IMoniker_QueryInterface(pmk, &IID_IAsyncMoniker, (void**)&am))) {
596 IUnknown_Release(am);
602 /***********************************************************************
603 * BindAsyncMoniker (URLMON.@)
605 * Bind a bind status callback to an asynchronous URL Moniker.
608 * pmk [I] Moniker object to bind status callback to
609 * grfOpt [I] Options, seems not used
610 * pbsc [I] Status callback to bind
611 * iidResult [I] Interface to return
612 * ppvResult [O] Resulting asynchronous moniker object
616 * Failure: E_INVALIDARG, if any argument is invalid, or
617 * E_OUTOFMEMORY if memory allocation fails.
619 HRESULT WINAPI BindAsyncMoniker(IMoniker *pmk, DWORD grfOpt, IBindStatusCallback *pbsc, REFIID iidResult, LPVOID *ppvResult)
622 HRESULT hr = E_INVALIDARG;
624 TRACE("(%p %08x %p %s %p)\n", pmk, grfOpt, pbsc, debugstr_guid(iidResult), ppvResult);
626 if (pmk && ppvResult)
630 hr = CreateAsyncBindCtx(0, pbsc, NULL, &pbc);
633 hr = IMoniker_BindToObject(pmk, pbc, NULL, iidResult, ppvResult);
634 IBindCtx_Release(pbc);
640 /***********************************************************************
641 * MkParseDisplayNameEx (URLMON.@)
643 HRESULT WINAPI MkParseDisplayNameEx(IBindCtx *pbc, LPCWSTR szDisplayName, ULONG *pchEaten, LPMONIKER *ppmk)
645 TRACE("(%p %s %p %p)\n", pbc, debugstr_w(szDisplayName), pchEaten, ppmk);
647 if (!pbc || !szDisplayName || !*szDisplayName || !pchEaten || !ppmk)
650 if(is_registered_protocol(szDisplayName)) {
653 hres = CreateURLMoniker(NULL, szDisplayName, ppmk);
654 if(SUCCEEDED(hres)) {
655 *pchEaten = strlenW(szDisplayName);
660 return MkParseDisplayName(pbc, szDisplayName, pchEaten, ppmk);
664 /***********************************************************************
665 * URLDownloadToCacheFileA (URLMON.@)
667 HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN lpUnkCaller, LPCSTR szURL, LPSTR szFileName,
668 DWORD dwBufLength, DWORD dwReserved, LPBINDSTATUSCALLBACK pBSC)
670 LPWSTR url = NULL, file_name = NULL;
674 TRACE("(%p %s %p %d %d %p)\n", lpUnkCaller, debugstr_a(szURL), szFileName,
675 dwBufLength, dwReserved, pBSC);
678 len = MultiByteToWideChar(CP_ACP, 0, szURL, -1, NULL, 0);
679 url = heap_alloc(len*sizeof(WCHAR));
680 MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, len);
684 file_name = heap_alloc(dwBufLength*sizeof(WCHAR));
686 hres = URLDownloadToCacheFileW(lpUnkCaller, url, file_name, dwBufLength*sizeof(WCHAR),
689 if(SUCCEEDED(hres) && file_name)
690 WideCharToMultiByte(CP_ACP, 0, file_name, -1, szFileName, dwBufLength, NULL, NULL);
693 heap_free(file_name);
698 /***********************************************************************
699 * URLDownloadToCacheFileW (URLMON.@)
701 HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN lpUnkCaller, LPCWSTR szURL, LPWSTR szFileName,
702 DWORD dwBufLength, DWORD dwReserved, LPBINDSTATUSCALLBACK pBSC)
704 WCHAR cache_path[MAX_PATH + 1];
705 FILETIME expire, modified;
709 static WCHAR header[] = {
710 'H','T','T','P','/','1','.','0',' ','2','0','0',' ',
711 'O','K','\\','r','\\','n','\\','r','\\','n',0
714 TRACE("(%p, %s, %p, %d, %d, %p)\n", lpUnkCaller, debugstr_w(szURL),
715 szFileName, dwBufLength, dwReserved, pBSC);
717 if (!szURL || !szFileName)
720 ext = PathFindExtensionW(szURL);
722 if (!CreateUrlCacheEntryW(szURL, 0, ext, cache_path, 0))
725 hr = URLDownloadToFileW(lpUnkCaller, szURL, cache_path, 0, pBSC);
729 expire.dwHighDateTime = 0;
730 expire.dwLowDateTime = 0;
731 modified.dwHighDateTime = 0;
732 modified.dwLowDateTime = 0;
734 if (!CommitUrlCacheEntryW(szURL, cache_path, expire, modified, NORMAL_CACHE_ENTRY,
735 header, sizeof(header), NULL, NULL))
738 if (strlenW(cache_path) > dwBufLength)
739 return E_OUTOFMEMORY;
741 lstrcpyW(szFileName, cache_path);
746 /***********************************************************************
747 * HlinkSimpleNavigateToMoniker (URLMON.@)
749 HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker *pmkTarget,
750 LPCWSTR szLocation, LPCWSTR szTargetFrameName, IUnknown *pUnk,
751 IBindCtx *pbc, IBindStatusCallback *pbsc, DWORD grfHLNF, DWORD dwReserved)
758 hres = IMoniker_GetDisplayName(pmkTarget, pbc, 0, &target);
760 hres = HlinkSimpleNavigateToString( target, szLocation, szTargetFrameName,
761 pUnk, pbc, pbsc, grfHLNF, dwReserved );
762 CoTaskMemFree(target);
767 /***********************************************************************
768 * HlinkSimpleNavigateToString (URLMON.@)
770 HRESULT WINAPI HlinkSimpleNavigateToString( LPCWSTR szTarget,
771 LPCWSTR szLocation, LPCWSTR szTargetFrameName, IUnknown *pUnk,
772 IBindCtx *pbc, IBindStatusCallback *pbsc, DWORD grfHLNF, DWORD dwReserved)
774 FIXME("%s %s %s %p %p %p %u %u partial stub\n", debugstr_w( szTarget ), debugstr_w( szLocation ),
775 debugstr_w( szTargetFrameName ), pUnk, pbc, pbsc, grfHLNF, dwReserved);
777 /* undocumented: 0 means HLNF_OPENINNEWWINDOW*/
778 if (!grfHLNF) grfHLNF = HLNF_OPENINNEWWINDOW;
780 if (grfHLNF == HLNF_OPENINNEWWINDOW)
782 SHELLEXECUTEINFOW sei;
783 static const WCHAR openW[] = { 'o', 'p', 'e', 'n', 0 };
785 memset(&sei, 0, sizeof(sei));
786 sei.cbSize = sizeof(sei);
788 sei.nShow = SW_SHOWNORMAL;
789 sei.fMask = SEE_MASK_FLAG_NO_UI | SEE_MASK_NO_CONSOLE;
790 sei.lpFile = szTarget;
792 if (ShellExecuteExW(&sei)) return S_OK;
798 /***********************************************************************
799 * HlinkNavigateString (URLMON.@)
801 HRESULT WINAPI HlinkNavigateString( IUnknown *pUnk, LPCWSTR szTarget )
803 TRACE("%p %s\n", pUnk, debugstr_w( szTarget ) );
804 return HlinkSimpleNavigateToString(
805 szTarget, NULL, NULL, pUnk, NULL, NULL, 0, 0 );
808 /***********************************************************************
809 * GetSoftwareUpdateInfo (URLMON.@)
811 HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi )
813 FIXME("%s %p\n", debugstr_w(szDistUnit), psdi );
817 /***********************************************************************
818 * AsyncInstallDistributionUnit (URLMON.@)
820 HRESULT WINAPI AsyncInstallDistributionUnit( LPCWSTR szDistUnit, LPCWSTR szTYPE,
821 LPCWSTR szExt, DWORD dwFileVersionMS, DWORD dwFileVersionLS,
822 LPCWSTR szURL, IBindCtx *pbc, LPVOID pvReserved, DWORD flags )