SHARE_INFO_501

The SHARE_INFO_501 structure contains information about the shared resource, including name of the resource, type and permissions, and the number of connections.

typedef struct _SHARE_INFO_501 {
    LPWSTR    shi501_netname;
    DWORD     shi501_type;
    LPWSTR    shi501_remark;
    DWORD     shi501_flag;
} SHARE_INFO_501, *PSHARE_INFO_501, *LPSHARE_INFO_501;
 

Members

shi501_netname
A Unicode string containing the sharename of a resource.
Shi501_type
One of the following four values specifying the type of share:
Value Meaning
STYPE_DISKTREE Disk drive
STYPE_PRINTQ Print queue
STYPE_DEVICE Communication device
STYPE_IPC Interprocess Communication (IPC)

shi501_remark
Points to a Unicode string containing an optional comment about the shared resource.
shi501_flag
Sets the following flag value:
Value Meaning
CSC_CACHEABLE This flag is an advisory to clients stating that, if they wish and are able, they can legitimately and automatically cache files on this share for access when the client is disconnected from the network.

See Also

Networking (Net) Overview, Net Structures