Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

Sets the attribute information of the specified cache group.

Syntax

BOOL SetUrlCacheGroupAttribute(
  GROUPID 
gid,
  DWORD 
dwFlags,
  DWORD 
dwAttributes,
  LPINTERNET_CACHE_GROUP_INFO 
lpGroupInfo,
  LPVOID 
lpReserved
);

Parameters

gid

[in] GROUPID of the cache group.

dwFlags

[in] Reserved. Must be set to 0.

dwAttributes

[in] Unsigned long integer value that specifies what attributes to set. This can be one of the following listed in the Remarks section.

lpGroupInfo

[in] Pointer to an INTERNET_CACHE_GROUP_INFO structure that contains the attribute information to store.

lpReserved

[in, out] Reserved. Must be set to NULL.

Return Value

Returns TRUE if successful, or FALSE otherwise. To get specific error information, call GetLastError.

Remarks

The following table shows the attributes that this function supports.

Attribute Description

CACHEGROUP_ATTRIBUTE_FLAG

Sets or retrieves the flags associated with the cache group.

CACHEGROUP_ATTRIBUTE_GROUPNAME

Sets or retrieves the group name of the cache group.

CACHEGROUP_ATTRIBUTE_QUOTA

Sets or retrieves the disk quota associated with the cache group.

CACHEGROUP_ATTRIBUTE_STORAGE

Sets or retrieves the group owner storage associated with the cache group.

CACHEGROUP_ATTRIBUTE_TYPE

Sets or retrieves the cache group type.

CACHEGROUP_READWRITE_MASK

Sets the type, disk quota, group name, and owner storage attributes of the cache group

Requirements

Header wininet.h
Library wininet.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also