Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This method returns the size, in bytes, of the stream needed to save the object.
Syntax
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 Value
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::Savemethod.
To determine whether the platform supports this interface, see Determining Supported COM APIs.
Notes to Implementers
The GetSizeMaximplementation should return a conservative estimate of the necessary size because the caller might call the IPersistStream::Savemethod with a non-growable stream.
Requirements
Header | objidl.h, objidl.idl |
Library | ole32.lib, uuid.lib |
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |