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

Reparse Point Operations

· 52CE 我爱测

Describes the reparse point operations that you can perform by using DeviceIoControl.

To determine whether a file system supports reparse points, call the GetVolumeInformation function and examine the FILE_SUPPORTS_REPARSE_POINTS bit flag.

The DeviceIoControl function enables you to set, modify, obtain, and remove reparse points. The following table describes the reparse point operations that you can perform using DeviceIoControl.

Operation Description
FSCTL_SET_REPARSE_POINT Allows the calling program to set a new reparse point, or to modify an existing one.
FSCTL_GET_REPARSE_POINT Obtains the information stored in an existing reparse point.
FSCTL_DELETE_REPARSE_POINT Removes an existing reparse point.

If you are modifying, getting, or deleting a reparse point, you must specify the same reparse tag in the operation that is contained in the file. Otherwise, the operation will fail with the error ERROR_REPARSE_TAG_MISMATCH. If you are modifying or deleting a reparse point, you must also specify the reparse GUID in the operation that is contained in the file. Otherwise, the operation will fail with the error ERROR_REPARSE_ATTRIBUTE_CONFLICT.

To determine whether a file or directory contains a reparse point, use the GetFileAttributes function. If the file or directory has an associated reparse point, the FILE_ATTRIBUTE_REPARSE_POINT attribute is set.

To overwrite an existing reparse point without already having a handle to the file or directory, call CreateFile with FILE_FLAG_OPEN_REPARSE_POINT. This flag allows you to open the file whether or not the corresponding file system filter is installed and working correctly.

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)

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

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