STATFLAG enumeration (wtypes.h)

The STATFLAG enumeration values indicate whether the method should try to return a name in the pwcsName member of the STATSTG structure. The values are used in the ILockBytes::Stat, IStorage::Stat, and IStream::Stat methods to save memory when the pwcsName member is not required.

Syntax

typedef enum tagSTATFLAG {
  STATFLAG_DEFAULT = 0,
  STATFLAG_NONAME = 1,
  STATFLAG_NOOPEN = 2
} STATFLAG;

Constants

 
STATFLAG_DEFAULT
Value: 0
Requests that the statistics include the pwcsName member of the
STATSTG structure.
STATFLAG_NONAME
Value: 1
Requests that the statistics not include the pwcsName member of the
STATSTG structure. If the name is omitted, there is no need for the
ILockBytes::Stat,
IStorage::Stat, and
IStream::Stat methods to allocate and free memory for the string value of the name, therefore the method reduces time and resources used in an allocation and free operation.
STATFLAG_NOOPEN
Value: 2
Not implemented.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header wtypes.h

See also

ILockBytes::Stat

IStorage::Stat

IStream::Stat