STATSTG STATSTG STATSTG STATSTG Struct

定义

包含关于开源存储器、流或字节数组对象的统计信息。Contains statistical information about an open storage, stream, or byte-array object.

public value class STATSTG
public struct STATSTG
type STATSTG = struct
Public Structure STATSTG
继承

注解

有关详细信息,请参阅的现有文档STATSTGMSDN 库中。For more information, see the existing documentation for STATSTG in the MSDN library.

在本机代码中的 COM 方法将返回的 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

字段

atime atime atime atime

指定此存储、流或字节数组的上次访问时间。Specifies the last access time for this storage, stream, or byte array.

cbSize cbSize cbSize cbSize

指定流或字节数组的大小(以字节为单位)。Specifies the size, in bytes, of the stream or byte array.

clsid clsid clsid clsid

指示存储对象的类标识符。Indicates the class identifier for the storage object.

ctime ctime ctime ctime

指示此存储、流或字节数组的创建时间。Indicates the creation time for this storage, stream, or byte array.

grfLocksSupported grfLocksSupported grfLocksSupported grfLocksSupported

指示受该流或字节数组支持的区域锁定的类型。Indicates the types of region locking supported by the stream or byte array.

grfMode grfMode grfMode grfMode

指示打开对象时指定的访问模式。Indicates the access mode that was specified when the object was opened.

grfStateBits grfStateBits grfStateBits grfStateBits

指示存储对象的当前状态位(最近由 IStorage::SetStateBits 方法设置的值)。Indicates the current state bits of the storage object (the value most recently set by the IStorage::SetStateBits method).

mtime mtime mtime mtime

指示此存储、流或字节数组的上次修改时间。Indicates the last modification time for this storage, stream, or byte array.

pwcsName pwcsName pwcsName pwcsName

表示指向以 NULL 结尾的字符串的指针,该字符串包含此结构所描述的对象的名称。Represents a pointer to a null-terminated string containing the name of the object described by this structure.

reserved reserved reserved reserved

留待将来使用。Reserved for future use.

type type type type

指示存储对象的类型,该类型为 STGTY 枚举值之一。Indicates the type of storage object, which is one of the values from the STGTY enumeration.

适用于