3.2.5.6 Receiving an SMB_COM_CREATE Response

The SMB_COM_CREATE Response (section 2.2.4.4.2) MUST be processed as specified in section 3.2.5.1.

If the SMB_COM_CREATE 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 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 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.