GetUrlCacheEntryInfo

This function retrieves data about a cache entry.

BOOL GetUrlCacheEntryInfo ( LPCTSTR lpszUrlName,
LPINTERNET_CACHE_ENTRY_INFO lpCacheEntryInfo,
LPDWORD lpdwCacheEntryInfoBufferSize);

Parameters

  • lpszUrlName
    [in] Address of a string that contains the cache entry name. This string should not contain escape characters.
  • lpCacheEntryInfo
    [in] Address of an INTERNET_CACHE_ENTRY_INFO structure that receives data about the cache entry.
  • lpdwCacheEntryInfoBufferSize
    [in/out] Address of an unsigned long integer variable that specifies the lpCacheEntryInfo 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

Returns TRUE if successful, or FALSE otherwise.

Remarks

This function does not parse a Uniform Resource Locator (URL), so a URL containing an anchor (#) will not be found in the cache, even if the resource is cached. For example, if the URL https://example.com/example.htm\#sample was passed, the function would return ERROR_FILE_NOT_FOUND even if https://example.com/example.htm is in the cache.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.12 and later 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

SetUrlCacheEntryInfo, INTERNET_CACHE_ENTRY_INFO

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.