Platform SDK: Network Management

SHARE_INFO_1

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.

typedef struct _SHARE_INFO_1 {
  LPWSTR    shi1_netname;
  DWORD     shi1_type;
  LPWSTR    shi1_remark;
} SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1;

Members

shi1_netname
Pointer to a Unicode string specifying the share name of a resource.
shi1_type
Specifies a DWORD value 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 Unicode string specifying an optional comment about the shared resource.

Requirements

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

See Also

Network Management Overview, Network Management Structures, Share Functions, NetShareEnum, NetShareGetInfo, NetShareSetInfo