2.3.78 FSCTL_SET_OBJECT_ID Reply

This message returns the results of the FSCTL_SET_OBJECT_ID request.

If the file system of the volume containing the specified file or directory does not support the use of object IDs, the request will not succeed. The error code returned in this situation varies, depending on the file system.

The only data item this message returns is 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 input buffer's length is not equal to the size of a FILE_OBJECTID_BUFFER structure.

STATUS_ACCESS_DENIED

0xC0000022

The handle was not opened with write data or write attribute access as well as restore access.

STATUS_OBJECT_NAME_COLLISION

0xC0000035

The file or directory already has an object ID.

STATUS_INVALID_DEVICE_REQUEST

0xC0000010

The file system does not support the use of object IDs.

STATUS_MEDIA_WRITE_PROTECTED

0xC00000A2

The volume is write-protected and changes to it cannot be made.