Function Reference


_StreamGetType

Retrieves the type of the stream from its STATSTG structure.

_StreamGetType(ByRef $oStream)

Parameters

$oStream IStream COM object.

Return Value

Success: String indicating the stream type ("STGTY_STORAGE", "STGTY_STREAM", "STGTY_LOCKBYTES", "STGTY_PROPERTY").
Failure: Empty string, sets @error to:
1 - Invalid stream object.
2 - Failed to get STATSTG or create structure.

Remarks

Uses _StreamGetStat to retrieve the stream type.

Related

_StreamGetStat, _StreamGetName