File Management Functions
Functions for managing files and directories in the Windows operating system.
Core File Operations
CreateFile
Creates or opens a file, drive, or communication resource.
CloseHandle
Closes an open object handle.
ReadFile
Reads data from a file or from the console buffer.
WriteFile
Writes data to a file or to the console buffer.
SetFilePointer
Moves the file pointer of the specified file to a location.
GetFileSize
Retrieves the size, in bytes, of the specified file.
FlushFileBuffers
Flushes the buffers for the specified file and causes any buffered data to be written to disk.
DeviceIoControl
Sends control codes to a specified device driver to perform requested operations.
File Information and Attributes
GetFileInformationByHandle
Retrieves various pieces of information about a specified file.
SetEndOfFile
Moves the end-of-file (EOF) marker for the specified file to the specified byte offset.
GetCompressedFileSize
Retrieves the actual size of a compressed file.
SetFileAttributes
Sets the attributes for a file or directory.
GetFileAttributes
Retrieves the attributes for a specified file or directory.
Advanced Operations
CopyFile
Copies an existing file to a new location.
MoveFile
Moves an existing file or directory from one location to another.
DeleteFile
Deletes a specified file.
LockFile
Locks a portion of a file, preventing other processes from accessing it.
UnlockFile
Unlocks a previously locked portion of a file.