2002-01-29 19:12:28 +01:00
|
|
|
/*
|
|
|
|
* Wininet - Url Cache functions
|
|
|
|
*
|
2002-06-22 01:59:49 +02:00
|
|
|
* Copyright 2001,2002 CodeWeavers
|
2002-01-29 19:12:28 +01:00
|
|
|
*
|
|
|
|
* Eric Kohl
|
2002-06-22 01:59:49 +02:00
|
|
|
* Aric Stewart
|
2002-01-29 19:12:28 +01:00
|
|
|
*
|
2002-03-10 00:29:33 +01: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 19:12:28 +01: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-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2002-01-29 19:12:28 +01:00
|
|
|
#include "internet.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(wininet);
|
2002-01-29 19:12:28 +01:00
|
|
|
|
2002-09-28 00:05:23 +02:00
|
|
|
INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(DWORD dwFlags, LPVOID
|
|
|
|
lpReserved)
|
|
|
|
{
|
|
|
|
FIXME("stub\n");
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-01-29 19:12:28 +01:00
|
|
|
|
|
|
|
INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryA(LPCSTR lpszUrlSearchPattern,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo, LPDWORD lpdwFirstCacheEntryInfoBufferSize)
|
|
|
|
{
|
2002-06-22 01:59:49 +02:00
|
|
|
FIXME("STUB\n");
|
2002-01-29 19:12:28 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryW(LPCWSTR lpszUrlSearchPattern,
|
|
|
|
LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo, LPDWORD lpdwFirstCacheEntryInfoBufferSize)
|
|
|
|
{
|
2002-06-22 01:59:49 +02:00
|
|
|
FIXME("STUB\n");
|
2002-01-29 19:12:28 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2002-06-22 01:59:49 +02: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-28 00:05:23 +02: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 05:08:26 +01:00
|
|
|
|
2002-12-05 20:54:40 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* CommitUrlCacheEntryA (WININET.@)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
BOOL WINAPI CommitUrlCacheEntryA(LPCSTR lpszUrl, LPCSTR lpszLocalName,
|
|
|
|
FILETIME ExpireTime, FILETIME lastModified, DWORD cacheEntryType,
|
|
|
|
LPBYTE lpHeaderInfo, DWORD headerSize, LPCSTR fileExtension,
|
2003-04-01 01:58:27 +02:00
|
|
|
LPCSTR originalUrl)
|
2002-12-05 20:54:40 +01: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 22:35:38 +02: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 05:08:26 +01: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 20:54:40 +01: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 22:35:38 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheConfigInfoA (WININET.@)
|
|
|
|
*
|
|
|
|
* CacheInfo is some CACHE_CONFIG_INFO structure, with no MS info found by google
|
|
|
|
*/
|
2003-06-16 21:40:27 +02:00
|
|
|
BOOL WINAPI GetUrlCacheConfigInfoA(LPDWORD CacheInfo, LPDWORD size, DWORD bitmask)
|
2003-04-27 22:35:38 +02:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* GetUrlCacheConfigInfoW (WININET.@)
|
|
|
|
*/
|
2003-06-16 21:40:27 +02:00
|
|
|
BOOL WINAPI GetUrlCacheConfigInfoW(LPDWORD CacheInfo, LPDWORD size, DWORD bitmask)
|
2003-04-27 22:35:38 +02:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
|
|
|
|
return FALSE;
|
|
|
|
}
|
2003-06-16 21:40:27 +02: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;
|
|
|
|
}
|