3.3.5.12 Receiving an SMB_COM_SET_INFORMATION Request
When the server receives an SMB_COM_SET_INFORMATION Request (section 2.2.4.10.1), it MUST verify that the file indicated by the FileName field in the request exists. If the file does not exist, the server MUST fail the request with STATUS_OBJECT_NAME_NOT_FOUND (ERRDOS/ERRbadfile). If the file exists and the user indicated by the UID field in the request header does not have permission to modify file metadata, the server MUST fail the request with STATUS_ACCESS_DENIED (ERRDOS/ERRnoaccess) and MUST increase Server.Statistics.sts0_permerrors by 1.
Otherwise, the server MUST attempt to set the file attributes provided in the request:
FileAttributes, in SMB_FILE_ATTRIBUTES (section 2.2.1.2.4) format.
LastWriteTime: the time of the last write to the file, in UTIME (section 2.2.1.4.3) format. If this field contains 0x00000000, the last write time of the file MUST NOT be changed.<261>
The response MUST be sent to the client as specified in section 3.3.4.1.