OLESTATUS OleSaveToStream(lpObject, lpStream)
LPOLEOBJECT lpObject;
LPOLESTREAM lpStream;
The OleSaveToStream function saves an object to the stream.
Parameter | Description |
lpObject | Points to the object to save to the stream. |
lpStream | Points to an OLESTREAM structure allocated and initialized by the client application. The client DLL calls the Put function in the OLESTREAM structure to store the data from the object. |
An application can use the OleQuerySize function to find the number of bytes to allocate for the object.
The return value is OLE_OK if successful; otherwise, it could be one of the following:
OLE_ERROR_BLANK
OLE_ERROR_MEMORY
OLE_ERROR_OBJECT
OLE_ERROR_STREAM
See AlsoOleLoadFromStream, OleQuerySize