Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Stat Method

Stat Method

 

Retrieves information about a Stream object.


Long stream.Stat(StatStg, StatFlag)

A Long value indicating the status of the operation.

 StatStg 

A STATSTG structure that will be filled in with information about the stream. The implementation of the Stat method used by the ADO Stream object does not fill in all of the fields of the structure.

 StatFlag 

Specifies that this method does not return some of the members in the STATSTG structure, thus saving a memory allocation operation. Values are taken from the STATFLAG enumeration. The STATFLAG enumeration has two values

Constant

Value

STATFLAG_DEFAULT

0

STATFLAG_NONAME

1

The version of the Stat method implemented for the ADO Stream object fills in the following fields of the STATSTG structure:

 pwcsName 

A string containing the name of the stream, if one is available and the StatFlag value STATFLAG_NONAME was not specified.

 cbSize 

Specifies the size in bytes of the stream or byte array.

 mtime 

Indicates the last modification time for this storage, stream, or byte array.

 ctime 

Indicates the creation time for this storage, stream, or byte array.

 atime 

Indicates the last access time for this storage, stream or byte array.

If STATFLAG_NONAME is specified in the StatFlag parameter, the name of the stream is not returned.

If STATFLAG_NONAME was not specified in the StatFlag parameter, and there is no name available for the current stream, this value will be E_NOTIMPL.

Show:
© 2015 Microsoft