大网数据广告活动
磁盘与文件系统

JET_ENUMCOLUMN Structure

· 52CE 我爱测

Describes the JET_ENUMCOLUMN structure and provides its members, requirements, and related articles.

Applies to: Windows | Windows Server

JET_ENUMCOLUMN Structure

The JET_ENUMCOLUMN structure enumerates the column values of a record when the JetEnumerateColumns function is used. JetEnumerateColumns returns an array of JET_ENUMCOLUMN structures. The array is returned in memory that is allocated using the realloc compatible callback that was supplied to that API.

    typedef struct {
      JET_COLUMNID columnid;
      JET_ERR err;
      union {
        struct {
          unsigned long cEnumColumnValue;
          JET_ENUMCOLUMNVALUE rgEnumColumnValue;
        };
        struct {
          unsigned long cbData;
          void* pvData;
        };
      };
    } JET_ENUMCOLUMN;

Members

columnid

The column ID that was enumerated.

err

The column status code that results from the enumeration of the column.

Error Codes Meaning
JET_errBadColumnId The column ID is outside the legal limits of a column ID.
JET_errColumnNotFound The column described by the column ID does not exist in the table.
JET_wrnColumnNull All values for this column are NULL.
JET_wrnColumnPresent JET_bitEnumeratePresenceOnly was specified and at least one non-NULL column value would have been returned for this column.
JET_wrnColumnSingleValue JET_bitEnumerateCompressOutput was specified and exactly one non-NULL column value has been returned for this column. As a result, the compressed form of JET_ENUMCOLUMN has been returned. See JET_ENUMCOLUMN for more information.
JET_wrnColumnSkipped The column ID in the <a href="gg269251(v=exchg.10).md">JET_ENUMCOLUMNID</a> struct corresponding to this JET_ENUMCOLUMN struct was zero.

cEnumColumnValue

The array of column values that was enumerated for the column. The output buffer is returned in memory that was allocated using the realloc compatible callback that was supplied to JetEnumerateColumns.

This output buffer is used when the column status code is not equal to JET_wrnColumnSingleValue. For more information, see JetEnumerateColumns.

This is returned if "err != JET_wrnColumnSingleValue".

rgEnumColumnValue

The array of column values that was enumerated for the column. The output buffer is returned in memory that was allocated using the realloc compatible callback that was supplied to JetEnumerateColumns.

This output buffer is used when the column status code is not equal to JET_wrnColumnSingleValue. For more information, see JetEnumerateColumns.

This is returned if "err != JET_wrnColumnSingleValue".

cbData

The column value that was enumerated for the column.

The output buffer is returned in memory that was allocated using the realloc compatible callback that was supplied to JetEnumerateColumns.

This output buffer is only used when the column status code is JET_wrnColumnSingleValue. For more information, see JetEnumerateColumns.

This is returned if "err == JET_wrnColumnSingleValue".

pvData

The column value that was enumerated for the column.

The output buffer is returned in memory that was allocated using the realloc compatible callback that was supplied to JetEnumerateColumns.

This output buffer is only used when the column status code is JET_wrnColumnSingleValue. For more information, see JetEnumerateColumns.

This is returned if "err == JET_wrnColumnSingleValue".

Requirements

Requirement Value
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Esent.h.

See Also

JET_COLUMNID
JET_ERR
JET_ENUMCOLUMNID
JET_ENUMCOLUMNVALUE
JetEnumerateColumns
realloc

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 04/11/2016
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。