2002-01-29 18:12:28 +00:00
|
|
|
/*
|
|
|
|
* Wininet - Url Cache functions
|
|
|
|
*
|
2002-06-21 23:59:49 +00:00
|
|
|
* Copyright 2001,2002 CodeWeavers
|
2002-01-29 18:12:28 +00:00
|
|
|
*
|
|
|
|
* Eric Kohl
|
2002-06-21 23:59:49 +00:00
|
|
|
* Aric Stewart
|
2002-01-29 18:12:28 +00:00
|
|
|
*
|
2002-03-09 23:29:33 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2002-01-29 18:12:28 +00:00
|
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wininet.h"
|
|
|
|
#include "winerror.h"
|
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
2002-01-29 18:12:28 +00:00
|
|
|
#include "internet.h"
|
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(wininet);
|
2002-01-29 18:12:28 +00:00
|
|
|
|
2002-09-27 22:05:23 +00:00
|
|
|
INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(DWORD dwFlags, LPVOID
|
|
|
|
lpReserved)
|
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-01-29 18:12:28 +00:00
|
|
|
|
|
|
|
INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryA(LPCSTR lpszUrlSearchPattern,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo, LPDWORD lpdwFirstCacheEntryInfoBufferSize)
|
|
|
|
{
|
2002-06-21 23:59:49 +00:00
|
|
|
FIXME("STUB\n");
|
2002-01-29 18:12:28 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryW(LPCWSTR lpszUrlSearchPattern,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo, LPDWORD lpdwFirstCacheEntryInfoBufferSize)
|
|
|
|
{
|
2002-06-21 23:59:49 +00:00
|
|
|
FIXME("STUB\n");
|
2002-01-29 18:12:28 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2002-06-21 23:59:49 +00:00
|
|
|
|
|
|
|
BOOL WINAPI RetrieveUrlCacheEntryFileA (LPCSTR lpszUrlName,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo, LPDWORD
|
|
|
|
lpdwCacheEntryInfoBufferSize, DWORD dwReserved)
|
|
|
|
{
|
|
|
|
FIXME("STUB\n");
|
|
|
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI DeleteUrlCacheEntry(LPCSTR lpszUrlName)
|
|
|
|
{
|
|
|
|
FIXME("STUB (%s)\n",lpszUrlName);
|
|
|
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-09-27 22:05:23 +00:00
|
|
|
|
|
|
|
BOOL WINAPI DeleteUrlCacheGroup(GROUPID GroupId, DWORD dwFlags, LPVOID lpReserved)
|
|
|
|
{
|
|
|
|
FIXME("STUB\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI SetUrlCacheEntryGroup(LPCSTR lpszUrlName, DWORD dwFlags,
|
|
|
|
GROUPID GroupId, LPBYTE pbGroupAttributes, DWORD cbGroupAttributes,
|
|
|
|
LPVOID lpReserved)
|
|
|
|
{
|
|
|
|
FIXME("STUB\n");
|
|
|
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-11-13 04:08:26 +00:00
|
|
|
|
2002-12-05 19:54:40 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* CommitUrlCacheEntryA (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI CommitUrlCacheEntryA(LPCSTR lpszUrl, LPCSTR lpszLocalName,
|
|
|
|
FILETIME ExpireTime, FILETIME lastModified, DWORD cacheEntryType,
|
|
|
|
LPBYTE lpHeaderInfo, DWORD headerSize, LPCSTR fileExtension,
|
2003-03-31 23:58:27 +00:00
|
|
|
LPCSTR originalUrl)
|
2002-12-05 19:54:40 +00:00
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheEntryInfoA (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI GetUrlCacheEntryInfoA(LPCSTR lpszUrl,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntry,
|
|
|
|
LPDWORD lpCacheEntrySize)
|
|
|
|
{
|
|
|
|
FIXME("(%s) stub\n",lpszUrl);
|
|
|
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2003-04-27 20:35:38 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheEntryInfoW (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrl,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntry,
|
|
|
|
LPDWORD lpCacheEntrySize)
|
|
|
|
{
|
|
|
|
FIXME("(%s) stub\n",debugstr_w(lpszUrl));
|
|
|
|
SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2002-11-13 04:08:26 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheEntryInfoExA (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI GetUrlCacheEntryInfoExA(
|
|
|
|
LPCSTR lpszUrl,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
|
|
|
|
LPDWORD lpdwCacheEntryInfoBufSize,
|
|
|
|
LPSTR lpszReserved,
|
|
|
|
LPDWORD lpdwReserved,
|
|
|
|
LPVOID lpReserved,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME(" url=%s, flags=%ld\n",lpszUrl,dwFlags);
|
|
|
|
INTERNET_SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-12-05 19:54:40 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheEntryInfoExW (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI GetUrlCacheEntryInfoExW(
|
|
|
|
LPCWSTR lpszUrl,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
|
|
|
|
LPDWORD lpdwCacheEntryInfoBufSize,
|
|
|
|
LPWSTR lpszReserved,
|
|
|
|
LPDWORD lpdwReserved,
|
|
|
|
LPVOID lpReserved,
|
|
|
|
DWORD dwFlags)
|
|
|
|
{
|
|
|
|
FIXME(" url=%s, flags=%ld\n",debugstr_w(lpszUrl),dwFlags);
|
|
|
|
INTERNET_SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2003-04-27 20:35:38 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheConfigInfoA (WININET.@)
|
|
|
|
*
|
|
|
|
* CacheInfo is some CACHE_CONFIG_INFO structure, with no MS info found by google
|
|
|
|
*/
|
2003-06-16 19:40:27 +00:00
|
|
|
BOOL WINAPI GetUrlCacheConfigInfoA(LPDWORD CacheInfo, LPDWORD size, DWORD bitmask)
|
2003-04-27 20:35:38 +00:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheConfigInfoW (WININET.@)
|
|
|
|
*/
|
2003-06-16 19:40:27 +00:00
|
|
|
BOOL WINAPI GetUrlCacheConfigInfoW(LPDWORD CacheInfo, LPDWORD size, DWORD bitmask)
|
2003-04-27 20:35:38 +00:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2003-06-16 19:40:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetUrlCacheEntryInfoA (WININET.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetUrlCacheEntryInfoA(LPCSTR lpszUrlName, LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo, DWORD dwFieldControl)
|
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* SetUrlCacheEntryInfoW (WININET.@)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI SetUrlCacheEntryInfoW(LPCWSTR lpszUrlName, LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo, DWORD dwFieldControl)
|
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
2003-07-19 03:08:05 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* CreateUrlCacheEntryA (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI CreateUrlCacheEntryA(
|
|
|
|
LPCSTR lpszUrlName,
|
|
|
|
DWORD dwExpectedFileSize,
|
|
|
|
LPCSTR lpszFileExtension,
|
|
|
|
LPSTR lpszFileName,
|
|
|
|
DWORD dwReserved)
|
|
|
|
{
|
|
|
|
FIXME("url=%s, size=%ld, ext=%s: stub\n",debugstr_a(lpszUrlName),
|
|
|
|
dwExpectedFileSize, debugstr_a(lpszFileExtension));
|
|
|
|
INTERNET_SetLastError(ERROR_FILE_NOT_FOUND);
|
|
|
|
return FALSE;
|
|
|
|
}
|