Compartir a través de


3.3.5.58.4 Receiving a TRANS2_FIND_NEXT2 Request

Upon receipt of a TRANS2_FIND_NEXT2 Request (section 2.2.6.3.1), the server MUST continue processing of the search indicated by the SID field in the request.

The SearchAttributes field from the original TRANS2_FIND_FIRST2 (section 2.2.6.2) MUST NOT be overridden by the TRANS2_FIND_NEXT2 Request. The SearchCount, Flags, and InformationLevel field values MUST override those used in previous requests that are part of the same search.

If the SMB_FIND_CONTINUE_FROM_LAST bit is set in the Flags field, the search MUST resume from the point immediately following the last entry previously returned. Otherwise, the search MUST be restarted based upon the ResumeKey field in the request.

Other than the modifications described preceding, search results are gathered and returned exactly as is done for the TRANS2_FIND_FIRST2. As specified for TRANS2_FIND_FIRST2 (section 2.2.6.2), if the remaining list of file system objects found by the search fits within the response and SMB_FIND_CLOSE_AT_EOS is set in the Flags field, or if SMB_FIND_CLOSE_AFTER_REQUEST is set in the request, the server MUST close the search.

Otherwise, the search remains open and can be continued with another TRANS2_FIND_NEXT2 Request or closed using an SMB_COM_FIND_CLOSE2 Request (section 2.2.4.48.1).<343>