188.8.131.52 Receiving an SMB2 QUERY_INFO Response
If the Status field of the SMB2 header of the response indicates an error, the client MUST return the received status code to the calling application. If the error code is either STATUS_BUFFER_TOO_SMALL or STATUS_INFO_LENGTH_MISMATCH and the SMB2 ERROR Response following the SMB2 header has a ByteCount of 4, the client MUST also return the 4-byte error data to the calling application. This error data indicates the size, in bytes, that is required to successfully query the information.
If the Status field of the SMB2 header of the response indicates success, the client MUST copy the received information in the SMB2 QUERY_INFO Response following the SMB2 header that is described by the OutputBufferOffset and OutputBufferLength into the buffer that is provided by the calling application. The client MUST return success and the OutputBufferLength to the application.