3.3.4.16 Server Application Requests Querying a Share
The calling application provides tuple <ServerName, ShareName> of the share that is being queried. The server MUST look up the Share in ShareList where ServerName matches Share.ServerName and ShareName matches Share.Name. If the matching Share is found, the server MUST return a share in SHARE_INFO_503_I structure and SHARE_INFO_1005 structure with the following values set and return STATUS_SUCCESS to the calling application; otherwise the server MUST return an implementation-dependent error.
Output Parameters |
SMB2 Share Properties |
---|---|
SHARE_INFO_503_I.shi503_netname |
Share.Name |
SHARE_INFO_503_I.shi503_type |
Share.Type |
SHARE_INFO_503_I.shi503_remark |
Share.Remark |
SHARE_INFO_503_I.shi503_permissions |
0 |
SHARE_INFO_503_I.shi503_max_uses |
Share.MaxUses |
SHARE_INFO_503_I.shi503_current_uses |
Share.CurrentUses |
SHARE_INFO_503_I.shi503_path |
Share.LocalPath |
SHARE_INFO_503_I.shi503_passwd |
Empty string |
SHARE_INFO_503_I.shi503_servername |
Share.ServerName |
SHARE_INFO_503_I.shi503_security_descriptor |
Share.FileSecurity |
SHARE_INFO_1005.shi1005_flags |
ShareFlags MUST be set based on the individual share properties:
|