Supplies a pointer to a new instance of an OLE-provided implementation of a data cache.
WINOLEAPI CreateDataCache(
LPUNKNOWN pUnkOuter,
//Pointer to whether cache is to be aggregated
REFCLSID rclsid, //CLSID used to generate icon labels
REFIID riid, //Reference to the identifier of the interface
LPVOID FAR *ppvObj
//Address of output variable that receives the
// interface pointer to the supplied cache object
);
E_OUTOFMEMORY, as well as the following:
The cache object created by CreateDataCache supports the IOleCache, IOleCache2, and IOleCacheControl interfaces for controlling the cache. It also supports the IPersistStorage, IDataObject (without advise sinks), IViewObject, and IViewObject2 interfaces.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objbase.h.
Import Library: Included as a resource in ole32.dll.
IOleCache, IOleCache2, IOleCacheControl