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.

185 lines
6.1 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. WINAPI
  29. DglogsStopHelper (
  30. DWORD dwReserved
  31. );
  32. DWORD
  33. HandleShow(
  34. IN LPCWSTR pwszMachine,
  35. IN OUT LPWSTR *ppwcArguments,
  36. IN DWORD dwCurrentIndex,
  37. IN DWORD dwArgCount,
  38. IN DWORD dwFlags,
  39. IN LPCVOID pvData,
  40. OUT BOOL *pbDone
  41. );
  42. DWORD
  43. HandleShowGui(
  44. IN LPCWSTR pwszMachine,
  45. IN OUT LPWSTR *ppwcArguments,
  46. IN DWORD dwCurrentIndex,
  47. IN DWORD dwArgCount,
  48. IN DWORD dwFlags,
  49. IN LPCVOID pvData,
  50. OUT BOOL *pbDone
  51. );
  52. DWORD
  53. HandlePing(
  54. IN LPCWSTR pwszMachine,
  55. IN OUT LPWSTR *ppwcArguments,
  56. IN DWORD dwCurrentIndex,
  57. IN DWORD dwArgCount,
  58. IN DWORD dwFlags,
  59. IN LPCVOID pvData,
  60. OUT BOOL *pbDone
  61. );
  62. DWORD
  63. HandleConnect(
  64. IN LPCWSTR pwszMachine,
  65. IN OUT LPWSTR *ppwcArguments,
  66. IN DWORD dwCurrentIndex,
  67. IN DWORD dwArgCount,
  68. IN DWORD dwFlags,
  69. IN LPCVOID pvData,
  70. OUT BOOL *pbDone
  71. );
  72. DWORD
  73. WINAPI
  74. SampleDump(
  75. IN LPCWSTR pwszRouter,
  76. IN OUT LPWSTR *ppwcArguments,
  77. IN DWORD dwArgCount,
  78. IN LPCVOID pvData
  79. );
  80. ////////////////////////////////////////
  81. // TOKENS
  82. ////////////////////////////////////////
  83. #define TOKEN_DGLOGS L"diag"
  84. ////////////////////////////////////////
  85. // Configuration commands
  86. ////////////////////////////////////////
  87. // Commands supported by most protocols
  88. //
  89. #define CMD_DUMP L"dump"
  90. #define CMD_HELP1 L"help"
  91. #define CMD_HELP2 L"?"
  92. // Group Commands
  93. //
  94. #define CMD_GROUP_SHOW L"show"
  95. #define CMD_GROUP_PING L"ping"
  96. #define CMD_GROUP_CONNECT L"connect"
  97. // commands
  98. //
  99. #define CMD_MAIL L"mail"
  100. #define CMD_NEWS L"news"
  101. #define CMD_PROXY L"ieproxy"
  102. #define CMD_OS L"os"
  103. #define CMD_COMPUTER L"computer"
  104. #define CMD_VERSION L"version"
  105. #define CMD_DNS L"dns"
  106. #define CMD_GATEWAY L"gateway"
  107. #define CMD_DHCP L"dhcp"
  108. #define CMD_IP L"ip"
  109. #define CMD_WINS L"wins"
  110. #define CMD_ADAPTER L"adapter"
  111. #define CMD_MODEM L"modem"
  112. #define CMD_CLIENT L"client"
  113. #define CMD_ALL L"all"
  114. #define CMD_TEST L"test"
  115. #define CMD_GUI L"gui"
  116. #define CMD_LOOPBACK L"loopback"
  117. #define CMD_IPHOST L"iphost"
  118. #define SWITCH_VERBOSE L"/v"
  119. #define SWITCH_PROPERTIES L"/p"
  120. // show commands
  121. //
  122. #define CMD_SHOW_MAIL CMD_MAIL //L"show mail"
  123. #define CMD_SHOW_NEWS CMD_NEWS //L"show news"
  124. #define CMD_SHOW_PROXY CMD_PROXY //L"show ieproxy"
  125. #define CMD_SHOW_OS CMD_OS //L"show os"
  126. #define CMD_SHOW_COMPUTER CMD_COMPUTER //L"show computer"
  127. #define CMD_SHOW_VERSION CMD_VERSION //L"show version"
  128. #define CMD_SHOW_DNS CMD_DNS //L"show dns"
  129. #define CMD_SHOW_GATEWAY CMD_GATEWAY //L"show gateway"
  130. #define CMD_SHOW_DHCP CMD_DHCP //L"show dhcp"
  131. #define CMD_SHOW_IP CMD_IP //L"show ip"
  132. #define CMD_SHOW_WINS CMD_WINS //L"show wins"
  133. #define CMD_SHOW_ADAPTER CMD_ADAPTER //L"show adapter"
  134. #define CMD_SHOW_MODEM CMD_MODEM //L"show modem"
  135. #define CMD_SHOW_CLIENT CMD_CLIENT //L"show client"
  136. #define CMD_SHOW_ALL CMD_ALL //L"show all"
  137. #define CMD_SHOW_TEST CMD_TEST //L"show test"
  138. #define CMD_SHOW_GUI CMD_GUI //L"show gui"
  139. // ping commands
  140. //
  141. #define CMD_PING_MAIL CMD_MAIL //L"ping mail"
  142. #define CMD_PING_NEWS CMD_NEWS //L"ping news"
  143. #define CMD_PING_PROXY CMD_PROXY //L"ping ieproxy"
  144. #define CMD_PING_DNS CMD_DNS //L"ping dns"
  145. #define CMD_PING_GATEWAY CMD_GATEWAY //L"ping gateway"
  146. #define CMD_PING_DHCP CMD_DHCP //L"ping dhcp"
  147. #define CMD_PING_IP CMD_IP //L"ping ip"
  148. #define CMD_PING_WINS CMD_WINS //L"ping wins"
  149. #define CMD_PING_ADAPTER CMD_ADAPTER //L"ping adapter"
  150. #define CMD_PING_LOOPBACK CMD_LOOPBACK //L"ping loopback"
  151. #define CMD_PING_IPHOST CMD_IPHOST //L"ping iphost"
  152. // connect commands
  153. //
  154. #define CMD_CONNECT_MAIL CMD_MAIL //L"connect mail"
  155. #define CMD_CONNECT_NEWS CMD_NEWS //L"connect news"
  156. #define CMD_CONNECT_PROXY CMD_PROXY //L"connect ieproxy"
  157. #define CMD_CONNECT_IPHOST CMD_IPHOST //L"connect iphost"