Converts the specified storage object from OLE 2 structured storage to the OLE 1 storage model but does not include the presentation data. This is one of several compatibility functions.
WINOLEAPI OleConvertIStorageToOLESTREAM(
IStorage * pStg, |
//Pointer to the OLE 2 storage object to be converted |
LPOLESTREAM lpolestream |
//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
This function converts an OLE 2 storage object to OLE 1 format. The OLESTREAM code implemented for OLE 1 must be available.
On entry, the stream pointed to by lpolestm should be created and positioned just as it would be for an OleSaveToStream call. On exit, the stream contains the persistent representation of the object using OLE 1 storage.
Note Paintbrush objects are dealt with differently from other objects because their native data is in DIB format. When Paintbrush objects are converted using OleConvertIStorageToOLESTREAM, no presentation data is added to the OLESTREAM. To include presentation data, use the OleConvertIStorageToOLESTREAMEx function instead.
See Also
CoIsOle1Class, OleConvertIStorageToOLESTREAMEx, OleConvertOLESTREAMToIStorage, OleConvertOLESTREAMToIStorageEx