IPersistStreamInit::GetSizeMax Method
This method should return the maximum size, in bytes, required in the stream to save the data to be persisted.
HRESULT GetSizeMax(
ULARGE_INTEGER* pCbSize
);
Parameters
- pCbSize
[out] The address of a ULARGE_INTEGER used to return the number of bytes the object needs in the stream to save values.
Return Value
This method must return the HRESULT value S_OK to indicate success, and should generally return one of the standard COM error values to indicate failure.