Function Reference


_StreamSeek

Moves the stream pointer to a specified position using IStream::Seek.

_StreamSeek(ByRef $oStream[, $iMove[, $dwOrigin]])

Parameters

$oStream IStream COM object.
$iMove [optional] Number of bytes to move (default: 0).
$dwOrigin [optional] Starting point (default: $STREAM_SEEK_CUR).

Return Value

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

Remarks

Uses STREAM_SEEK_SET, STREAM_SEEK_CUR, or STREAM_SEEK_END for $dwOrigin.

Related

_StreamRead, _StreamWrite