3.2.5.14 Receiving an SMB_COM_LOCK_AND_READ Response

The SMB_COM_LOCK_AND_READ response MUST be processed as specified in section 3.2.5.1.

If the request is successful, the number of bytes returned is specified in the CountOfBytesReturned field. The data read from the file are returned in a Data Buffer (see section 2.2.2.5), which also specifies the number of bytes returned. Both the count of bytes returned and the read bytes themselves MUST be passed to the application. An end-of-file condition is indicated if the number of bytes returned is less than the number of bytes requested.

The range of bytes indicated in the corresponding request message is also locked by the application.