Export (0) Print
Expand All

IPersistStreamInit::GetSizeMax method

Retrieves the size of the stream needed to save the object.

Syntax


HRESULT GetSizeMax(
  [out]  ULARGE_INTEGER *pCbSize
);

Parameters

pCbSize [out]

The size in bytes of the stream needed to save this object, in bytes.

Return value

This method returns S_OK to indicate that the size was retrieved successfully.

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 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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IPersistStreamInit is defined as 7FD52380-4E07-101B-AE2D-08002B2EC713

See also

IPersistStreamInit

 

 

Community Additions

ADD
Show:
© 2014 Microsoft