share_info_1 Structure

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.

Syntax

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

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.

    STYPE_TEMPORARY

    A temporary share.

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

Requirements

Client Windows Me, Windows 98, or Windows 95
Header Svrapi.h

See Also

Network Management Overview
Network Management Structures
Share Functions
NetShareEnum
share_info_50

Send comments about this topic to Microsoft

Build date: 1/7/2009