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;
205 TRACE("(%p)->(%p,%p,%s,%p): stub\n", This, pbc, pmkToLeft, debugstr_guid(riid), ppv);
207 hres = IBindCtx_GetRunningObjectTable(pbc, &obj_tbl);
208 if(SUCCEEDED(hres)) {
209 FIXME("use running object table\n");
210 IRunningObjectTable_Release(obj_tbl);
213 return bind_to_object(iface, This->URLName, pbc, riid, ppv);
216 static HRESULT WINAPI URLMoniker_BindToStorage(IMoniker* iface, IBindCtx* pbc,
217 IMoniker* pmkToLeft, REFIID riid, void **ppvObject)
219 URLMoniker *This = MONIKER_THIS(iface);
221 TRACE("(%p)->(%p %p %s %p)\n", This, pbc, pmkToLeft, debugstr_guid(riid), ppvObject);
224 FIXME("Unsupported pmkToLeft\n");
226 return bind_to_storage(This->URLName, pbc, riid, ppvObject);
229 static HRESULT WINAPI URLMoniker_Reduce(IMoniker *iface, IBindCtx *pbc,
230 DWORD dwReduceHowFar, IMoniker **ppmkToLeft, IMoniker **ppmkReduced)
232 URLMoniker *This = MONIKER_THIS(iface);
234 TRACE("(%p,%p,%d,%p,%p)\n", This, pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced);
239 IMoniker_AddRef(iface);
240 *ppmkReduced = iface;
241 return MK_S_REDUCED_TO_SELF;
244 static HRESULT WINAPI URLMoniker_ComposeWith(IMoniker *iface, IMoniker *pmkRight,
245 BOOL fOnlyIfNotGeneric, IMoniker **ppmkComposite)
247 URLMoniker *This = MONIKER_THIS(iface);
248 FIXME("(%p)->(%p,%d,%p): stub\n",This,pmkRight,fOnlyIfNotGeneric,ppmkComposite);
252 static HRESULT WINAPI URLMoniker_Enum(IMoniker *iface, BOOL fForward, IEnumMoniker **ppenumMoniker)
254 URLMoniker *This = MONIKER_THIS(iface);
256 TRACE("(%p,%d,%p)\n", This, fForward, ppenumMoniker);
261 /* Does not support sub-monikers */
262 *ppenumMoniker = NULL;
266 static HRESULT WINAPI URLMoniker_IsEqual(IMoniker *iface, IMoniker *pmkOtherMoniker)
268 URLMoniker *This = MONIKER_THIS(iface);
274 TRACE("(%p,%p)\n",This, pmkOtherMoniker);
276 if(pmkOtherMoniker==NULL)
279 IMoniker_GetClassID(pmkOtherMoniker,&clsid);
281 if(!IsEqualCLSID(&clsid,&CLSID_StdURLMoniker))
284 res = CreateBindCtx(0,&bind);
289 if(SUCCEEDED(IMoniker_GetDisplayName(pmkOtherMoniker,bind,NULL,&urlPath))) {
290 int result = lstrcmpiW(urlPath, This->URLName);
291 CoTaskMemFree(urlPath);
295 IUnknown_Release(bind);
300 static HRESULT WINAPI URLMoniker_Hash(IMoniker *iface, DWORD *pdwHash)
302 URLMoniker *This = MONIKER_THIS(iface);
303 int h = 0,i,skip,len;
307 TRACE("(%p,%p)\n",This,pdwHash);
316 for(i = len ; i > 0; i--) {
317 h = (h * 37) + val[off++];
320 /* only sample some characters */
322 for(i = len; i > 0; i -= skip, off += skip) {
323 h = (h * 39) + val[off];
330 static HRESULT WINAPI URLMoniker_IsRunning(IMoniker* iface, IBindCtx* pbc,
331 IMoniker *pmkToLeft, IMoniker *pmkNewlyRunning)
333 URLMoniker *This = MONIKER_THIS(iface);
334 FIXME("(%p)->(%p,%p,%p): stub\n",This,pbc,pmkToLeft,pmkNewlyRunning);
338 static HRESULT WINAPI URLMoniker_GetTimeOfLastChange(IMoniker *iface,
339 IBindCtx *pbc, IMoniker *pmkToLeft, FILETIME *pFileTime)
341 URLMoniker *This = MONIKER_THIS(iface);
342 FIXME("(%p)->(%p,%p,%p): stub\n", This, pbc, pmkToLeft, pFileTime);
346 static HRESULT WINAPI URLMoniker_Inverse(IMoniker *iface, IMoniker **ppmk)
348 URLMoniker *This = MONIKER_THIS(iface);
349 TRACE("(%p,%p)\n",This,ppmk);
350 return MK_E_NOINVERSE;
353 static HRESULT WINAPI URLMoniker_CommonPrefixWith(IMoniker *iface, IMoniker *pmkOther, IMoniker **ppmkPrefix)
355 URLMoniker *This = MONIKER_THIS(iface);
356 FIXME("(%p)->(%p,%p): stub\n",This,pmkOther,ppmkPrefix);
360 static HRESULT WINAPI URLMoniker_RelativePathTo(IMoniker *iface, IMoniker *pmOther, IMoniker **ppmkRelPath)
362 URLMoniker *This = MONIKER_THIS(iface);
363 FIXME("(%p)->(%p,%p): stub\n",This,pmOther,ppmkRelPath);
367 static HRESULT WINAPI URLMoniker_GetDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft,
368 LPOLESTR *ppszDisplayName)
370 URLMoniker *This = MONIKER_THIS(iface);
373 TRACE("(%p,%p,%p,%p)\n", This, pbc, pmkToLeft, ppszDisplayName);
379 return E_OUTOFMEMORY;
381 /* FIXME: If this is a partial URL, try and get a URL moniker from SZ_URLCONTEXT in the bind context,
382 then look at pmkToLeft to try and complete the URL
384 len = lstrlenW(This->URLName)+1;
385 *ppszDisplayName = CoTaskMemAlloc(len*sizeof(WCHAR));
386 if(!*ppszDisplayName)
387 return E_OUTOFMEMORY;
388 lstrcpyW(*ppszDisplayName, This->URLName);
392 static HRESULT WINAPI URLMoniker_ParseDisplayName(IMoniker *iface, IBindCtx *pbc, IMoniker *pmkToLeft,
393 LPOLESTR pszDisplayName, ULONG *pchEaten, IMoniker **ppmkOut)
395 URLMoniker *This = MONIKER_THIS(iface);
396 FIXME("(%p)->(%p,%p,%p,%p,%p): stub\n",This,pbc,pmkToLeft,pszDisplayName,pchEaten,ppmkOut);
400 static HRESULT WINAPI URLMoniker_IsSystemMoniker(IMoniker *iface, DWORD *pwdMksys)
402 URLMoniker *This = MONIKER_THIS(iface);
404 TRACE("(%p,%p)\n",This,pwdMksys);
409 *pwdMksys = MKSYS_URLMONIKER;
413 static const IMonikerVtbl URLMonikerVtbl =
415 URLMoniker_QueryInterface,
418 URLMoniker_GetClassID,
422 URLMoniker_GetSizeMax,
423 URLMoniker_BindToObject,
424 URLMoniker_BindToStorage,
426 URLMoniker_ComposeWith,
430 URLMoniker_IsRunning,
431 URLMoniker_GetTimeOfLastChange,
433 URLMoniker_CommonPrefixWith,
434 URLMoniker_RelativePathTo,
435 URLMoniker_GetDisplayName,
436 URLMoniker_ParseDisplayName,
437 URLMoniker_IsSystemMoniker
440 static URLMoniker *alloc_moniker(void)
444 ret = heap_alloc(sizeof(URLMoniker));
448 ret->lpIMonikerVtbl = &URLMonikerVtbl;
455 static HRESULT URLMoniker_Init(URLMoniker *This, LPCOLESTR lpszLeftURLName, LPCOLESTR lpszURLName)
460 TRACE("(%p,%s,%s)\n",This,debugstr_w(lpszLeftURLName),debugstr_w(lpszURLName));
462 This->URLName = heap_alloc(INTERNET_MAX_URL_LENGTH*sizeof(WCHAR));
465 hres = CoInternetCombineUrl(lpszLeftURLName, lpszURLName, URL_FILE_USE_PATHURL,
466 This->URLName, INTERNET_MAX_URL_LENGTH, &sizeStr, 0);
468 hres = CoInternetParseUrl(lpszURLName, PARSE_CANONICALIZE, URL_FILE_USE_PATHURL,
469 This->URLName, INTERNET_MAX_URL_LENGTH, &sizeStr, 0);
472 heap_free(This->URLName);
478 if(sizeStr != INTERNET_MAX_URL_LENGTH)
479 This->URLName = heap_realloc(This->URLName, (sizeStr+1)*sizeof(WCHAR));
481 TRACE("URLName = %s\n", debugstr_w(This->URLName));
486 HRESULT StdURLMoniker_Construct(IUnknown *outer, void **ppv)
488 TRACE("(%p %p)\n", outer, ppv);
490 *ppv = alloc_moniker();
491 return *ppv ? S_OK : E_OUTOFMEMORY;
494 /***********************************************************************
495 * CreateURLMonikerEx (URLMON.@)
497 * Create a url moniker.
500 * pmkContext [I] Context
501 * szURL [I] Url to create the moniker for
502 * ppmk [O] Destination for created moniker.
506 * Success: S_OK. ppmk contains the created IMoniker object.
507 * Failure: MK_E_SYNTAX if szURL is not a valid url, or
508 * E_OUTOFMEMORY if memory allocation fails.
510 HRESULT WINAPI CreateURLMonikerEx(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk, DWORD dwFlags)
514 LPOLESTR lefturl = NULL;
516 TRACE("(%p, %s, %p, %08x)\n", pmkContext, debugstr_w(szURL), ppmk, dwFlags);
524 if (dwFlags & URL_MK_UNIFORM) FIXME("ignoring flag URL_MK_UNIFORM\n");
526 if(!(obj = alloc_moniker()))
527 return E_OUTOFMEMORY;
532 IMoniker_IsSystemMoniker(pmkContext, &dwMksys);
533 if(dwMksys == MKSYS_URLMONIKER && SUCCEEDED(CreateBindCtx(0, &bind))) {
534 IMoniker_GetDisplayName(pmkContext, bind, NULL, &lefturl);
535 TRACE("lefturl = %s\n", debugstr_w(lefturl));
536 IBindCtx_Release(bind);
540 hres = URLMoniker_Init(obj, lefturl, szURL);
541 CoTaskMemFree(lefturl);
543 hres = URLMoniker_QueryInterface((IMoniker*)obj, &IID_IMoniker, (void**)ppmk);
544 IMoniker_Release((IMoniker*)obj);
548 /**********************************************************************
549 * CreateURLMoniker (URLMON.@)
551 * Create a url moniker.
554 * pmkContext [I] Context
555 * szURL [I] Url to create the moniker for
556 * ppmk [O] Destination for created moniker.
559 * Success: S_OK. ppmk contains the created IMoniker object.
560 * Failure: MK_E_SYNTAX if szURL is not a valid url, or
561 * E_OUTOFMEMORY if memory allocation fails.
563 HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk)
565 return CreateURLMonikerEx(pmkContext, szURL, ppmk, URL_MK_LEGACY);
568 /***********************************************************************
569 * IsAsyncMoniker (URLMON.@)
571 HRESULT WINAPI IsAsyncMoniker(IMoniker *pmk)
575 TRACE("(%p)\n", pmk);
578 if(SUCCEEDED(IMoniker_QueryInterface(pmk, &IID_IAsyncMoniker, (void**)&am))) {
579 IUnknown_Release(am);
585 /***********************************************************************
586 * BindAsyncMoniker (URLMON.@)
588 * Bind a bind status callback to an asynchronous URL Moniker.
591 * pmk [I] Moniker object to bind status callback to
592 * grfOpt [I] Options, seems not used
593 * pbsc [I] Status callback to bind
594 * iidResult [I] Interface to return
595 * ppvResult [O] Resulting asynchronous moniker object
599 * Failure: E_INVALIDARG, if any argument is invalid, or
600 * E_OUTOFMEMORY if memory allocation fails.
602 HRESULT WINAPI BindAsyncMoniker(IMoniker *pmk, DWORD grfOpt, IBindStatusCallback *pbsc, REFIID iidResult, LPVOID *ppvResult)
605 HRESULT hr = E_INVALIDARG;
607 TRACE("(%p %08x %p %s %p)\n", pmk, grfOpt, pbsc, debugstr_guid(iidResult), ppvResult);
609 if (pmk && ppvResult)
613 hr = CreateAsyncBindCtx(0, pbsc, NULL, &pbc);
616 hr = IMoniker_BindToObject(pmk, pbc, NULL, iidResult, ppvResult);
617 IBindCtx_Release(pbc);
623 /***********************************************************************
624 * MkParseDisplayNameEx (URLMON.@)
626 HRESULT WINAPI MkParseDisplayNameEx(IBindCtx *pbc, LPCWSTR szDisplayName, ULONG *pchEaten, LPMONIKER *ppmk)
628 TRACE("(%p %s %p %p)\n", pbc, debugstr_w(szDisplayName), pchEaten, ppmk);
630 if (!pbc || !szDisplayName || !*szDisplayName || !pchEaten || !ppmk)
633 if(is_registered_protocol(szDisplayName)) {
636 hres = CreateURLMoniker(NULL, szDisplayName, ppmk);
637 if(SUCCEEDED(hres)) {
638 *pchEaten = strlenW(szDisplayName);
643 return MkParseDisplayName(pbc, szDisplayName, pchEaten, ppmk);
647 /***********************************************************************
648 * URLDownloadToCacheFileA (URLMON.@)
650 HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN lpUnkCaller, LPCSTR szURL, LPSTR szFileName,
651 DWORD dwBufLength, DWORD dwReserved, LPBINDSTATUSCALLBACK pBSC)
653 LPWSTR url = NULL, file_name = NULL;
657 TRACE("(%p %s %p %d %d %p)\n", lpUnkCaller, debugstr_a(szURL), szFileName,
658 dwBufLength, dwReserved, pBSC);
661 len = MultiByteToWideChar(CP_ACP, 0, szURL, -1, NULL, 0);
662 url = heap_alloc(len*sizeof(WCHAR));
663 MultiByteToWideChar(CP_ACP, 0, szURL, -1, url, len);
667 file_name = heap_alloc(dwBufLength*sizeof(WCHAR));
669 hres = URLDownloadToCacheFileW(lpUnkCaller, url, file_name, dwBufLength*sizeof(WCHAR),
672 if(SUCCEEDED(hres) && file_name)
673 WideCharToMultiByte(CP_ACP, 0, file_name, -1, szFileName, dwBufLength, NULL, NULL);
676 heap_free(file_name);
681 /***********************************************************************
682 * URLDownloadToCacheFileW (URLMON.@)
684 HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN lpUnkCaller, LPCWSTR szURL, LPWSTR szFileName,
685 DWORD dwBufLength, DWORD dwReserved, LPBINDSTATUSCALLBACK pBSC)
687 WCHAR cache_path[MAX_PATH + 1];
688 FILETIME expire, modified;
692 static WCHAR header[] = {
693 'H','T','T','P','/','1','.','0',' ','2','0','0',' ',
694 'O','K','\\','r','\\','n','\\','r','\\','n',0
697 TRACE("(%p, %s, %p, %d, %d, %p)\n", lpUnkCaller, debugstr_w(szURL),
698 szFileName, dwBufLength, dwReserved, pBSC);
700 if (!szURL || !szFileName)
703 ext = PathFindExtensionW(szURL);
705 if (!CreateUrlCacheEntryW(szURL, 0, ext, cache_path, 0))
708 hr = URLDownloadToFileW(lpUnkCaller, szURL, cache_path, 0, pBSC);
712 expire.dwHighDateTime = 0;
713 expire.dwLowDateTime = 0;
714 modified.dwHighDateTime = 0;
715 modified.dwLowDateTime = 0;
717 if (!CommitUrlCacheEntryW(szURL, cache_path, expire, modified, NORMAL_CACHE_ENTRY,
718 header, sizeof(header), NULL, NULL))
721 if (strlenW(cache_path) > dwBufLength)
722 return E_OUTOFMEMORY;
724 lstrcpyW(szFileName, cache_path);
729 /***********************************************************************
730 * HlinkSimpleNavigateToMoniker (URLMON.@)
732 HRESULT WINAPI HlinkSimpleNavigateToMoniker(IMoniker *pmkTarget,
733 LPCWSTR szLocation, LPCWSTR szTargetFrameName, IUnknown *pUnk,
734 IBindCtx *pbc, IBindStatusCallback *pbsc, DWORD grfHLNF, DWORD dwReserved)
741 hres = IMoniker_GetDisplayName(pmkTarget, pbc, 0, &target);
743 hres = HlinkSimpleNavigateToString( target, szLocation, szTargetFrameName,
744 pUnk, pbc, pbsc, grfHLNF, dwReserved );
745 CoTaskMemFree(target);
750 /***********************************************************************
751 * HlinkSimpleNavigateToString (URLMON.@)
753 HRESULT WINAPI HlinkSimpleNavigateToString( LPCWSTR szTarget,
754 LPCWSTR szLocation, LPCWSTR szTargetFrameName, IUnknown *pUnk,
755 IBindCtx *pbc, IBindStatusCallback *pbsc, DWORD grfHLNF, DWORD dwReserved)
757 FIXME("%s %s %s %p %p %p %u %u partial stub\n", debugstr_w( szTarget ), debugstr_w( szLocation ),
758 debugstr_w( szTargetFrameName ), pUnk, pbc, pbsc, grfHLNF, dwReserved);
760 /* undocumented: 0 means HLNF_OPENINNEWWINDOW*/
761 if (!grfHLNF) grfHLNF = HLNF_OPENINNEWWINDOW;
763 if (grfHLNF == HLNF_OPENINNEWWINDOW)
765 SHELLEXECUTEINFOW sei;
766 static const WCHAR openW[] = { 'o', 'p', 'e', 'n', 0 };
768 memset(&sei, 0, sizeof(sei));
769 sei.cbSize = sizeof(sei);
771 sei.nShow = SW_SHOWNORMAL;
772 sei.fMask = SEE_MASK_FLAG_NO_UI | SEE_MASK_NO_CONSOLE;
773 sei.lpFile = szTarget;
775 if (ShellExecuteExW(&sei)) return S_OK;
781 /***********************************************************************
782 * HlinkNavigateString (URLMON.@)
784 HRESULT WINAPI HlinkNavigateString( IUnknown *pUnk, LPCWSTR szTarget )
786 TRACE("%p %s\n", pUnk, debugstr_w( szTarget ) );
787 return HlinkSimpleNavigateToString(
788 szTarget, NULL, NULL, pUnk, NULL, NULL, 0, 0 );
791 /***********************************************************************
792 * GetSoftwareUpdateInfo (URLMON.@)
794 HRESULT WINAPI GetSoftwareUpdateInfo( LPCWSTR szDistUnit, LPSOFTDISTINFO psdi )
796 FIXME("%s %p\n", debugstr_w(szDistUnit), psdi );
800 /***********************************************************************
801 * AsyncInstallDistributionUnit (URLMON.@)
803 HRESULT WINAPI AsyncInstallDistributionUnit( LPCWSTR szDistUnit, LPCWSTR szTYPE,
804 LPCWSTR szExt, DWORD dwFileVersionMS, DWORD dwFileVersionLS,
805 LPCWSTR szURL, IBindCtx *pbc, LPVOID pvReserved, DWORD flags )