GetUrlCacheEntryInfo
A version of this page is also available for
4/8/2010
This function retrieves data about a cache entry.
Syntax
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 Value
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
Header | wininet.h |
Library | wininet.lib |
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
SetUrlCacheEntryInfo
INTERNET_CACHE_ENTRY_INFO
WinInet Functions