IOleCache::Uncache

Removes a cache connection created in a prior call to IOleCache::Cache.

HRESULT Uncache(
  DWORD dwConnection  //Cache connection to remove
);
 

Parameter

dwConnection
[in] Cache connection to remove. This nonzero value was returned by IOleCache::Cache when the cache was originally established.

Return Values

S_OK
The cache connection was deleted.
OLE_E_NOCONNECTION
No cache connection exists for dwConnection.

Remarks

The IOleCache::Uncache method removes a cache connection that was created in a prior call to IOleCache::Cache. It uses the dwConnection parameter that was returned by the prior call to IOleCache::Cache.

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in oleidl.h.

See Also

IOleCache::Cache