Export (0) Print
Expand All

STATFLAG enumeration

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

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

IDL

WTypes.idl

See also

ILockBytes::Stat
IStorage::Stat
IStream::Stat

 

 

Community Additions

ADD
Show:
© 2014 Microsoft