Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6affb1f1
Commit
6affb1f1
authored
Nov 10, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added URLDownloadToCacheFile[AW] stub.
parent
3ba70220
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
4 deletions
+51
-4
umon.c
dlls/urlmon/umon.c
+45
-0
urlmon.spec
dlls/urlmon/urlmon.spec
+2
-2
urlmon.idl
include/urlmon.idl
+4
-2
No files found.
dlls/urlmon/umon.c
View file @
6affb1f1
...
...
@@ -1609,6 +1609,51 @@ HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller,
}
/***********************************************************************
* URLDownloadToCacheFileA (URLMON.@)
*/
HRESULT
WINAPI
URLDownloadToCacheFileA
(
LPUNKNOWN
lpUnkCaller
,
LPCSTR
szURL
,
LPSTR
szFileName
,
DWORD
dwBufLength
,
DWORD
dwReserved
,
LPBINDSTATUSCALLBACK
pBSC
)
{
LPWSTR
url
=
NULL
,
file_name
=
NULL
;
int
len
;
HRESULT
hres
;
TRACE
(
"(%p %s %p %ld %ld %p)
\n
"
,
lpUnkCaller
,
debugstr_a
(
szURL
),
szFileName
,
dwBufLength
,
dwReserved
,
pBSC
);
if
(
szURL
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szURL
,
-
1
,
NULL
,
0
);
url
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
szURL
,
-
1
,
url
,
-
1
);
}
if
(
szFileName
)
file_name
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dwBufLength
*
sizeof
(
WCHAR
));
hres
=
URLDownloadToCacheFileW
(
lpUnkCaller
,
url
,
file_name
,
dwBufLength
*
sizeof
(
WCHAR
),
dwReserved
,
pBSC
);
if
(
SUCCEEDED
(
hres
)
&&
file_name
)
WideCharToMultiByte
(
CP_ACP
,
0
,
file_name
,
-
1
,
szFileName
,
dwBufLength
,
NULL
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
url
);
HeapFree
(
GetProcessHeap
(),
0
,
file_name
);
return
hres
;
}
/***********************************************************************
* URLDownloadToCacheFileW (URLMON.@)
*/
HRESULT
WINAPI
URLDownloadToCacheFileW
(
LPUNKNOWN
lpUnkCaller
,
LPCWSTR
szURL
,
LPWSTR
szFileName
,
DWORD
dwBufLength
,
DWORD
dwReserved
,
LPBINDSTATUSCALLBACK
pBSC
)
{
FIXME
(
"(%p %s %p %ld %ld %p)
\n
"
,
lpUnkCaller
,
debugstr_w
(
szURL
),
szFileName
,
dwBufLength
,
dwReserved
,
pBSC
);
return
E_NOTIMPL
;
}
/***********************************************************************
* HlinkSimpleNavigateToString (URLMON.@)
*/
HRESULT
WINAPI
HlinkSimpleNavigateToString
(
LPCWSTR
szTarget
,
...
...
dlls/urlmon/urlmon.spec
View file @
6affb1f1
...
...
@@ -64,8 +64,8 @@
@ stdcall RevokeFormatEnumerator(ptr ptr)
@ stub SetSoftwareUpdateAdvertisementState
@ stub URLDownloadA
@ st
ub URLDownloadToCacheFileA
@ st
ub URLDownloadToCacheFileW
@ st
dcall URLDownloadToCacheFileA(ptr str str long ptr)
@ st
dcall URLDownloadToCacheFileW(ptr wstr wstr long ptr)
@ stdcall URLDownloadToFileA(ptr str str long ptr)
@ stdcall URLDownloadToFileW(ptr wstr wstr long ptr)
@ stub URLDownloadW
...
...
include/urlmon.idl
View file @
6affb1f1
...
...
@@ -1166,8 +1166,10 @@ cpp_quote("HRESULT WINAPI CoGetClassObjectFromURL(REFCLSID, LPCWSTR, DWORD, DWOR
cpp_quote
(
"HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk);"
)
cpp_quote
(
"HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved);"
)
cpp_quote
(
"HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD);"
)
cpp_quote
(
"HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN pCaller, LPCSTR szURL, LPCSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);"
)
cpp_quote
(
"HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller, LPCWSTR szURL, LPCWSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB);"
)
cpp_quote
(
"HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN,LPCSTR,LPCSTR,DWORD,LPBINDSTATUSCALLBACK);"
)
cpp_quote
(
"HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN,LPCWSTR,LPCWSTR,DWORD,LPBINDSTATUSCALLBACK);"
)
cpp_quote
(
"HRESULT WINAPI URLDownloadToCacheFileA(LPUNKNOWN,LPCSTR,LPSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);"
)
cpp_quote
(
"HRESULT WINAPI URLDownloadToCacheFileW(LPUNKNOWN,LPCWSTR,LPWSTR,DWORD,DWORD,LPBINDSTATUSCALLBACK);"
)
cpp_quote
(
"HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD);"
)
cpp_quote
(
"HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**);"
)
cpp_quote
(
"HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk);"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment