Function Reference


_StreamSetSize

Changes the size of the stream using IStream::SetSize.

_StreamSetSize(ByRef $oStream, $iNewSize)

Parameters

$oStream IStream COM object.
$iNewSize New size of the stream in bytes.

Return Value

Success: 1
Failure: 0, sets @error to:
1 - Invalid stream object.
2 - COM error (HRESULT in @extended).

Remarks

Can truncate or extend the stream. Extended areas are filled with zeros.

Related

_StreamWrite, _StreamGetStat