ILockBytes::Stat

Retrieves a STATSTG type structure that contains information about this byte array object.

Syntax

HRESULT Stat(   STATSTG *pStat,   DWORD grfStatFlag   );

Parameters

Parameter Description

pStat [out]

Pointer to a STATSTG type structure that contains information about this byte array object.

grfStatFlag [in]

Specifies whether this method should supply the pwcsName member of the STATSTG structure through values taken from the STATFLAG enumeration. If 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 members of the STATSTG structure be supplied.

Return Value

Term Definition

NOERROR

The method succeeded.

E_UNEXPECTED

Rowset is in a "zombied" state.

STG_E_INVALIDFLAG

A flag value that was set for grfStatFlag was not valid.

STG_E_INVALIDPOINTER

A pointer that was passed was not valid.

See Also

Reference

ILockBytes::ReadAt
ILockBytes::SetSize
ILockBytes::WriteAt

Other Resources

ILockBytes (SQL Server Compact)

Help and Information

Getting Assistance (SQL Server Compact 3.5 Service Pack 1)