Server Application Updates a Share

To update an existing Share, the calling application provides a share in the SHARE_INFO_503_I ([MS-SRVS] section and SHARE_INFO_1005 ([MS-SRVS] section structures as input parameters. The server MUST validate the SHARE_INFO_503_I and SHARE_INFO_1005 structures as specified in [MS-SRVS] section If any member in the structures is invalid, the server MUST return STATUS_INVALID_PARAMETER to the calling application. The server MUST look up the Share in Server.ShareTable through the tuple <shi503_servername, shi503_netname>. If the matching Share is found, the server MUST update the Share by setting the following values and MUST return STATUS_SUCCESS to the calling application; otherwise, the server MUST return an implementation-specific error.

  • Share.Remark MUST be set to shi503_remark.

  • Share.MaxUses MUST be set to shi503_max_uses.

  • Share.FileSecurity MUST be set to shi503_security_descriptor.