Platform SDK: SNA Server |
The SNALink calls the SNAGetSystemInfo function to obtain information about SNA Server and the network operating system.
INTEGER SNAGetSystemInfo( struct cs_info *pCSInfo );
struct cs_info { unsigned short length; unsigned char major_ver; unsigned char minor_ver; unsigned char config_share[80]; unsigned short nos; };
1 for Comm Server 1.1
2 for SNA Server 2.0/2.1
3 for SNA Server 3.0
4 for SNA Server 4.0
10 for Comm Server 1.1
00 for SNA Server 2.0
20 for SNA Server 2.1
00 for SNA Server 3.0
00 for SNA Server 4.0
bit 0: LAN Manager/LAN Server (named pipes)
bit 1: NetWare (IPX/SPX)
bit 2: AppleTalk
bit 3: Banyan VINES (VINES IP)
bit 4: TCP/IP
The application must set the length parameter to the length of the cs_info structure (86 bytes in the current version). Any other value will be rejected. This parameter is used to ensure compatibility with future versions; an application supplying this length will always obtain the information shown here, but in future versions it may be possible to specify larger values and obtain further information.
On successful return, the cs_info data structure contains the version number of SNA Server (SNA Server 2.x, SNA Server 3.0, or Comm Server 1.x, for older versions), the path to the current configuration file, and the network operating system over which SNA Server is running.
If there is no configuration file server available, only the version number fields are valid; the other fields should not be checked.