Windows: remove trailing whitespace
[openafs.git] / src / WINNT / kfw / inc / wshelper / mitwhich.h
1 /*! \file mitwhich.h
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.
6  */
7
8 #if !defined( __MIT_WHICH_H )
9 #define __MIT_WHICH_H
10
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
18 #define MS_NT_32 1
19 #define MS_NT_16 2
20 #define MS_95_32 3
21 #define MS_95_16 4
22 #define NOVELL_LWP_16 5
23
24 #define MS_OS_WIN 1
25 #define MS_OS_95 2
26 #define MS_OS_NT 4
27 #define MS_OS_2000 12
28 #define MS_OS_XP 28
29 #define MS_OS_2003 60
30 #define MS_OS_NT_UNKNOWN 124
31 #define MS_OS_UNKNOWN 0
32
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
38
39
40 /*
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.
48 \n
49         #define DNS1    "18.70.0.160" \n
50         #define DNS2    "18.71.0.151" \n
51         #define DNS3    "18.72.0.3"   \n
52 \n
53         #define DEFAULT_DOMAIN "mit.edu" \n
54 */
55
56 #define DNS1    "18.70.0.160"
57 #define DNS2    "18.71.0.151"
58 #define DNS3    "18.72.0.3"
59
60 #define DEFAULT_DOMAIN "mit.edu"
61
62
63 #ifndef _PATH_RESCONF
64 #if !defined(WINDOWS) && !defined(_WINDOWS) && !defined(_WIN32)
65 #define _PATH_RESCONF  "/etc/resolv.conf"
66 #else
67 #define _PATH_RESCONF  "c:/net/tcp/resolv.cfg"
68 #endif
69 #endif
70
71
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"
76
77 #define NT_DOMAIN_KEY  "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Domain"
78 #define NT_NS_KEY      "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\NameServer"
79
80 #define W95_DOMAIN_KEY "SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP\\Domain"
81 #define W95_NS_KEY     "SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP\\NameServer"
82
83
84 #endif // __MIT_WHICH_H