STATSTATE

The STATSTATE enumeration values indicate state information about the storage object and are used as a mask. The values are used in the IStorage::SetStateBits16FRUW6 method.

typedef enum tagSTATSTATE

    STATSTATE_DOC            = 1,

    STATSTATE_CONVERT        = 2,

    STATSTATE_FILESTGSAME    = 4

} STATSTATE;

 

Elements

STATSTATE_DOC

The storage object is a document file. This bit is set on the root storage object as part of a normal File/Save sequence. With nested storage objects, the application manages the storage objects and sets or clears this bit as appropriate. If the nested object is an embedded object, this bit can be ignored. It is cleared in a newly created storage object. However, some applications might use this bit to enable editing an embedded storage object without first copying the object to the file system. For example, a mail application might set this bit for attachments so the attachments can be edited without copying them first to a file.

STATSTATE_CONVERT

A convert operation was done on this storage object while it was in a passive state.

STATSTATE_FILESTGSAME

The embedded object and document representations for the storage object are the same. Thus, the storage object can be saved in a document file simply by copying the storage object bits.

 

See Also

IStorage::SetStateBits