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,
  STATFLAG_NONAME,
  STATFLAG_NOOPEN
} STATFLAG;

Constants

Name Description
STATFLAG_DEFAULT Requests that the statistics include the pwcsName member of the
STATSTG structure.
STATFLAG_NONAME 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 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 Not implemented.

Requirements

   
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