IPersistStreamInit::GetSizeMax

The IPersistStreamInit::GetSizeMax 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.

Syntax

HRESULT GetSizeMax(
ULARGE_INTEGER *pcbSize// out
);

Parameter

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

Include File

<pipeline.h>
<pipecomp.h>

Return Value

The method returns an HRESULT value.


© 1997-1998 Microsoft Corporation. All rights reserved.