Platform SDK: Network Management

SERVER_INFO_101

The SERVER_INFO_101 structure contains information about the specified server, including name, platform, type of server, and associated software.

typedef struct _SERVER_INFO_101 {
  DWORD     sv101_platform_id;
  LPWSTR    sv101_name;
  DWORD     sv101_version_major;
  DWORD     sv101_version_minor;
  DWORD     sv101_type;
  LPWSTR    sv101_comment;
} SERVER_INFO_101, *PSERVER_INFO_101, *LPSERVER_INFO_101;

Members

sv101_platform_id
Specifies the information level to use for platform-specific information. This member can be one of the following values, defined in the lmcons.h file: PLATFORM_ID_DOS, PLATFORM_ID_OS2, PLATFORM_ID_NT, PLATFORM_ID_OSF, or PLATFORM_ID_VMS.
sv101_name
Pointer to a Unicode string specifying the name of a server.
sv101_version_major
Specifies, in the least significant 4 bits of the byte, the major release version number of the operating system. The most significant 4 bits of the byte specifies the server type. The mask MAJOR_VERSION_MASK should be used to ensure correct results.
sv101_version_minor
Specifies the minor release version number of the operating system.
sv101_type
Specifies the type of software the computer is running. This member can be one of the following values.
Value Meaning
SV_TYPE_WORKSTATION A LAN Manager workstation
SV_TYPE_SERVER A LAN Manager server
SV_TYPE_SQLSERVER Any server running with Microsoft SQL Server
SV_TYPE_DOMAIN_CTRL Primary domain controller
SV_TYPE_DOMAIN_BAKCTRL Backup domain controller
SV_TYPE_TIME_SOURCE Server running the Timesource service
SV_TYPE_AFP Apple File Protocol server
SV_TYPE_NOVELL Novell server
SV_TYPE_DOMAIN_MEMBER LAN Manager 2.x domain member
SV_TYPE_LOCAL_LIST_ONLY Servers maintained by the browser
SV_TYPE_PRINTQ_SERVER Server sharing print queue
SV_TYPE_DIALIN_SERVER Server running dial-in service
SV_TYPE_XENIX_SERVER Xenix server
SV_TYPE_SERVER_MFPN Microsoft File and Print for NetWare
SV_TYPE_NT Windows NT/Windows 2000 workstation or server
SV_TYPE_WFW Server running Windows for Workgroups
SV_TYPE_SERVER_NT Windows NT/Windows 2000 server that is not a domain controller
SV_TYPE_POTENTIAL_BROWSER Server that can run the browser service
SV_TYPE_BACKUP_BROWSER Server running a browser service as backup
SV_TYPE_MASTER_BROWSER Server running the master browser service
SV_TYPE_DOMAIN_MASTER Server running the domain master browser
SV_TYPE_DOMAIN_ENUM Primary domain
SV_TYPE_WINDOWS Windows 95 or later
SV_TYPE_ALL All servers
SV_TYPE_TERMINALSERVER Terminal Server
SV_TYPE_CLUSTER_NT Server clusters available in the domain

sv101_comment
Pointer to a Unicode string specifying a comment describing the server. The comment can be null.

Remarks

To retrieve a value that indicates whether a share is the root volume in a Dfs tree structure, you must call the NetShareGetInfo function and specify information level 1005.

Requirements

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

See Also

Network Management Overview, Network Management Structures, Server Functions, NetServerEnum, NetServerGetInfo, NetServerSetInfo, NetShareGetInfo