Converts the specified storage object from OLE 2 structured storage to the OLE 1 storage model, including the presentation data. This is one of several compatibility functions.
WINOLEAPI OleConvertIStorageToOLESTREAMEx(
IStorage * pStg, |
//Pointer to the OLE 2 storage object to be converted |
CLIPFORMAT cfFormat, |
//Presentation data format |
LONG lWidth, |
//Width in HIMETRIC |
LONG lHeight, |
//Height in HIMETRIC |
DWORD dwSize, |
//Size of data |
STGMEDIUM pmedium, |
//Pointer to data |
LPOLESTREAM lpolestm |
//Pointer to the stream where the OLE1 storage is written |
); |
Parameters
Return Values
This function supports the standard return value E_INVALIDARG, as well as the following:
Remarks
The OleConvertIStorageToOLESTREAMEx function converts an OLE 2 storage object to OLE 1 format. It differs from the OleConvertIStorageToOLESTREAM function in that the presentation data to be written to the OLE 1 storage is passed in.
Because OleConvertIStorageToOLESTREAMEx can specify which presentation data to convert, it can be used by applications that do not use OLE default caching resources but do use OLE’s conversion resources.
The value of the tymed member of STGMEDIUM must be either TYMED_HGLOBAL or TYMED_ISTREAM; refer to the TYMED enumeration for more information. The medium is not released by OleConvertIStorageToOLESTREAMEx.
See Also
CoIsOle1Class, OleConvertIStorageToOLESTREAM, OleConvertOLESTREAMToIStorage, OleConvertOLESTREAMToIStorageEx, STGMEDIUM structure, TYMED enumeration