Returns the size in bytes of the stream needed to save the object.
HRESULT GetSizeMax(
ULARGE_INTEGER *pcbSize //Pointer to size of stream needed to
//save object
);
This method returns the size needed to save an object. You can call this method to determine the size and set the necessary buffers before calling the IPersistStream::Save method.
The GetSizeMax implementation should return a conservative estimate of the necessary size because the caller might call the IPersistStream::Save method with a non-growable stream.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.