Export (0) Print
Expand All
Expand Minimize

FindFirstUrlCacheGroup function

Initiates the enumeration of the cache groups in the Internet cache.

Syntax


HANDLE FindFirstUrlCacheGroup(
  _Reserved_  DWORD dwFlags,
  _In_        DWORD dwFilter,
  _Reserved_  LPVOID lpSearchCondition,
  _Reserved_  DWORD dwSearchCondition,
  _Out_       GROUPID *lpGroupId,
  _Reserved_  LPVOID lpReserved
);

Parameters

dwFlags [in]

This parameter is reserved and must be 0.

dwFilter [in]

Filters to be used. This parameter can be zero or one of the following values.

ValueMeaning
CACHEGROUP_SEARCH_ALL

Search all cache groups.

CACHEGROUP_SEARCH_BYURL

Not currently implemented.

 

lpSearchCondition [in]

This parameter is reserved and must be NULL.

dwSearchCondition [in]

This parameter is reserved and must be 0.

lpGroupId [out]

Pointer to the ID of the first cache group that matches the search criteria.

lpReserved [in, out]

This parameter is reserved and must be NULL.

Return value

Returns a valid handle to the first item in the enumeration if successful, or NULL otherwise. To get specific error information, call GetLastError. If the function finds no matching files, GetLastError returns ERROR_NO_MORE_FILES.

Remarks

The handle returned from FindFirstUrlCacheGroup is used in subsequent calls to FindNextUrlCacheGroup. At the end of the enumeration, the application should call FindCloseUrlCache.

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

See also

Caching
WinINet Functions

 

 

Show:
© 2014 Microsoft