ILockBytes::Stat
Retrieves a STATSTG
HRESULT Stat(
STATSTG *pstatstg, |
//Location
for STATSTG structure |
DWORD grfStatFlag |
//Values
taken from the STATFLAG enumeration |
); |
|
Parameters
pstatstg
[out]Points
to a STATSTG
grfStatFlag
[in]Specifies
whether this method should supply the pwcsName member of the STATSTG
structure through values taken from the STATFLAG
Return Values
S_OK
The STATSTG
E_OUTOFMEMORY
The STATSTG
structure was not returned due to a lack of memory for the name field in the
structure.
STG_E_ACCESSDENIED
The STATSTG
structure was not returned because the caller did not have access to the byte
array.
STG_E_INSUFFICIENTMEMORY
The STATSTG
STG_E_INVALIDFLAG
The value for
the grfStateFlag parameter is not valid.
STG_E_INVALIDPOINTER
The value for
the pStatStg parameter is not valid.
Remarks
ILockBytes::Stat should supply information about the byte array object
in a STATSTG structure.
See Also
STATFLAG, STATSTG , ILockBytes File-Based Implementation, ILockBytes Global Memory Implementation