SetUrlCacheEntryGroup function (wininet.h)

Adds entries to or removes entries from a cache group.

Syntax

BOOL SetUrlCacheEntryGroup(
  [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
INTERNET_CACHE_GROUP_ADD
Adds the cache entry to the cache group.
INTERNET_CACHE_GROUP_REMOVE
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  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
 

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

See also

Caching

WinINet Functions