Initializes the cache with data in a specified format and on a specified
| FORMATETC * pFormatetc,
||//Points to the format of the presentation data to be placed in the cache
| STGMEDIUM * pmedium,
||//Points to the storage medium containing the data to be placed in the cache
| BOOL fRelease
||//Indicates ownership of the storage medium after this method is completed
[in] Points to the format of the presentation data being placed in the cache.
[in] Points to the storage medium that contains the presentation data.
[in] Indicates ownership of the storage medium after completion of the method.
is TRUE, the cache takes ownership, freeing the medium when it is finished
using it. When fRelease
is FALSE, the caller retains ownership and is responsible for freeing the
medium. The cache can only use the storage medium for the duration of the call.
The cache was filled.
The cache could not be filled due to a lack of memory.
The value is not valid for pFormatetc->lindex.
Currently, only -1 is supported.
structure is invalid.
The value is not valid for pFormatetc->tymed
The value is not valid for pFormatetc->dwAspect
The object is static and pFormatetc->ptd
The storage medium is full.
IOleCache::SetData is usually called when an object is created from the Clipboard or through a
drag-and-drop operation and Embed Source data is used to create the object.
are very similar. There are two main differences. The first difference is
that while IOleCache::InitCache
initializes the cache with the any presentation format provided by the data
initializes it with a single format. Second, the IOleCache::SetData
method ignores the ADVF_NODATA flag while IOleCache::InitCache
obeys this flag.
A container can use this method to maintain a single aspect of an object, such
as the icon aspect of the object.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages