Compartilhar via


3.3.4.12 Server Application Requests Querying a Share

The calling application MUST provide the tuple <ServerName, ShareName> of the share that is being queried. The server MUST look up the Share in Server.ShareTable. If the matching Share is found, the server MUST return a share in the SHARE_INFO_503_I ([MS-SRVS] section 2.2.4.27) and SHARE_INFO_1005 ([MS-SRVS] section 2.2.4.29) structures with the following values set and MUST return STATUS_SUCCESS to the calling application; otherwise, the server MUST return an implementation-dependent error.

Output parameters

[MS-CIFS] share properties

SHARE_INFO_503_I.shi503_netname

Server.Share.Name

SHARE_INFO_503_I.shi503_type

Server.Share.Type

SHARE_INFO_503_I.shi503_remark

Server.Share.Remark

SHARE_INFO_503_I.shi503_permissions

0x00000000

SHARE_INFO_503_I.shi503_max_uses

Server.Share.MaxUses

SHARE_INFO_503_I.shi503_current_uses

Server.Share.CurrentUses

SHARE_INFO_503_I.shi503_path

Server.Share.LocalPath

SHARE_INFO_503_I.shi503_passwd

Empty string

SHARE_INFO_503_I.shi503_servername

Server.Share.ServerName

SHARE_INFO_503_I.shi503_security_descriptor

NULL

SHARE_INFO_1005.shi1005_flags

0x00000000