Function Reference


_StreamGetStat

Retrieves metadata for a stream using IStream::Stat.

_StreamGetStat(ByRef $oStream, ByRef $pStatFlag[, $grfStatFlag])

Parameters

$oStream IStream COM object.
$pStatFlag [out] Pointer to the STATSTG structure.
$grfStatFlag [optional] STATFLAG flags (default: $STATFLAG_DEFAULT).

Return Value

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

Remarks

Caller must free $pStatFlag using _WinAPI_CoTaskMemFree.

Related

_StreamStatDisplay, __ReadStreamName