3.2.4.24 Application Requests a Tree Disconnect (Unmount Share)

The application MUST provide the Client.TreeConnect of the tree connect to be closed. The client MUST construct an SMB_COM_TREE_DISCONNECT request as defined in section 2.2.4.51.1. The request MUST be sent to the server as described in section 3.2.4.1. All locks associated with open files within the share represented by the Client.TreeConnect.TID are released. All open search and file handles that represent objects within the TID are closed.