Partager via


2.3.62 FSCTL_READ_FILE_USN_DATA Reply

The FSCTL_READ_FILE_USN_DATA reply message returns the results of the FSCTL_READ_FILE_USN_DATA request as a USN_RECORD_V2 or a USN_RECORD_V3. Both forms of reply message begin with a USN_RECORD_COMMON_HEADER, which can be used to determine the form of the full reply message.

This message returns a status code as specified in section 2.2. Upon success, the status code returned by the function that processes this FSCTL is STATUS_SUCCESS. The most common error codes are listed in the following table.

Error code

Meaning

STATUS_INVALID_PARAMETER

0xC000000D

The handle is not to a file, directory or if invalid MinMajorVersion and MaxMajorVersion values are specified. .

STATUS_INVALID_USER_BUFFER

0xC00000E8

The output buffer is not aligned to a 4-byte boundary.

STATUS_BUFFER_TOO_SMALL

0xC0000023

The output buffer is too small to contain a USN_RECORD structure.

STATUS_INVALID_DEVICE_REQUEST

0xC0000010

The file system does not support the use of a USN change journal.