3.3.4.15 Server Application Deregisters a Share

The calling application provides tuple <ServerName, ShareName> of the share that is being deregistered. The server MUST look up the Share in ShareList where ServerName matches Share.ServerName and ShareName matches Share.Name. If a Share is found, the server MUST remove it from the list and MUST return STATUS_SUCCESS to the calling application; otherwise, the server MUST return an implementation-specific error.

The server MUST close every Open in GlobalOpenTable where Open.TreeConnect is not NULL and Open.TreeConnect.Share matches the current share as specified in 3.3.4.17.

The server MUST enumerate every session in GlobalSessionTable and every tree connect in Session.TreeConnectTable to free all tree connect objects where TreeConnect.Share matches the current share.