Source code of Windows XP (NT5)
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.

253 lines
9.7 KiB

  1. /*
  2. ** Template for version resources. Place this in your .rc file,
  3. ** editing the values for VER_FILETYPE, VER_FILESUBTYPE,
  4. ** VER_FILEDESCRIPTION_STR and VER_INTERNALNAME_STR as needed.
  5. ** See winver.h for possible values.
  6. **
  7. ** Ntverp.h defines several global values that don't need to be
  8. ** changed except for official releases such as betas, sdk updates, etc.
  9. **
  10. ** Common.ver has the actual version resource structure that all these
  11. ** #defines eventually initialize.
  12. */
  13. #include "strdefs.h"
  14. STRINGTABLE
  15. {
  16. TOKEN_ROUTE, "ROUTE"
  17. TOKEN_ADDRESS, "ADDRESS"
  18. TOKEN_INTERFACE, "IF"
  19. TOKEN_ARP, "ARP"
  20. TOKEN_IFINFO, "IFINFO"
  21. TOKEN_ADD, "ADD"
  22. TOKEN_DELETE, "DELETE"
  23. TOKEN_PRINT, "PRINT"
  24. TOKEN_MATCH, "MATCH"
  25. TOKEN_FLUSH, "FLUSH"
  26. TOKEN_ENABLE, "ENABLE"
  27. TOKEN_MASK, "MASK"
  28. TOKEN_METRIC, "METRIC"
  29. TOKEN_SRC, "SRC"
  30. TOKEN_STATS, "STATS"
  31. TOKEN_INFO, "INFO"
  32. TOKEN_NAME, "NAME"
  33. TOKEN_GUID, "GUID"
  34. MSG_RTTABLE_HDR, "\n\
  35. \nDestination\tMask\t\tNext Hop\tInterface\tMetric\tProtocol\
  36. \n-------------------------------------------------------------------------------\n"
  37. MSG_ADDRTABLE_HDR, "\n\
  38. \nAddress\t\tMask\t\tBroadcast Address\tI/f\tReassembly Size\
  39. \n-----------------------------------------------------------------------\n"
  40. MSG_ARPTABLE_HDR, "\n\
  41. \nIP Address\t\tPhysical Address\tInterface Index\tType\
  42. \n-----------------------------------------------------------------------\n"
  43. MSG_IF_INFO, "\n\
  44. Interface information for %1!s!\n\
  45. Index: %2!d!\n\
  46. Type: %3!s!\n\
  47. MTU: %4!u!\n\
  48. Speed: %5!u!\n\
  49. Physical Address: %6!s!\n\
  50. Admin Status: %7!s!\n\
  51. Operational Status: %8!s!\n\
  52. Last Change: %9!u!\n\
  53. In Octets: %10!u!\n\
  54. In Unicast Packets: %11!u!\n\
  55. In Non-unicast Packets: %12!u!\n\
  56. In Packets Discarded: %13!u!\n\
  57. In Erroneous Packets: %14!u!\n\
  58. In Unknown Protocol Packets: %15!u!\n\
  59. Out Octets: %16!u!\n\
  60. Out Unicast Packets: %17!u!\n\
  61. Out Non-unicast Packets: %18!u!\n\
  62. Out Packets Discarded: %19!u!\n\
  63. Out Erroneous Packets: %20!u!\n\
  64. Output Queue Length: %21!u!\n\
  65. Description: %22!s!\n\n"
  66. HMSG_IPKERN_USAGE, "\n\
  67. \nipkern {ROUTE|ADDRESS|IF|ARP|IFINFO} <parameters>\n\n"
  68. HMSG_ROUTE_USAGE, "\n\
  69. \nipkern ROUTE {ADD|DELETE|PRINT|MATCH} <parameters>\n\n"
  70. HMSG_ROUTE_ADD_USAGE, "\n\
  71. \nipkern ROUTE ADD <dest> MASK <mask> <nhop> [IF <ifIndex>] [METRIC <metric>]\
  72. \nwhere:\
  73. \n\tdest - Destination IP Address in dotted decimal format\
  74. \n\tmask - Mask for the route\
  75. \n\tnhop - Next hop to associate with the route. For non point to point\
  76. \n\t\tinterfaces, the next hop address must lie on the same network\
  77. \n\t\tas the interface on which the route is being added (if an \
  78. \n\t\tinterface is specified), i.e, there must be some address, mask\
  79. \n\t\tpair configured on the interface such that \
  80. \n\t\t\(tifAddr & ifMask) == (nhop & ifMask)\
  81. \n\tifIndex - the index of the interface on which to add the route\
  82. \n\tmetric - the metric to associate with the route\
  83. \n\nifIndex and metric are OPTIONAL\n\n"
  84. HMSG_ROUTE_DELETE_USAGE, "\n\
  85. \nipkern ROUTE DELETE <dest> [MASK <mask>] [<nhop>] [IF <ifIndex>]\
  86. \nwhere:\
  87. \n\tdest - Destination IP Address in dotted decimal format\
  88. \n\tmask - Mask of the route\
  89. \n\tnhop - Next hop of the route.\
  90. \n\tifIndex - the index of the interface on which to add the route\
  91. \n\nmask ifIndex and metric are OPTIONAL if a unique route can \
  92. \nbe found using only the destination; all three must be specified\
  93. \nif a unique route can not be found.\n\n"
  94. HMSG_ROUTE_MATCH_USAGE, "\n\
  95. \nipkern ROUTE MATCH <dest> [SRC <srcAddr>]\
  96. \nwhere:\
  97. \n\tdest - Destination for which route needs to be found\
  98. \n\tsrcAddr - OPTIONAL preferred source address\n\n"
  99. HMSG_ARP_USAGE, "\n\
  100. \nipkern ARP {PRINT|FLUSH} <parameters>\n\n"
  101. HMSG_ARP_FLUSH_USAGE, "\n\
  102. \nipkern ARP <ifIndex> \
  103. \nwhere:\
  104. \n\tifIndex - Index of the interface whose arp cache is to be flushed\n\n"
  105. HMSG_IF_USAGE, "\n\
  106. \nipkern IF {STATS | INFO | NAME | GUID} <parameters>\n\n"
  107. HMSG_IF_NAME_USAGE, "\n\
  108. \nipkern IF NAME <{Guid}>\n\n"
  109. HMSG_IF_GUID_USAGE, "\n\
  110. \nipkern IF GUID <Name>\n\n"
  111. EMSG_NO_ENTRIES1, "\n\
  112. \nNo %1!s! entries were found\n\n"
  113. EMSG_NO_ENTRIES2, "\n\
  114. \nNo entries were found\n\n"
  115. EMSG_RETRIEVAL_ERROR1, "\n\
  116. \nError %1!d! retrieving %2!s! from stack\n"
  117. EMSG_RETRIEVAL_ERROR2, "\n\
  118. \nError %1!d! retrieving information from stack\n"
  119. EMSG_UNIQUE_ROUTE_ABSENT, "\n\
  120. \nNo matching route found\n\n"
  121. EMSG_SET_ERROR1, "\n\
  122. \nError %1!d! setting %2!s! to stack\n"
  123. EMSG_SET_ERROR2, "\n\
  124. \nError %1!d! setting information to stack\n"
  125. EMSG_RT_BAD_DEST, "\n\
  126. \nThe destination can not be 255.255.255.255 and the subnet bits\
  127. \nof the destination must be 0 (i.e dest & mask == dest)\n\n"
  128. EMSG_RT_BAD_NHOP, "\n\
  129. \nThe next hop can not be 0.0.0.0 or a non-unicast address. For\
  130. \nmulti-access networks, the next hop must lie on the same network\
  131. \nas the interface the route is being added on\n\n"
  132. EMSG_RT_BAD_MASK, "\n\
  133. \nNon contiguous masks are not supported in Windows NT\n\n"
  134. EMSG_RT_ZERO_IF_METRIC, "\n\
  135. \nInterface index or metric can not be 0\n\n"
  136. EMSG_RT_BAD_IF_NHOP, "\n\
  137. \nEither the interface specified doesnt exist, or the nexthop is\
  138. \nnot on an adjacent network.\
  139. \nUse ipkern address to print the address and interface indices\n\n"
  140. EMSG_ARP_NO_SUCH_IF, "\n\
  141. \nAn interface with index %1!d! does not exist in the system\n\n"
  142. EMSG_UNABLE_TO_FLUSH_ARP, "\n\
  143. \nUnable to flush the arp cache on %1!d!. Error %2!d!\n\n"
  144. EMSG_ROUTE_ENABLE, "\n\
  145. \nError %1!d! occurred while dynamically enabling IP routing.\
  146. \nA reboot may be required.\n\n"
  147. EMSG_NO_SUCH_IF, "\n\
  148. \nNo such interface\n\n"
  149. STR_RTTABLE, "Route Table"
  150. STR_ADDRTABLE, "Address Table"
  151. STR_RTENTRY, "Route Entry"
  152. STR_ARPTABLE, "ARP Table"
  153. STR_IFTABLE, "Interface Table"
  154. STR_OTHER, "Other"
  155. STR_INVALID, "Invalid"
  156. STR_DYNAMIC, "Dynamic"
  157. STR_STATIC, "Static"
  158. STR_ETHERNET, "Ethernet"
  159. STR_TOKENRING, "Token Ring"
  160. STR_FDDI, "FDDI"
  161. STR_PPP, "PPP"
  162. STR_LOOPBACK, "Loop Back"
  163. STR_SLIP, "SLIP"
  164. STR_UP, "Up"
  165. STR_DOWN, "Down"
  166. STR_TESTING, "Testing"
  167. STR_NON_OPERATIONAL, "Non Operational"
  168. STR_UNREACHABLE, "Unreachable"
  169. STR_DISCONNECTED, "Disconnected"
  170. STR_CONNECTING, "Connecting"
  171. STR_CONNECTED, "Connected"
  172. STR_OPERATIONAL, "Operational"
  173. }
  174. #include <windows.h>
  175. #include <ntverp.h>
  176. /*-----------------------------------------------*/
  177. /* the following lines are specific to this file */
  178. /*-----------------------------------------------*/
  179. /* VER_FILETYPE, VER_FILESUBTYPE, VER_FILEDESCRIPTION_STR
  180. * and VER_INTERNALNAME_STR must be defined before including COMMON.VER
  181. * The strings don't need a '\0', since common.ver has them.
  182. */
  183. #define VER_FILETYPE VFT_APP
  184. /* possible values: VFT_UNKNOWN
  185. VFT_APP
  186. VFT_DLL
  187. VFT_DRV
  188. VFT_FONT
  189. VFT_VXD
  190. VFT_STATIC_LIB
  191. */
  192. #define VER_FILESUBTYPE VFT2_UNKNOWN
  193. /* possible values VFT2_UNKNOWN
  194. VFT2_DRV_PRINTER
  195. VFT2_DRV_KEYBOARD
  196. VFT2_DRV_LANGUAGE
  197. VFT2_DRV_DISPLAY
  198. VFT2_DRV_MOUSE
  199. VFT2_DRV_NETWORK
  200. VFT2_DRV_SYSTEM
  201. VFT2_DRV_INSTALLABLE
  202. VFT2_DRV_SOUND
  203. VFT2_DRV_COMM
  204. */
  205. #define VER_FILEDESCRIPTION_STR "Utility for getting IP Stack/s routing tables"
  206. #define VER_INTERNALNAME_STR "KERNROUT"
  207. #define VER_ORIGINALFILENAME_STR "KERNROUT"
  208. #include "common.ver" // NT5.0 version file.