Platform SDK: Network Management

share_info_1

Windows 95/98: The share_info_1 structure contains information about the shared resource, including the name and type of the resource, and a comment associated with the resource.

Windows NT/2000: This structure is not supported on Windows NT/Windows 2000. You can use the SHARE_INFO_1 structure instead.

struct _share_info_1 {
  char            shi1_netname[LM20_NNLEN+1];
  char            shi1_pad1;
  unsigned short  shi1_type;
  char FAR *      shi1_remark;
};

Members

shi1_netname
Specifies a string containing the share name of the resource.
shi1_pad1
Specifies padding inserted to align the next member.
shi1_type
Specifies an unsigned SHORT integer that contains the type of the shared resource.
Value Meaning
STYPE_DISKTREE Disk drive
STYPE_PRINTQ Print queue
STYPE_DEVICE Communication device
STYPE_IPC Interprocess communication (IPC)
STYPE_SPECIAL Special share reserved for interprocess communication (IPC$) or remote administration of the server (ADMIN$). Can also refer to administrative shares such as C$, D$, E$, and so forth. For more information, see the network management share functions.

shi1_remark
Pointer to a string containing an optional comment about the shared resource.

Requirements

  Windows NT/2000: Unsupported.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Svrapi.h.

See Also

Network Management Overview, Network Management Structures, Share Functions, NetShareEnum, NetShareGetInfo, share_info_0, share_info_2, share_info_50