3.2.5.4 Receiving an SMB_COM_TREE_CONNECT or SMB_COM_TREE_CONNECT_ANDX Response

The response MUST be received as specified in section 3.2.5.1.

If the tree connect was successful, a new Client.TreeConnect entry is initialized and stored in Client.Connection.TreeConnectTable. The TID returned in the SMB Header (section 2.2.3.1) of the response can now be used for other operations. The client MUST set Client.TreeConnect.Session to Client.Session, where Client.Session.SessionUID matches the UID field in the response. The client MUST return the new Client.TreeConnect and the Client.Session to the application that invoked the Application Requests Connecting to a Share (section 3.2.4.2) event to connect to the share. The client sets the share type based on the Service string in the response.

Share type

Service string

Disk Share

"A:"

Printer Share

"LPT1:"

Named Pipe

"IPC"

Serial Communications Device

"COMM"

unknown

None of the above

Show: