Skip to content

Latest commit

 

History

History
79 lines (68 loc) · 2.22 KB

File metadata and controls

79 lines (68 loc) · 2.22 KB
title CDynamicAccessor::GetColumnInfo | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
GetColumnInfo
ATL.CDynamicAccessor.GetColumnInfo
ATL::CDynamicAccessor::GetColumnInfo
CDynamicAccessor.GetColumnInfo
CDynamicAccessor::GetColumnInfo
dev_langs
C++
helpviewer_keywords
GetColumnInfo method
ms.assetid 7f2102ea-b7cc-4714-812f-3ca2857f4b9a
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CDynamicAccessor::GetColumnInfo

Returns the column metadata needed by most consumers.

Syntax

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

Parameters

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.

Return Value

One of the standard HRESULT values.

Remarks

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

Requirements

Header: atldbcli.h

See Also

CDynamicAccessor Class