3.2.5.11 Receiving an SMB_COM_CREATE_TEMPORARY Response

The SMB_COM_CREATE_TEMPORARY Response (section 2.2.4.15.2) MUST be processed as specified in section 3.2.5.1.

If the SMB_COM_CREATE_TEMPORARY was successful, a new Client.Open must be entered into the Client.Connection.OpenTable. Client.Open.FID is set to the returned FID, and Client.Open.OpLock is set based on the SMB_Header.Flags SMB_FLAGS_OPLOCK and SMB_FLAGS_OPBATCH flags. Client.Open.TreeConnect MUST be set to a Client.TreeConnect where Client.TreeConnect.TreeID matches the TID sent by the server in the SMB Header of the SMB_COM_CREATE_TEMPORARY Response. Client.Open.Session MUST be set to a Client.Session where Client.Session.SessionUID matches the UID sent by the server in the SMB Header of the SMB_COM_CREATE_TEMPORARY Response. Client.Open.Connection MUST be set to Client.Open.Session.Connection.

The Client.Open matching the FID provided in the response MUST be returned to the application. In addition, the name of the temporary file created by the server can be returned to the application, if requested.