大网数据广告活动
Windows 系统接口

ATTRIBUTE_LIST_ENTRY structure

· 52CE 我爱测

Represents an entry in the attribute list.

[This structure is valid only for version 3 of NTFS volumes; it may be altered in future versions.]

Represents an entry in the attribute list.

Syntax

typedef struct _ATTRIBUTE_LIST_ENTRY {
  ATTRIBUTE_TYPE_CODE   AttributeTypeCode;
  USHORT                RecordLength;
  UCHAR                 AttributeNameLength;
  UCHAR                 AttributeNameOffset;
  VCN                   LowestVcn;
  MFT_SEGMENT_REFERENCE SegmentReference;
  USHORT                Reserved;
  WCHAR                 AttributeName[1];
} ATTRIBUTE_LIST_ENTRY, *PATTRIBUTE_LIST_ENTRY;

Members

AttributeTypeCode

The attribute type code.

Value Meaning
$STANDARD_INFORMATION 0x10 File attributes (such as read-only and archive), time stamps (such as file creation and last modified), and the hard link count.
$ATTRIBUTE_LIST 0x20 A list of attributes that make up the file and the file reference of the MFT file record in which each attribute is located.
$FILE_NAME 0x30 The name of the file, in Unicode characters.
$OBJECT_ID 0x40 An 16-byte object identifier assigned by the link-tracking service.
$VOLUME_NAME 0x60 The volume label. Present in the $Volume file.
$VOLUME_INFORMATION 0x70 The volume information. Present in the $Volume file.
$DATA 0x80 The contents of the file.
$INDEX_ROOT 0x90 Used to implement filename allocation for large directories.
$INDEX_ALLOCATION 0xA0 Used to implement filename allocation for large directories.
$BITMAP 0xB0 A bitmap index for a large directory.
$REPARSE_POINT 0xC0 The reparse point data.

RecordLength

The size of this structure, plus the optional name buffer, in bytes.

AttributeNameLength

The size of the optional attribute name, in characters. If a name exists, this value is nonzero and the structure is followed immediately by a Unicode string of the specified number of characters.

AttributeNameOffset

Reserved.

LowestVcn

The lowest virtual cluster number (VCN) for this attribute. This member is zero unless the attribute requires multiple file record segments and unless this entry is a reference to a segment other than the first one. In this case, this value is the lowest VCN that is described by the referenced segment.

SegmentReference

The master file table (MFT) segment in which the attribute resides. See MFT_SEGMENT_REFERENCE.

Reserved

Reserved.

AttributeName

The start of the optional attribute name.

Remarks

The attributes list is an ordered list of quadword-aligned ATTRIBUTE_LIST_ENTRY structures. This list is ordered first by the attribute type code and then by the attribute name (if present). No two attributes can have the same type code, name, and lowest VCN. Therefore, there can be at most one attribute for each type code without a name.

This structure definition is valid only for major version 3 and minor version 0 or 1, as reported by FSCTL_GET_NTFS_VOLUME_DATA.

Note that there is no associated header file for this structure.

See also

Master File Table

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 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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