Export (0) Print
Expand All
Expand Minimize

SetUrlCacheEntryGroup function

Adds entries to or removes entries from a cache group.

Syntax


BOOLAPI SetUrlCacheEntryGroup(
  _In_  LPCTSTR lpszUrlName,
  _In_  DWORD dwFlags,
  _In_  GROUPID GroupId,
  _In_  LPBYTE pbGroupAttributes,
  _In_  DWORD cbGroupAttributes,
  _In_  LPVOID lpReserved
);

Parameters

lpszUrlName [in]

Pointer to a null-terminated string value that specifies the URL of the cached resource.

dwFlags [in]

Determines whether the entry is added to or removed from a cache group. This parameter can be one of the following values.

ValueMeaning
INTERNET_CACHE_GROUP_ADD

Adds the cache entry to the cache group.

INTERNET_CACHE_GROUP_REMOVE

Removes the entry from the cache group.

 

GroupId [in]

Identifier of the cache group that the entry will be added to or removed from.

pbGroupAttributes [in]

This parameter is reserved and must be NULL.

cbGroupAttributes [in]

This parameter is reserved and must be 0.

lpReserved [in]

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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

SetUrlCacheEntryGroupW (Unicode) and SetUrlCacheEntryGroupA (ANSI)

See also

Caching
WinINet Functions

 

 

Show:
© 2014 Microsoft