Share via


FindFirstUrlCacheEntryEx (Windows Embedded CE 6.0)

1/6/2010

This function begins a filtered enumeration of the Internet cache.

Syntax

HANDLE FindFirstUrlCacheEntryEx( 
  LPCWSTR lpszUrlSearchPattern,
  DWORD dwFlags, 
  DWORD dwFilter, 
  GROUPID GroupId, 
  LPINTERNET_CACHE_ENTRY_INFO lpFirstCacheEntryInfo,
  LPDWORD lpdwFirstCacheEntryInfoBufferSize,
  LPVOID lpGroupAttributes, 
  LPDWORD pcbGroupAttributes, 
  LPVOID lpReserved
);

Parameters

  • lpszUrlSearchPattern
    [in] Address of a string that contains the source name pattern to search for. This can be set to "cookie:" or "visited:" to enumerate the cookies and Uniform Resource Locator (URL) History entries in the cache. If this parameter is NULL, the function uses *.*.
  • dwFlags
    [in] Unsigned long integer value containing the flags controlling the enumeration. No flags are currently implemented. Must be set to zero.
  • dwFilter
    [in] Unsigned long integer value that indicates the cache entry types accepted. The following table shows the cache entry types. This parameter can be any combination of these values.

    Value Description

    COOKIE_CACHE_ENTRY

    Cookie cache entry.

    NORMAL_CACHE_ENTRY

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

    STICKY_CACHE_ENTRY

    Sticky cache entry; exempt from scavenging.

    TRACK_OFFLINE_CACHE_ENTRY

    Not currently implemented.

    TRACK_ONLINE_CACHE_ENTRY

    Not currently implemented.

    URLHISTORY_CACHE_ENTRY

    Visited link cache entry.

  • GroupId
    [in] GROUPID value indicating the cache group to enumerate. Set the value to zero to enumerate all entries not grouped.
  • lpdwFirstCacheEntryInfoBufferSize
    [in, out] Address of an unsigned long integer variable that specifies the lpFirstCacheEntryInfo buffer size, in bytes. When the function returns, the variable contains the number of bytes copied to the buffer, or the required buffer size.
  • lpGroupAttributes
    [out] Reserved. Must be set to NULL.
  • pcbGroupAttributes
    [in, out] Reserved. Must be set to NULL.
  • lpReserved
    [in] Reserved. Must be set to NULL.

Return Value

Returns a valid handle if successful, or NULL otherwise.

Remarks

At the end of the enumeration, the application should call FindCloseUrlCache to close the handle.

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

WinInet Functions
FindCloseUrlCache
FindNextUrlCacheEntry
INTERNET_CACHE_ENTRY_INFO