This method of the ILockBytes interface retrieves a STATSTG structure containing information for this byte array object.
public void Stat(com.ms.com.STATSTG pstatstg, int grfStatFlag);
S_OK -- the STATSTG structure was successfully returned at the specified location.
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 structure was not returned due to a lack of memory.
STG_E_INVALIDFLAG -- the value for the grfStateFlag parameter is not valid.
STG_E_INVALIDPOINTER -- the value for the pStatStg parameter is not valid.
[out] pstatstg | Points to a STATSTG structure in which this method places information about this byte array object. The pointer is NULL if an error occurs. |
[in] grfStatFlag | Specifies whether this method should supply the pwcsName member of the STATSTG structure through values taken from the STATFLAG enumeration. If the STATFLAG_NONAME is specified, the pwcsName member of STATSTG is not supplied, thus saving a memory allocation operation. The other possible value, STATFLAG_DEFAULT, indicates that all STATSTG members be supplied. |