SetUrlCacheEntryInfoW function (wininet.h)
Sets the specified members of the INTERNET_CACHE_ENTRY_INFO structure.
Syntax
BOOL SetUrlCacheEntryInfoW(
[in] LPCWSTR lpszUrlName,
[in] LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
[in] DWORD dwFieldControl
);
Parameters
[in] lpszUrlName
Pointer to a null-terminated string that specifies the name of the cache entry. The name string should not contain any escape characters.
[in] lpCacheEntryInfo
Pointer to an INTERNET_CACHE_ENTRY_INFO structure containing the values to be assigned to the cache entry designated by lpszUrlName.
[in] dwFieldControl
Indicates the members that are to be set. This parameter can be a combination of the following values.
Value | Meaning |
---|---|
|
Sets the last access time. |
|
Sets the cache entry type. |
|
Sets the exempt delta. |
|
Sets the expire time. |
|
Not currently implemented. |
|
Sets the hit rate. |
|
Sets the last modified time. |
|
Sets the last sync time. |
Return value
Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError. Possible error values include the following.
Return code | Description |
---|---|
|
The specified cache entry is not found in the cache. |
|
The value(s) to be set is invalid. |
Remarks
Note
The wininet.h header defines SetUrlCacheEntryInfo as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wininet.h |
Library | Wininet.lib |
DLL | Wininet.dll |