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.

179 lines
5.9 KiB

  1. /*++
  2. Copyright (c) 1999, Microsoft Corporation
  3. Module Name:
  4. sample\prstring.h
  5. Abstract:
  6. The file contains definitions of command line option tag strings.
  7. --*/
  8. #include "stdafx.h"
  9. //#include <netsh.h>
  10. #include <netshp.h>
  11. #include "diagnostics.h"
  12. // context's version
  13. #define DGLOGS_CONTEXT_VERSION 1
  14. // Version number
  15. #define DGLOGS_HELPER_VERSION 1
  16. DWORD WINAPI
  17. InitHelperDllEx(
  18. IN DWORD dwNetshVersion,
  19. OUT PVOID pReserved
  20. );
  21. DWORD
  22. WINAPI
  23. DglogsStartHelper(
  24. IN CONST GUID *pguidParent,
  25. IN DWORD dwVersion
  26. );
  27. DWORD
  28. HandleShow(
  29. IN LPCWSTR pwszMachine,
  30. IN OUT LPWSTR *ppwcArguments,
  31. IN DWORD dwCurrentIndex,
  32. IN DWORD dwArgCount,
  33. IN DWORD dwFlags,
  34. IN LPCVOID pvData,
  35. OUT BOOL *pbDone
  36. );
  37. DWORD
  38. HandleShowGui(
  39. IN LPCWSTR pwszMachine,
  40. IN OUT LPWSTR *ppwcArguments,
  41. IN DWORD dwCurrentIndex,
  42. IN DWORD dwArgCount,
  43. IN DWORD dwFlags,
  44. IN LPCVOID pvData,
  45. OUT BOOL *pbDone
  46. );
  47. DWORD
  48. HandlePing(
  49. IN LPCWSTR pwszMachine,
  50. IN OUT LPWSTR *ppwcArguments,
  51. IN DWORD dwCurrentIndex,
  52. IN DWORD dwArgCount,
  53. IN DWORD dwFlags,
  54. IN LPCVOID pvData,
  55. OUT BOOL *pbDone
  56. );
  57. DWORD
  58. HandleConnect(
  59. IN LPCWSTR pwszMachine,
  60. IN OUT LPWSTR *ppwcArguments,
  61. IN DWORD dwCurrentIndex,
  62. IN DWORD dwArgCount,
  63. IN DWORD dwFlags,
  64. IN LPCVOID pvData,
  65. OUT BOOL *pbDone
  66. );
  67. DWORD
  68. WINAPI
  69. SampleDump(
  70. IN LPCWSTR pwszRouter,
  71. IN OUT LPWSTR *ppwcArguments,
  72. IN DWORD dwArgCount,
  73. IN LPCVOID pvData
  74. );
  75. ////////////////////////////////////////
  76. // TOKENS
  77. ////////////////////////////////////////
  78. #define TOKEN_DGLOGS L"diag"
  79. ////////////////////////////////////////
  80. // Configuration commands
  81. ////////////////////////////////////////
  82. // Commands supported by most protocols
  83. //
  84. #define CMD_DUMP L"dump"
  85. #define CMD_HELP1 L"help"
  86. #define CMD_HELP2 L"?"
  87. // Group Commands
  88. //
  89. #define CMD_GROUP_SHOW L"show"
  90. #define CMD_GROUP_PING L"ping"
  91. #define CMD_GROUP_CONNECT L"connect"
  92. // commands
  93. //
  94. #define CMD_MAIL L"mail"
  95. #define CMD_NEWS L"news"
  96. #define CMD_PROXY L"ieproxy"
  97. #define CMD_OS L"os"
  98. #define CMD_COMPUTER L"computer"
  99. #define CMD_VERSION L"version"
  100. #define CMD_DNS L"dns"
  101. #define CMD_GATEWAY L"gateway"
  102. #define CMD_DHCP L"dhcp"
  103. #define CMD_IP L"ip"
  104. #define CMD_WINS L"wins"
  105. #define CMD_ADAPTER L"adapter"
  106. #define CMD_MODEM L"modem"
  107. #define CMD_CLIENT L"client"
  108. #define CMD_ALL L"all"
  109. #define CMD_TEST L"test"
  110. #define CMD_GUI L"gui"
  111. #define CMD_LOOPBACK L"loopback"
  112. #define CMD_IPHOST L"iphost"
  113. #define SWITCH_VERBOSE L"/v"
  114. #define SWITCH_PROPERTIES L"/p"
  115. // show commands
  116. //
  117. #define CMD_SHOW_MAIL CMD_MAIL //L"show mail"
  118. #define CMD_SHOW_NEWS CMD_NEWS //L"show news"
  119. #define CMD_SHOW_PROXY CMD_PROXY //L"show ieproxy"
  120. #define CMD_SHOW_OS CMD_OS //L"show os"
  121. #define CMD_SHOW_COMPUTER CMD_COMPUTER //L"show computer"
  122. #define CMD_SHOW_VERSION CMD_VERSION //L"show version"
  123. #define CMD_SHOW_DNS CMD_DNS //L"show dns"
  124. #define CMD_SHOW_GATEWAY CMD_GATEWAY //L"show gateway"
  125. #define CMD_SHOW_DHCP CMD_DHCP //L"show dhcp"
  126. #define CMD_SHOW_IP CMD_IP //L"show ip"
  127. #define CMD_SHOW_WINS CMD_WINS //L"show wins"
  128. #define CMD_SHOW_ADAPTER CMD_ADAPTER //L"show adapter"
  129. #define CMD_SHOW_MODEM CMD_MODEM //L"show modem"
  130. #define CMD_SHOW_CLIENT CMD_CLIENT //L"show client"
  131. #define CMD_SHOW_ALL CMD_ALL //L"show all"
  132. #define CMD_SHOW_TEST CMD_TEST //L"show test"
  133. #define CMD_SHOW_GUI CMD_GUI //L"show gui"
  134. // ping commands
  135. //
  136. #define CMD_PING_MAIL CMD_MAIL //L"ping mail"
  137. #define CMD_PING_NEWS CMD_NEWS //L"ping news"
  138. #define CMD_PING_PROXY CMD_PROXY //L"ping ieproxy"
  139. #define CMD_PING_DNS CMD_DNS //L"ping dns"
  140. #define CMD_PING_GATEWAY CMD_GATEWAY //L"ping gateway"
  141. #define CMD_PING_DHCP CMD_DHCP //L"ping dhcp"
  142. #define CMD_PING_IP CMD_IP //L"ping ip"
  143. #define CMD_PING_WINS CMD_WINS //L"ping wins"
  144. #define CMD_PING_ADAPTER CMD_ADAPTER //L"ping adapter"
  145. #define CMD_PING_LOOPBACK CMD_LOOPBACK //L"ping loopback"
  146. #define CMD_PING_IPHOST CMD_IPHOST //L"ping iphost"
  147. // connect commands
  148. //
  149. #define CMD_CONNECT_MAIL CMD_MAIL //L"connect mail"
  150. #define CMD_CONNECT_NEWS CMD_NEWS //L"connect news"
  151. #define CMD_CONNECT_PROXY CMD_PROXY //L"connect ieproxy"
  152. #define CMD_CONNECT_IPHOST CMD_IPHOST //L"connect iphost"