IMetaDataTables::GetTableInfo method (rometadataapi.h)

Gets the name, row size, number of rows, number of columns, and key column index of the specified table.

Syntax

HRESULT GetTableInfo(
  [in]  ULONG  ixTbl,
  [out] ULONG  *pcbRow,
  [out] ULONG  *pcRows,
  [out] ULONG  *pcCols,
  [out] ULONG  *piKey,
  [out] LPCSTR *ppName
);

Parameters

[in] ixTbl

The identifier of the table whose properties to return.

[out] pcbRow

A pointer to the size, in bytes, of a table row.

[out] pcRows

A pointer to the number of rows in the table.

[out] pcCols

A pointer to the number of columns in the table.

[out] piKey

A pointer to the index of the key column, or -1 if the table has no key column.

[out] ppName

A pointer to a pointer to the table name.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataTables