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.

Syntax


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. Calls to the NetShareSetInfo function ignore this member.

shi1_type

A combination of values that specify the type of the shared resource. Calls to the NetShareSetInfo function ignore this member.

One of the following values may be specified. You can isolate these values by using the STYPE_MASK value.

ValueMeaning
STYPE_DISKTREE

Disk drive.

STYPE_PRINTQ

Print queue.

STYPE_DEVICE

Communication device.

STYPE_IPC

Interprocess communication (IPC).

 

In addition, one or both of the following values may be specified.

ValueMeaning
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 Network Share Functions.

STYPE_TEMPORARY

A temporary share.

 

shi1_remark

Pointer to a Unicode string specifying an optional comment about the shared resource.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Lmshare.h (include Lm.h)

See also

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft