2.3.93 FSCTL_WRITE_USN_CLOSE_RECORD Reply

This message returns the results of the FSCTL_WRITE_USN_CLOSE_RECORD request as a single field, Usn, which is a 64-bit signed integer that contains the server file system's USN for the file or directory. This value MUST be greater than or equal to 0.

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 or directory, or the length of the output buffer is less than the size of a 64-bit integer, or the output buffer does not begin on a 4-byte boundary.

STATUS_INVALID_DEVICE_REQUEST

0xC0000010

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