IPersistMemory::GetSizeMax  FBD6U6

Returns the size in bytes of the memory block needed to save the object.

HRESULT GetSizeMax(

    ULARGE_INTEGER* pcbSize

//Pointer to size of memory needed to save object

   );

 

 

Parameter

pcbSize

[out]Pointer to a 64-bit unsigned integer value indicating the size in bytes of the memory needed to save this object.

 

Return Value

S_OK

The size was successfully returned.

 

Remarks

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 IPersistMemory::Save method.

Notes to Implementers

The GetSizeMax implementation must return a conservative estimate of the necessary size because the IPersistMemory::Save method uses a fixed size memory block.

See Also

IPersistMemory::Save