2.3.12 SERVER_INFO_101

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

 typedef struct _SERVER_INFO_101 {
   DWORD sv101_platform_id;
   [string] wchar_t* sv101_name;
   DWORD sv101_version_major;
   DWORD sv101_version_minor;
   DWORD sv101_version_type;
   [string] wchar_t* sv101_comment;
 } SERVER_INFO_101,
  *PSERVER_INFO_101,
  *LPSERVER_INFO_101;

sv101_platform_id: Specifies the information level to use for platform-specific information.

Name

Value

PLATFORM_ID_DOS

300

PLATFORM_ID_OS2

400

PLATFORM_ID_NT

500

PLATFORM_ID_OSF

600

PLATFORM_ID_VMS

700

sv101_name: A pointer to a null-terminated Unicode UTF-16 Internet host name or NetBIOS host name of a server.

sv101_version_major: Specifies the major release version number of the operating system. The server MUST set this field to an implementation-specific major release version number that corresponds to the host operating system as specified in the following table.

Operating System

Major version

Windows NT 4.0 operating system

4

Windows 2000 operating system

5

Windows XP operating system

5

Windows Server 2003 operating system

5

Windows Vista operating system

6

Windows Server 2008 operating system

6

Windows Server 2008 R2 operating system

6

sv101_version_minor: Specifies the minor release version number of the operating system. The server MUST set this field to an implementation-specific minor release version number that corresponds to the host operating system as specified in the following table.

Operating System

Minor version

Windows NT 4.0

0

Windows 2000

0

Windows XP

1

Windows Server 2003

2

Windows Vista

0

Windows Server 2008

0

Windows Server 2008 R2

1

sv101_version_type: The sv101_version_type field specifies the SV_TYPE flags, which indicate the software services that are available (but not necessarily running) on the server. This member MUST be a combination of one or more of the following values.

Constant/Value

Description

SV_TYPE_WORKSTATION

0x00000001

A server running the WorkStation Service.

SV_TYPE_SERVER

0x00000002

A server running the Server Service.

SV_TYPE_SQLSERVER

0x00000004

A server running SQL Server.

SV_TYPE_DOMAIN_CTRL

0x00000008

A primary domain controller.

SV_TYPE_DOMAIN_BAKCTRL

0x00000010

A backup domain controller.

SV_TYPE_TIME_SOURCE

0x00000020

A server is available as a time source for network time synchronization.

SV_TYPE_AFP

0x00000040

An Apple File Protocol server.

SV_TYPE_NOVELL

0x00000080

A Novell server.

SV_TYPE_DOMAIN_MEMBER

0x00000100

A LAN Manager 2.x domain member.

SV_TYPE_PRINTQ_SERVER

0x00000200

A server sharing print queue.

SV_TYPE_DIALIN_SERVER

0x00000400

A server running a dial-in service.

SV_TYPE_XENIX_SERVER

0x00000800

A Xenix server.

SV_TYPE_NT

0x00001000

Windows Server 2003, Windows XP, Windows 2000, or Windows NT operating system.

SV_TYPE_WFW

0x00002000

A server running Windows for Workgroups.

SV_TYPE_SERVER_MFPN

0x00004000

Microsoft File and Print for NetWare.

SV_TYPE_SERVER_NT

0x00008000

Windows Server 2003, Windows 2000 Server operating system, or a server that is not a domain controller.

SV_TYPE_POTENTIAL_BROWSER

0x00010000

A server that can run the browser service.

SV_TYPE_BACKUP_BROWSER

0x00020000

A server running a browser service as backup.

SV_TYPE_MASTER_BROWSER

0x00040000

A server running the master browser service.

SV_TYPE_DOMAIN_MASTER

0x00080000

A server running the domain master browser.

SV_TYPE_WINDOWS

0x00400000

Windows Millennium Edition operating system, Windows 98 operating system, or Windows 95.

SV_TYPE_TERMINALSERVER

0x02000000

Terminal Server.

SV_TYPE_CLUSTER_VS_NT

0x04000000

Cluster virtual servers available in the domain.

SV_TYPE_LOCAL_LIST_ONLY

0x40000000

Servers maintained by the browser.

SV_TYPE_DOMAIN_ENUM

0x80000000

Primary domain.

SV_TYPE_ALL

0xFFFFFFFF

All servers.

sv101_comment: A pointer to a null-terminated Unicode UTF-16 string that specifies a comment that describes the server.

Show: