IOleCache::EnumCache method (oleidl.h)

Creates an enumerator that can be used to enumerate the current cache connections.

Syntax

HRESULT EnumCache(
  [out] IEnumSTATDATA **ppenumSTATDATA
);

Parameters

[out] ppenumSTATDATA

A pointer to an IEnumSTATDATA pointer variable that receives the interface pointer to the new enumerator object. If this parameter is NULL, there are no cache connections at this time.

Return value

This method returns S_OK if enumerator object is successfully instantiated or there are no cache connections.

Note  Check the ppenumSTATDATA parameter to determine which result occurred. If the ppenumSTATDATA parameter is NULL, then there are no cache connections at this time.
 

Remarks

The enumerator object returned by this method implements the IEnumSTATDATA interface. IEnumSTATDATA enumerates the data stored in an array of STATDATA structures containing information about current cache connections.

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 oleidl.h

See also

IEnumSTATDATA

IOleCache

IOleCache::Cache