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

Using File Management

· 52CE 我爱测

The following samples use the file management functions.

The following samples use the file management functions.

In this section

Topic Description
Adding Users to an Encrypted File Example code that shows how to add a new user to an existing encrypted file by using the AddUsersToEncryptedFile function.
Appending One File to Another File Example code that shows how an application can append one file to the end of another file, including how to open and close files, read and write to files, and lock and unlock files.
Creating and Using a Temporary File Example code that shows how to create a temporary file for data manipulation purposes by using the GetTempFileName and GetTempPath functions.
Locking and Unlocking Byte Ranges in Files Example code that shows byte range locking and unlocking by using the LockFileEx and UnlockFileEx functions.
Opening a File for Reading or Writing Example code that shows how to use the CreateFile function to create a new file or open an existing file.
Retrieving and Changing File Attributes Example code that shows how to use the GetFileAttributesEx function to retrieve file attributes.
Testing for the End of a File Example code that shows how to test for the end of file during a synchronous read operation and during an asynchronous read operation.
Using Streams Example code that shows how to use basic NTFS file system streams.

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)

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

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