FindFirstUrlCacheEntry

This function begins the enumeration of the Internet cache.

HANDLE FindFirstUrlCacheEntry( 
LPCTSTR lpszUrlSearchPattern,
LPINTERNET_CACHE_ENTRY_INFO lpFirstCacheEntryInfo,
LPDWORD lpdwFirstCacheEntryInfoBufferSize);

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 *.*.
  • lpFirstCacheEntryInfo
    [out] Address of an INTERNET_CACHE_ENTRY_INFO structure.
  • 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.

Return Values

If successful, this function returns a handle that the application can use in the FindNextUrlCacheEntry function to retrieve subsequent cache entries. If the function fails, the return value is NULL.

ERROR_INSUFFICIENT_BUFFER indicates that the size of lpFirstCacheEntryInfo as specified by lpdwFirstCacheEntryInfoBufferSize is not sufficient to contain all the data. The value returned in lpdwFirstCacheEntryInfoBufferSize indicates the buffer size necessary to contain all the data.

Remarks

This function and FindNextUrlCacheEntry return variable size data. If ERROR_INSUFFICIENT_BUFFER is returned, the application should allocate a buffer of the size specified by lpdwFirstCacheEntryInfoBufferSize.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS   Wininet.h   Wininet.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

FindNextUrlCacheEntry, INTERNET_CACHE_ENTRY_INFO

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.