IPersistStreamInit::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] Points to a 64-bit unsigned integer value indicating the size in bytes of the stream needed to save this object.

Return Values

  • 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 IPersistStreamInit::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 IPersistStreamInit::Save method with a nongrowable stream.

Requirements

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.