HRESULT GetColumnInfo( IRowset* pRowset, ULONG* pColumns, DBCOLUMNINFO** ppColumnInfo );
See IColumnsInfo::GetColumnInfo in the OLE DB Programmer's Reference.
Return Value
One of the standard HRESULT values.
Parameters
pRowset
[in] A pointer to the IRowset interface.
pColumns
[in] 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
[in] A pointer to memory in which to return an array of DBCOLUMNINFO structures.
Remarks
Returns the column meta data needed by most consumers.