Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

File Management Structures

The following structures are used in file management.

In this section

StructureDescription

BY_HANDLE_FILE_INFORMATION

Contains information that the GetFileInformationByHandle function retrieves.

COPYFILE2_EXTENDED_PARAMETERS

Contains extended parameters for the CopyFile2 function.

COPYFILE2_MESSAGE

Passed to the CopyFile2ProgressRoutine callback function with information about a pending copy operation.

CREATEFILE2_EXTENDED_PARAMETERS

Contains optional extended parameters for CreateFile2.

CSV_CONTROL_PARAM

Represents a type of CSV control operation.

CSV_QUERY_FILE_REVISION

Contains information about whether files in a stream have been modified.

CSV_QUERY_MDS_PATH

Contains the path that is used by CSV to communicate to the MDS.

CSV_QUERY_REDIRECT_STATE

Contains information about whether files in a stream have been redirected.

EFS_CERTIFICATE_BLOB

Contains a certificate.

EFS_HASH_BLOB

Contains a certificate hash.

ENCRYPTION_CERTIFICATE

Contains a certificate and the SID of its owner.

ENCRYPTION_CERTIFICATE_HASH

Contains a certificate hash and display information for the certificate.

ENCRYPTION_CERTIFICATE_HASH_LIST

Contains a list of certificate hashes.

ENCRYPTION_CERTIFICATE_LIST

Contains a list of certificates.

EXFAT_STATISTICS

Contains statistical information from the exFAT file system.

FAT_STATISTICS

Contains statistical information from the FAT file system.

FILE_ALIGNMENT_INFO

Contains alignment information for a file.

FILE_ALLOCATED_RANGE_BUFFER

Indicates a range of bytes in a file.

FILE_ALLOCATION_INFO

Contains the total number of bytes that should be allocated for a file.

FILE_ATTRIBUTE_TAG_INFO

Receives the requested file attribute information. Used for any handles.

FILE_BASIC_INFO

Contains the basic information for a file. Used for file handles.

FILE_COMPRESSION_INFO

Receives file compression information.

FILE_DISPOSITION_INFO

Indicates whether a file should be deleted. Used for any handles.

FILE_END_OF_FILE_INFO

Contains the specified value to which the end of the file should be set.

FILE_STORAGE_INFO

Contains directory information for a file.

FILE_FULL_DIR_INFO

Contains directory information for a file.

FILE_ID_128

Defines a 128-bit file identifier.

FILE_ID_BOTH_DIR_INFO

Contains information about files in the specified directory.

FILE_ID_DESCRIPTOR

Specifies the type of ID that is being used.

FILE_ID_EXTD_DIR_INFO

Contains identification information for a file.

FILE_ID_INFO

Contains identification information for a file.

FILE_IO_PRIORITY_HINT_INFO

Specifies the priority hint for a file I/O operation.

FILE_LEVEL_TRIM

Used as input to the FSCTL_FILE_LEVEL_TRIM control code.

FILE_LEVEL_TRIM_OUTPUT

Used as output to the FSCTL_FILE_LEVEL_TRIM control code.

FILE_LEVEL_TRIM_RANGE

Specifies a range of a file that is to be trimmed.

FILE_MAKE_COMPATIBLE_BUFFER

Specifies the disc to close the current session for. This control code is used for UDF file systems. This structure is used for input when calling FSCTL_MAKE_MEDIA_COMPATIBLE.

FILE_NAME_INFO

Receives the file name.

FILE_OBJECTID_BUFFER

Contains an object identifier and user-defined metadata associated with the object identifier.

FILE_QUERY_ON_DISK_VOL_INFO_BUFFER

Receives the volume information from a call to FSCTL_QUERY_ON_DISK_VOLUME_INFO.

FILE_QUERY_SPARING_BUFFER

Contains defect management properties.

FILE_REMOTE_PROTOCOL_INFO

Contains file remote protocol information.

FILE_RENAME_INFO

Contains the name to which the file should be renamed.

FILE_SEGMENT_ELEMENT

Union that contains a 64-bit value that points to a page of data.

FILE_SET_DEFECT_MGMT_BUFFER

Specifies the defect management state to be set.

FILE_SET_SPARSE_BUFFER

Specifies the sparse state to be set.

FILE_STANDARD_INFO

Receives extended information for the file.

FILE_STREAM_INFO

Receives file stream information for the specified file.

FILE_ZERO_DATA_INFORMATION

Contains a range of a file to set to zeros.

FILESYSTEM_STATISTICS

Contains statistical information from the file system.

FILESYSTEM_STATISTICS_EX

Contains statistical information from the file system.

Support for this structure started with Windows 10.

FIND_BY_SID_DATA

Contains data for the FSCTL_FIND_FILES_BY_SID control code.

FIND_BY_SID_OUTPUT

Represents a file name.

NTFS_FILE_RECORD_INPUT_BUFFER

Contains data for the FSCTL_GET_NTFS_FILE_RECORD control code.

NTFS_FILE_RECORD_OUTPUT_BUFFER

Receives output data from the FSCTL_GET_NTFS_FILE_RECORD control code.

NTFS_STATISTICS

Contains statistical information from the NTFS file system.

NTFS_STATISTICS_EX

Contains statistical information from the NTFS file system.

Support for this structure started with Windows 10.

OFSTRUCT

Contains information about a file that the OpenFile function opened or attempted to open.

OVERLAPPED_ENTRY

Contains the information returned by a call to the GetQueuedCompletionStatusEx function.

REQUEST_OPLOCK_INPUT_BUFFER

Contains the information to request an opportunistic lock (oplock) or to acknowledge an oplock break with the FSCTL_REQUEST_OPLOCK control code.

REQUEST_OPLOCK_OUTPUT_BUFFER

Contains the opportunistic lock (oplock) information returned by the FSCTL_REQUEST_OPLOCK control code.

WIN32_FILE_ATTRIBUTE_DATA

Contains attribute information for a file or directory.

WIN32_FIND_DATA

Contains information about the file that is found by the FindFirstFile, FindFirstFileEx, or FindNextFile function.

WIN32_FIND_STREAM_DATA

Contains information about the stream found by the FindFirstStreamW or FindNextStreamW function.

 

 

 

Community Additions

ADD
Show:
© 2015 Microsoft