Fills the cache as needed using the data provided by the specified data object.
HRESULT InitCache(
IDataObject * pDataObject //Pointer to the data object from which
// the cache is initialized
);
This method supports the standard return values E_INVALIDARG and E_OUTOFMEMORY, as well as the following:
IOleCache::InitCache is usually used when creating an object from a drag-and-drop operation or from a clipboard paste operation. It fills the cache as needed with presentation data from all the data formats provided by the data object provided on the clipboard or in the drag-and-drop operation. Helper functions like OleCreateFromData or OleCreateLinkFromData call this method when needed. If a container does not use these helper functions to create compound document objects, it can use IOleCache::Cache to set up the cache entries which are then filled by IOleCache::InitCache.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in oleidl.h.