M&M FDT 1.2.1 Online Specification
 IPersistStreamInit::GetSizeMax() method information


Interfaces and Methods   -   Schemas   -   FDT Specification   -   Quicklinks   -   Abbreviations

2.7.2 IPersistStreamInit::GetSizeMax()


This method can be called in the states:  

HRESULT GetSizeMax (
[out] ULARGE_INTEGER * pcbSize
);


Description:


Parameters:
pcbSizeReceives a pointer to the size of the stream needed to save the object


Return Value:


Behavior:
Returns the size in bytes of the stream needed to save the object

Comments:
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 IPersistStreamInit::Save() method. Notes to Implementers: The GetSizeMax() implementation should return a conservative estimate of the necessary size because the caller might call the IPersistStreamInit::Save() method with a non-growable stream.




© by M&M Software GmbH, parts of this website taken from FDT Interface Specification Version 1.2.1, © by FDT Group, AISBL.
This website is published for support of M&M products as granted in license conditions, chapter 2.1.
Last updated 2015-02-05 15:17
Email: FDT Technical Support Line.