2 * some defines so that we can figure out which MS OS and subsystem an
3 * application is running under. Also support for finding out which
4 * TCP/IP stack is being used. This is useful when you need to find out
5 * about the domain or the nameservers.
8 #if !defined( __MIT_WHICH_H )
11 // these should become resources and loaded at run time
12 #define NT_32 "Winsock 2.0"
13 #define NT_16 "Windows NT 16-bit Windows Sockets"
14 #define W95_32 "Microsoft Windows Sockets Version 1.1."
15 #define W95_16 "Microsoft Windows Sockets Version 1.1."
16 #define LWP_16 "Novell Winsock version 1.1"
17 // Note that these are currently in wshelper.h and should be somewhere else
22 #define NOVELL_LWP_16 5
30 #define MS_OS_NT_UNKNOWN 124
31 #define MS_OS_UNKNOWN 0
33 #define STACK_UNKNOWN 0
34 #define UNKNOWN_16_UNDER_32 -2
35 #define UNKNOWN_16_UNDER_16 -3
36 #define UNKNOWN_32_UNDER_32 -4
37 #define UNKNOWN_32_UNDER_16 -5
41 @comm these are the current MIT DNS servers, the wshelper and
42 wshelp32 DLLs will do their best to find the correct DNS servers
43 for the local machine however, if all else fails these will be used
44 as a last resort. Site administrators outside of the MIT domain
45 should change these defaults to their own defaults either by
46 editing this file and recompiling or by editing the string tables
47 of the binaries. Don't use App Studio to edit the .RC files.
49 #define DNS1 "18.70.0.160" \n
50 #define DNS2 "18.71.0.151" \n
51 #define DNS3 "18.72.0.3" \n
53 #define DEFAULT_DOMAIN "mit.edu" \n
56 #define DNS1 "18.70.0.160"
57 #define DNS2 "18.71.0.151"
58 #define DNS3 "18.72.0.3"
60 #define DEFAULT_DOMAIN "mit.edu"
64 #if !defined(WINDOWS) && !defined(_WINDOWS) && !defined(_WIN32)
65 #define _PATH_RESCONF "/etc/resolv.conf"
67 #define _PATH_RESCONF "c:/net/tcp/resolv.cfg"
72 /* Microsoft TCP/IP registry values that we care about */
73 #define NT_TCP_PATH "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"
74 #define NT_TCP_PATH_TRANS "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Transient"
75 #define W95_TCP_PATH "SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP"
77 #define NT_DOMAIN_KEY "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Domain"
78 #define NT_NS_KEY "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\NameServer"
80 #define W95_DOMAIN_KEY "SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP\\Domain"
81 #define W95_NS_KEY "SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP\\NameServer"
84 #endif // __MIT_WHICH_H