Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

328 lines
14 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. NOTE - DONT USE 15000-15999
  6. Author:
  7. Amritansh Raghav 01/25/1996
  8. Revision History:
  9. --*/
  10. #ifndef __STRDEFS_H__
  11. #define __STRDEFS_H__
  12. #define MSG_NULL 1001
  13. #define HLP_IF_DUMP 2501
  14. #define HLP_IF_DUMP_EX 2502
  15. #define HLP_DUMP HLP_IF_DUMP
  16. #define HLP_DUMP_EX HLP_IF_DUMP_EX
  17. #define HLP_HELP 2601
  18. #define HLP_HELP_EX 2602
  19. #define HLP_IF_HELP1 HLP_HELP
  20. #define HLP_IF_HELP1_EX HLP_HELP_EX
  21. #define HLP_IF_HELP2 HLP_HELP
  22. #define HLP_IF_HELP2_EX HLP_HELP_EX
  23. #define HLP_HELP1 HLP_HELP
  24. #define HLP_HELP1_EX HLP_HELP_EX
  25. #define HLP_HELP2 HLP_HELP
  26. #define HLP_HELP2_EX HLP_HELP_EX
  27. #define HLP_IF_ADD_IF 3101
  28. #define HLP_IF_ADD_IF_EX 3102
  29. #define HLP_IF_DEL_IF 3201
  30. #define HLP_IF_DEL_IF_EX 3202
  31. #define HLP_IF_SET_CREDENTIALS 3301
  32. #define HLP_IF_SET_CREDENTIALS_EX 3302
  33. #define HLP_IF_SHOW_IF 3401
  34. #define HLP_IF_SHOW_IF_EX 3402
  35. #define HLP_IF_SHOW_CREDENTIALS 3450
  36. #define HLP_IF_SHOW_CREDENTIALS_EX 3451
  37. #define HLP_IF_SET_INTERFACE 3500
  38. #define HLP_IF_SET_INTERFACE_EX 3501
  39. #define HLP_IF_RESET_ALL 3550
  40. #define HLP_IF_RESET_ALL_EX 3551
  41. #define HLP_GROUP_ADD 3901
  42. #define HLP_GROUP_DELETE 3903
  43. #define HLP_GROUP_SET 3905
  44. #define HLP_GROUP_SHOW 3907
  45. #define HLP_GROUP_RESET 3908
  46. // ifip
  47. #define HLP_IFIP_SHOW_CONFIG 4001
  48. #define HLP_IFIP_SHOW_CONFIG_EX 4002
  49. #define HLP_IFIP_ADD_IPADDR 4003
  50. #define HLP_IFIP_ADD_IPADDR_EX 4004
  51. #define HLP_IFIP_SET_IPADDR 4005
  52. #define HLP_IFIP_SET_IPADDR_EX 4006
  53. #define HLP_IFIP_DEL_IPADDR 4007
  54. #define HLP_IFIP_DEL_IPADDR_EX 4008
  55. #define HLP_IFIP_SHOW_IPADDR 4009
  56. #define HLP_IFIP_SHOW_IPADDR_EX 4010
  57. #define HLP_IFIP_ADD_DNS 4011
  58. #define HLP_IFIP_ADD_DNS_EX 4012
  59. #define HLP_IFIP_SET_DNS 4013
  60. #define HLP_IFIP_SET_DNS_EX 4014
  61. #define HLP_IFIP_DEL_DNS 4015
  62. #define HLP_IFIP_DEL_DNS_EX 4016
  63. #define HLP_IFIP_SHOW_DNS 4017
  64. #define HLP_IFIP_SHOW_DNS_EX 4018
  65. #define HLP_IFIP_ADD_WINS 4021
  66. #define HLP_IFIP_ADD_WINS_EX 4022
  67. #define HLP_IFIP_SET_WINS 4023
  68. #define HLP_IFIP_SET_WINS_EX 4024
  69. #define HLP_IFIP_DEL_WINS 4025
  70. #define HLP_IFIP_DEL_WINS_EX 4026
  71. #define HLP_IFIP_SHOW_WINS 4027
  72. #define HLP_IFIP_SHOW_WINS_EX 4028
  73. // ifip offload
  74. #define HLP_IFIP_SHOW_OFFLOAD 4031
  75. #define HLP_IFIP_SHOW_OFFLOAD_EX 4032
  76. #define HLP_IFIP_DEL_ARPCACHE 4040
  77. #define HLP_IFIP_DEL_ARPCACHE_EX 4041
  78. #define HLP_IFIP_RESET 4050
  79. #define HLP_IFIP_RESET_EX 4051
  80. #define HLP_IPMIB_SHOW_IPSTATS 9300
  81. #define HLP_IPMIB_SHOW_IPSTATS_EX 9301
  82. #define HLP_IPMIB_SHOW_IPADDRESS 9302
  83. #define HLP_IPMIB_SHOW_IPADDRESS_EX 9303
  84. #define HLP_IPMIB_SHOW_IPFORWARD 9304
  85. #define HLP_IPMIB_SHOW_IPFORWARD_EX 9305
  86. #define HLP_IPMIB_SHOW_TCPSTATS 9306
  87. #define HLP_IPMIB_SHOW_TCPSTATS_EX 9307
  88. #define HLP_IPMIB_SHOW_TCPCONN 9308
  89. #define HLP_IPMIB_SHOW_TCPCONN_EX 9309
  90. #define HLP_IPMIB_SHOW_UDPSTATS 9310
  91. #define HLP_IPMIB_SHOW_UDPSTATS_EX 9311
  92. #define HLP_IPMIB_SHOW_UDPCONN 9312
  93. #define HLP_IPMIB_SHOW_UDPCONN_EX 9313
  94. #define HLP_IPMIB_SHOW_JOINS 9314
  95. #define HLP_IPMIB_SHOW_JOINS_EX 9315
  96. #define HLP_IPMIB_SHOW_IPNET 9322
  97. #define HLP_IPMIB_SHOW_IPNET_EX 9323
  98. #define HLP_IPMIB_SHOW_ICMP 9324
  99. #define HLP_IPMIB_SHOW_ICMP_EX 9325
  100. #define HLP_IPMIB_SHOW_INTERFACE 9328
  101. #define HLP_IPMIB_SHOW_INTERFACE_EX 9329
  102. //
  103. // STRING_Xxx are used to display configuration etc.
  104. // These should generally be lower case, first letter capitalized
  105. //
  106. #define STRING_ENABLED 9001
  107. #define STRING_DISABLED 9002
  108. #define STRING_CONNECTED 9003
  109. #define STRING_DISCONNECTED 9004
  110. #define STRING_CONNECTING 9005
  111. #define STRING_CLIENT 9006
  112. #define STRING_HOME_ROUTER 9007
  113. #define STRING_FULL_ROUTER 9008
  114. #define STRING_DEDICATED 9009
  115. #define STRING_INTERNAL 9010
  116. #define STRING_LOOPBACK 9011
  117. #define STRING_PRIMARY 9012
  118. #define STRING_BOTH 9013
  119. #define STRING_NONE 9014
  120. #define STRING_OTHER 30001
  121. #define STRING_ETHERNET 30002
  122. #define STRING_TOKENRING 30003
  123. #define STRING_FDDI 30004
  124. #define STRING_PPP 30005
  125. #define STRING_SLIP 30007
  126. #define STRING_STATIC 33020
  127. #define STRING_INVALID 34002
  128. // interface status
  129. #define STRING_UP 36001
  130. #define STRING_DOWN 36002
  131. #define STRING_TESTING 36003
  132. #define STRING_NON_OPERATIONAL 36051
  133. #define STRING_UNREACHABLE 36052
  134. #define STRING_OPERATIONAL 36056 // interface status
  135. // TCP constants
  136. #define STRING_CONSTANT 31002
  137. #define STRING_RSRE 31003
  138. #define STRING_VANJ 31004
  139. // TCP states
  140. #define STRING_CLOSED 32001
  141. #define STRING_LISTEN 32002
  142. #define STRING_SYN_SENT 32003
  143. #define STRING_SYN_RCVD 32004
  144. #define STRING_ESTAB 32005
  145. #define STRING_FIN_WAIT1 32006
  146. #define STRING_FIN_WAIT2 32007
  147. #define STRING_CLOSE_WAIT 32008
  148. #define STRING_CLOSING 32009
  149. #define STRING_LAST_ACK 32010
  150. #define STRING_TIME_WAIT 32011
  151. #define STRING_DELETE_TCB 32012
  152. #define STRING_DYNAMIC 32013
  153. #define EMSG_NO_PHONEBOOK 11001
  154. #define EMSG_BAD_OPTION_VALUE 11004
  155. #define EMSG_CANT_CREATE_IF 11006
  156. #define EMSG_CAN_NOT_CONNECT_DIM 11011
  157. #define EMSG_BAD_IF_TYPE 11012
  158. #define EMSG_IF_ALREADY_EXISTS 11013
  159. #define EMSG_CANT_FIND_EOPT 11014
  160. #define EMSG_IF_BAD_CREDENTIALS_TYPE 11015
  161. #define EMSG_IF_CONNECT_ONLY_WHEN_ROUTER_RUNNING 11016
  162. #define EMSG_IF_WAN_ONLY_COMMAND 11017
  163. #define EMSG_IF_LAN_ONLY_COMMAND 11018
  164. #define EMSG_IF_NEWNAME_ONLY_FOR_LAN 11019
  165. #define EMSG_IF_NEWNAME_ONLY_FOR_LOCAL 11020
  166. #define EMSG_COULD_NOT_GET_IPADDRESS 11021
  167. // error messages for IfIp
  168. #define EMSG_IPADDR_PRESENT 11031
  169. #define EMSG_DHCP_MODE 11032
  170. #define EMSG_DEFGATEWAY_PRESENT 11033
  171. #define EMSG_STATIC_INPUT 11035
  172. #define EMSG_DHCP_DELETEADDR 11036
  173. #define EMSG_ADDRESS_NOT_PRESENT 11037
  174. #define EMSG_MIN_ONE_ADDR 11038
  175. #define EMSG_GATEWAY_NOT_PRESENT 11039
  176. #define EMSG_ADD_IPADDR_DHCP 11040
  177. #define EMSG_PROPERTIES 11041
  178. #define EMSG_SERVER_PRESENT 11042
  179. #define EMSG_SERVER_ABSENT 11043
  180. #define EMSG_INVALID_INTERFACE 11044
  181. #define EMSG_NETCFG_WRITE_LOCK 11045
  182. #define EMSG_OPEN_APPEND 11046
  183. #define DMP_IF_HEADER_COMMENTS 20001
  184. #define DMP_IF_FOOTER_COMMENTS 20002
  185. #define MSG_MIB_IF_HDR 21002
  186. #define MSG_MIB_INTERFACE 21003
  187. #define MSG_MIB_IP_STATS 21004
  188. #define MSG_MIB_IP_ADDR_HDR 21005
  189. #define MSG_MIB_IP_ADDR_ENTRY 21006
  190. #define MSG_MIB_IP_NET_HDR 21009
  191. #define MSG_MIB_IP_NET_ENTRY 21010
  192. #define MSG_MIB_ICMP 21011
  193. #define MSG_MIB_UDP_STATS 21012
  194. #define MSG_MIB_UDP_ENTRY_HDR 21013
  195. #define MSG_MIB_UDP_ENTRY 21014
  196. #define MSG_MIB_TCP_STATS 21015
  197. #define MSG_MIB_TCP_ENTRY_HDR 21016
  198. #define MSG_MIB_TCP_ENTRY 21017
  199. #define MSG_MIB_JOIN_HDR 21059
  200. #define MSG_MIB_JOIN_ROW 21060
  201. #define MSG_IF_TABLE_HDR 50001
  202. #define MSG_IF_ENTRY_LONG 50002
  203. #define MSG_IF_CREDENTIALS 50003
  204. #define MSG_IF_ENTRY_SHORT 50004
  205. // msgs for ifip
  206. #define MSG_DHCP 50021
  207. #define MSG_STATIC 50022
  208. #define MSG_IPADDR_LIST 50023
  209. #define MSG_IPADDR_LIST1 50024
  210. #define MSG_IFIP_HEADER 50025
  211. #define MSG_OPTIONS_LIST 50026
  212. #define MSG_IFMETRIC 50028
  213. #define MSG_GATEWAY 50030
  214. #define MSG_DNS_HDR 50031
  215. #define MSG_DNS_DHCP 50032
  216. #define MSG_WINS_HDR 50033
  217. #define MSG_WINS_DHCP 50034
  218. #define MSG_ADDR1 50035
  219. #define MSG_ADDR2 50036
  220. #define MSG_OPTION 50037
  221. #define MSG_NONE 50038
  222. #define MSG_DEBUG_HDR 50039
  223. #define MSG_DNS_DHCP_HDR 50040
  224. #define MSG_WINS_DHCP_HDR 50041
  225. #define DMP_IFIP_HEADER 50051
  226. #define DMP_IFIP_FOOTER 50052
  227. #define DMP_IFIP_INTERFACE_HEADER 50053
  228. #define MSG_DDNS_SUFFIX 50054
  229. // Capability Flags
  230. #define MSG_OFFLOAD_HDR 50100
  231. #define MSG_TCP_XMT_CHECKSUM_OFFLOAD 50101
  232. #define MSG_IP_XMT_CHECKSUM_OFFLOAD 50102
  233. #define MSG_TCP_RCV_CHECKSUM_OFFLOAD 50103
  234. #define MSG_IP_RCV_CHECKSUM_OFFLOAD 50104
  235. #define MSG_TCP_LARGE_SEND_OFFLOAD 50105
  236. // IPSEC General Xmit\Recv capabilities
  237. #define MSG_IPSEC_OFFLOAD_CRYPTO_ONLY 50111
  238. #define MSG_IPSEC_OFFLOAD_AH_ESP 50112
  239. #define MSG_IPSEC_OFFLOAD_TPT_TUNNEL 50113
  240. #define MSG_IPSEC_OFFLOAD_V4_OPTIONS 50114
  241. #define MSG_IPSEC_OFFLOAD_QUERY_SPI 50115
  242. // IPSEC AH Xmit\Recv capabilities
  243. #define MSG_IPSEC_OFFLOAD_AH_XMT 50121
  244. #define MSG_IPSEC_OFFLOAD_AH_RCV 50122
  245. #define MSG_IPSEC_OFFLOAD_AH_TPT 50123
  246. #define MSG_IPSEC_OFFLOAD_AH_TUNNEL 50124
  247. #define MSG_IPSEC_OFFLOAD_AH_MD5 50125
  248. #define MSG_IPSEC_OFFLOAD_AH_SHA_1 50126
  249. // IPSEC ESP Xmit\Recv capabilities
  250. #define MSG_IPSEC_OFFLOAD_ESP_XMT 50131
  251. #define MSG_IPSEC_OFFLOAD_ESP_RCV 50132
  252. #define MSG_IPSEC_OFFLOAD_ESP_TPT 50133
  253. #define MSG_IPSEC_OFFLOAD_ESP_TUNNEL 50134
  254. #define MSG_IPSEC_OFFLOAD_ESP_DES 50135
  255. #define MSG_IPSEC_OFFLOAD_ESP_DES_40 50136
  256. #define MSG_IPSEC_OFFLOAD_ESP_3_DES 50137
  257. #define MSG_IPSEC_OFFLOAD_ESP_NONE 50138
  258. #define MSG_IP_DIM_ERROR 60005
  259. #define MSG_NO_SUCH_IF 60006
  260. #define MSG_IP_LOCAL_ROUTER_NOT_RUNNING 60011
  261. #define MSG_IP_REMOTE_ROUTER_NOT_RUNNING 60013
  262. #define MSG_IP_NO_ENTRIES 60015
  263. #define MSG_IP_NOT_ENOUGH_MEMORY 60024
  264. #define MSG_CTRL_C_TO_QUIT 60062
  265. #endif //__STDEFS_H__