Windows2000/private/inet/wininet/inc/urlcache.h
2020-09-30 17:12:32 +02:00

98 lines
1.5 KiB
C

#ifndef URLCACHE_H
#define URLCACHE_H
/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
urlcache.h
Abstract:
Urlcache API enhanced and optimized for internal use by wininet.
Author:
Rajeev Dujari (rajeevd) 10-Apr-1997
Revision History:
10-Apr-97 rajeevd
Created
*/
struct CACHE_ENTRY_INFOEX : INTERNET_CACHE_ENTRY_INFO
{
FILETIME ftDownload;
FILETIME ftPostCheck;
};
DWORD
UrlCacheRetrieve
(
IN LPSTR pszUrl,
IN BOOL fRedir,
OUT HANDLE* phStream,
OUT CACHE_ENTRY_INFOEX** ppCEI
);
void UrlCacheFlush (void); // check registry to flush cache
DWORD
UrlCacheCreateFile
(
IN LPCSTR szUrl,
IN OUT LPTSTR szFile,
IN LPTSTR szExt,
IN HANDLE* phfHandle
);
struct AddUrlArg
{
LPCSTR pszUrl;
LPCSTR pszRedirect;
LPCTSTR pszFilePath;
DWORD dwFileSize;
LONGLONG qwExpires;
LONGLONG qwLastMod;
LONGLONG qwPostCheck;
FILETIME ftCreate;
DWORD dwEntryType;
LPCSTR pbHeaders;
DWORD cbHeaders;
LPCSTR pszFileExt;
BOOL fImage;
};
DWORD UrlCacheCommitFile (IN AddUrlArg* pArgs);
DWORD UrlCacheAddLeakFile (IN LPCSTR pszFile);
DWORD UrlCacheSendNotification (IN DWORD dwOp);
BOOL IsExpired
(
CACHE_ENTRY_INFOEX* pInfo,
DWORD dwCacheFlags,
BOOL* pfLaxyUpdate
);
extern const char vszUserNameHeader[4];
#ifdef UNIX
extern "C"
#endif /* UNIX */
BOOL DLLUrlCacheEntry( IN DWORD Reason );
BOOL GetIE5ContentPath( LPSTR szPath);
#endif //URLCACHE.H