INTERNET_CACHE_ENTRY_INFO Structure

Contains information about an entry in the Internet cache.

Syntax

C++
typedef struct _INTERNET_CACHE_ENTRY_INFO  {
  DWORD    dwStructSize;
  LPTSTR   lpszSourceUrlName;
  LPTSTR   lpszLocalFileName;
  DWORD    CacheEntryType;
  DWORD    dwUseCount;
  DWORD    dwHitRate;
  DWORD    dwSizeLow;
  DWORD    dwSizeHigh;
  FILETIME LastModifiedTime;
  FILETIME ExpireTime;
  FILETIME LastAccessTime;
  FILETIME LastSyncTime;
  LPBYTE   lpHeaderInfo;
  DWORD    dwHeaderInfoSize;
  LPTSTR   lpszFileExtension;
  union {
    DWORD dwReserved;
    DWORD dwExemptDelta;
  } ;
}INTERNET_CACHE_ENTRY_INFO, *LPINTERNET_CACHE_ENTRY_INFO;

Members

dwStructSize

Size of this structure, in bytes. This value can be used to help determine the version of the cache system.

lpszSourceUrlName

Pointer to a null-terminated string that contains the URL name. The string occupies the memory area at the end of this structure.

lpszLocalFileName

Pointer to a null-terminated string that contains the local file name. The string occupies the memory area at the end of this structure.

CacheEntryType

A bitmask indicating the type of cache entry and its properties. The cache entry types include: history entries (URLHISTORY_CACHE_ENTRY), cookie entries (COOKIE_CACHE_ENTRY), and normal cached content (NORMAL_CACHE_ENTRY).

This member can be zero or more of the following property flags, and cache type flags listed below.

ValueMeaning
EDITED_CACHE_ENTRY

Cache entry file that has been edited externally. This cache entry type is exempt from scavenging.

SPARSE_CACHE_ENTRY

Partial response cache entry.

STICKY_CACHE_ENTRY

Sticky cache entry that is exempt from scavenging for the amount of time specified by dwExemptDelta. The default value set by CommitUrlCacheEntry is one day.

TRACK_OFFLINE_CACHE_ENTRY

Not currently implemented.

TRACK_ONLINE_CACHE_ENTRY

Not currently implemented.

 

The following list contains the cache type flags.

ValueMeaning
COOKIE_CACHE_ENTRY

Cookie cache entry.

NORMAL_CACHE_ENTRY

Normal cache entry; can be deleted to recover space for new entries.

URLHISTORY_CACHE_ENTRY

Visited link cache entry.

 

dwUseCount

Current user count of the cache entry.

dwHitRate

Number of times the cache entry was retrieved.

dwSizeLow

Low-order portion of the file size, in TCHARs.

dwSizeHigh

High-order portion of the file size, in TCHARs.

LastModifiedTime

FILETIME structure that contains the last modified time of this URL, in Greenwich mean time format.

ExpireTime

FILETIME structure that contains the expiration time of this file, in Greenwich mean time format.

LastAccessTime

FILETIME structure that contains the last accessed time, in Greenwich mean time format.

LastSyncTime

FILETIME structure that contains the last time the cache was synchronized.

lpHeaderInfo

Pointer to a buffer that contains the header information. The buffer occupies the memory at the end of this structure.

dwHeaderInfoSize

Size of the lpHeaderInfo buffer, in TCHARs.

lpszFileExtension

Pointer to a string that contains the file name extension used to retrieve the data as a file. The string occupies the memory area at the end of this structure.

dwReserved
Reserved. Must be zero.
dwExemptDelta

Exemption time from the last accessed time, in seconds.

Remarks

There is no cache entry size limit, so applications that need to enumerate the cache must be prepared to allocate variable-sized buffers. For more information, see Using Buffers.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
VersionInternet Explorer 3.0 or later
HeaderWininet.h
Unicode and ANSI namesINTERNET_CACHE_ENTRY_INFOW (Unicode) and INTERNET_CACHE_ENTRY_INFOA (ANSI)

See Also

FindFirstUrlCacheEntry
FindFirstUrlCacheEntryEx
FindNextUrlCacheEntry
FindNextUrlCacheEntryEx
GetUrlCacheEntryInfo
GetUrlCacheEntryInfoEx
SetUrlCacheEntryInfo

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Community Content

RCW8892
vb.net syntax
<StructLayout(LayoutKind.Sequential)> Public Structure INTERNET_CACHE_ENTRY_INFO
Public dwStructSize As UInt32
Public lpszSourceUrlName As String
Public lpszLocalFileName As String
Public CacheEntryType As UInt32
Public dwUseCount As UInt32
Public dwHitRate As UInt32
Public dwSizeLow As UInt32
Public dwSizeHigh As UInt32
Public LastModifiedTime As FILETIME
Public ExpireTime As FILETIME
Public LastAccessTime As FILETIME
Public LastSyncTime As FILETIME
Public lpHeaderInfo As IntPtr
Public dwHeaderInfoSize As UInt32
Public lpszFileExtension As String
Public dwExemptDelta As UInt32
End Structure
Tags : vb.net syntax

RCW8892
C# syntax
[StructLayout(LayoutKind.Sequential)]
public struct INTERNET_CACHE_ENTRY_INFO
{
    public UInt32 dwStructSize;
    public string lpszSourceUrlName;
    public string lpszLocalFileName;
    public UInt32 CacheEntryType;
    public UInt32 dwUseCount;
    public UInt32 dwHitRate;
    public UInt32 dwSizeLow;
    public UInt32 dwSizeHigh;
    public FILETIME LastModifiedTime;
    public FILETIME ExpireTime;
    public FILETIME LastAccessTime;
    public FILETIME LastSyncTime;
    public IntPtr lpHeaderInfo;
    public UInt32 dwHeaderInfoSize;
    public string lpszFileExtension;
    public UInt32 dwExemptDelta;
}
Tags : c# syntax

Page view tracker