Compartilhar via


IPersistStream::GetSizeMax (Windows CE 5.0)

Send Feedback

This method returns the size, in bytes, of the stream needed to save the object.

HRESULT GetSizeMax(ULARGE_INTEGER* pcbSize);

Parameters

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

Return Values

If the size was successfully returned, the method returns S_OK.

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

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Notes to Implementers

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.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Objidl.h, Objidl.idl.
Link Library: Ole32.lib, Uuid.lib.

See Also

IPersistStream::Save

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.