Поделиться через


CDynamicAccessor::GetColumnInfo

Returns the column metadata needed by most consumers.

HRESULT GetColumnInfo( 
   IRowset* pRowset, 
   DBORDINAL* pColumns, 
   DBCOLUMNINFO** ppColumnInfo, 
   OLECHAR** ppStringsBuffer  
) throw( );

Параметры

  • pRowset
    [in] A pointer to the IRowset interface.

  • pColumns
    [out] A pointer to memory in which to return the number of columns in the rowset; this number includes the bookmark column, if there is one.

  • ppColumnInfo
    [out] A pointer to memory in which to return an array of DBCOLUMNINFO structures. See "DBCOLUMNINFO Structures" in IColumnsInfo::GetColumnInfo in the OLE DB Programmer's Reference.

  • ppStringsBuffer
    [out] A pointer to memory in which to return a pointer to storage for all string values (names used either within columnid or for pwszName) within a single allocation block.

Возвращаемое значение

One of the standard HRESULT values.

Заметки

See IColumnsInfo::GetColumnInfo in the OLE DB Programmer's Reference for information on the data types DBORDINAL, DBCOLUMNINFO, and OLECHAR.

Требования

Header: atldbcli.h

См. также

Основные понятия

CDynamicAccessor Class

CDynamicAccessor Members