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

File Objects

· 52CE 我爱测

File objects function as the logical interface between kernel and user-mode processes and the file data that resides on the physical disk.

File objects function as the logical interface between kernel and user-mode processes and the file data that resides on the physical disk. A file object contains both the data written to the file and the following set of kernel-maintained attributes.

Information type Purpose
File name Names the corresponding physical file.
Current byte offset Used in synchronous file I/O (described later in this section) to identify the current starting location of read and write operations.
Share mode Specifies whether a second process can open a file for read, write, or delete access while the initial process is still accessing it.
I/O mode Specifies whether the initial process opened the file for synchronous or asynchronous I/O, cached or uncached I/O, sequential or random I/O, and so on.
Pointer to device object Identifies the physical device the file data resides on.
Pointer to the volume parameter block, or VPB Identifies the volume or partition the file data resides on.
Pointer to section object pointers Identifies a root structure that describes a mapped file.
Pointer to private cache map Identifies the file data that is currently cached.

These attributes are defined as part of the FILE_OBJECT structure in Ntddk.h. Refer to the definition of this structure in the Windows Driver Kit (WDK) documentation for the data lengths and types of the values.

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)

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

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