次の方法で共有


2.2.4.40 SMB_COM_WRITE_AND_CLOSE (0x2C)

This command was introduced in the LAN Manager 1.0 dialect. This command is deprecated. Clients SHOULD<55> use the SMB_COM_WRITE_ANDX (section 2.2.4.43) command.

This write and close command has the effect of writing to a range of bytes and then closing the file associated with the supplied FID. This command behaves identically to an SMB_COM_WRITE (section 2.2.4.12) command followed by an SMB_COM_CLOSE (section 2.2.4.5) command. See SMB_COM_WRITE and SMB_COM_CLOSE for more details. This command supports two request formats: one with six parameter words and one with 12 parameter words.

This command supports 32-bit offsets only and is inappropriate for files having 64-bit offsets. The client SHOULD use SMB_COM_WRITE_ANDX to write to files requiring 64-bit file offsets.

The client MUST have at least write access to the file. If an error is returned by the underlying object store, the server SHOULD still close the file.