共用方式為


2.2.1.6.5 Search ID (SID) Generation

Search IDs (SIDs) are generated on CIFS servers. The generation of SIDs MUST satisfy the following constraints:

  • The SID MUST be a 16-bit opaque value for a specific TRANS2_FIND_FIRST2 Request (section 2.2.6.2.1).

  • The SID MUST be unique for a specified client/server SMB connection.

  • The SID MUST remain valid for the lifetime of the SMB connection while the search operation is being performed, or until the client sends a request to the server to close the SID.

  • Once a SID has been closed, the value can be reused by another TRANS2_FIND_FIRST2 Request.

  • The value 0xFFFF MUST NOT be used as a valid SID. All other possible values for SID, including zero (0x0000), are valid. The value 0xFFFF is reserved.

The acronym SID is also used to indicate a session ID. The two usages appear in completely different contexts.