SetUrlCacheEntryGroupA function (wininet.h)
Adds entries to or removes entries from a cache group.
Syntax
BOOL SetUrlCacheEntryGroupA(
[in] LPCSTR lpszUrlName,
[in] DWORD dwFlags,
[in] GROUPID GroupId,
[in] LPBYTE pbGroupAttributes,
[in] DWORD cbGroupAttributes,
[in] LPVOID lpReserved
);
Parameters
[in] lpszUrlName
Pointer to a null-terminated string value that specifies the URL of the cached resource.
[in] dwFlags
Determines whether the entry is added to or removed from a cache group. This parameter can be one of the following values.
Value | Meaning |
---|---|
|
Adds the cache entry to the cache group. |
|
Removes the entry from the cache group. |
[in] GroupId
Identifier of the cache group that the entry will be added to or removed from.
[in] pbGroupAttributes
This parameter is reserved and must be NULL.
[in] cbGroupAttributes
This parameter is reserved and must be 0.
[in] lpReserved
This parameter is reserved and must be NULL.
Return value
Returns TRUE if successful, or FALSE otherwise.
Remarks
A cache entry can belong to more than one cache group.
Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.
Note
The wininet.h header defines SetUrlCacheEntryGroup 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 |