HRESULT GetColumns(COLUMNINFO*& pCols, ULONG& cCols);
Parameters
pCols
Reference to buffer to receive callee-allocated COLUMNINFO array. This array must be freed using the delete[] operator.
cCols
The number of elements in the array.
Return Code
S_OK
Method succeeded.
E_FAIL
Returned if the object is not attached.
Comments
Uses IColumnInfo and IColumnsRowset to populate an array of COLUMNINFO structures. If IColumnsRowset is not available, then the additional structure member in COLUMNINFO is left zero-initialized.