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.

300 lines
10 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: ipxhelp.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "stdafx.h"
  11. #include "ipxsnap.hm"
  12. #include "resource.h"
  13. //
  14. // What follows is the data that gets generated from
  15. // mkdlg.exe -c ipxsnap.rc
  16. //
  17. // "File ipxsnap.rc line 87 : Resource - DIALOG : IDD_GENERIC_PROP_PAGE"
  18. static const DWORD rgdw_IDD_GENERIC_PROP_PAGE[] =
  19. {
  20. 0,0
  21. };
  22. // "File ipxsnap.rc line 96 : Resource - DIALOG : IDD_IPX_GLOBAL_GENERAL_PAGE"
  23. static const DWORD rgdw_IDD_IPX_GLOBAL_GENERAL_PAGE[] =
  24. {
  25. IDC_IGG_BTN_LOG_NONE, HIDC_IGG_BTN_LOG_NONE,
  26. IDC_IGG_BTN_LOG_ERRORS, HIDC_IGG_BTN_LOG_ERRORS,
  27. IDC_IGG_BTN_LOG_WARNINGS, HIDC_IGG_BTN_LOG_WARNINGS,
  28. IDC_IGG_BTN_LOG_INFO, HIDC_IGG_BTN_LOG_INFO,
  29. 0,0
  30. };
  31. // "File ipxsnap.rc line 119 : Resource - DIALOG : IDD_IPX_IF_GENERAL_PAGE"
  32. static const DWORD rgdw_IDD_IPX_IF_GENERAL_PAGE[] =
  33. {
  34. IDC_IIG_BTN_ADMIN_STATE, HIDC_IIG_BTN_ADMIN_STATE,
  35. IDC_IIG_GRP_CONTROL_PROTOCOL, HIDC_IIG_GRP_CONTROL_PROTOCOL,
  36. IDC_IIG_BTN_IPX_CP, HIDC_IIG_BTN_IPX_CP,
  37. IDC_IIG_BTN_IPX_WAN, HIDC_IIG_BTN_IPX_WAN,
  38. IDC_IIG_BTN_INPUT_FILTERS, HIDC_IIG_BTN_INPUT_FILTERS,
  39. IDC_IIG_BTN_OUTPUT_FILTERS, HIDC_IIG_BTN_OUTPUT_FILTERS,
  40. 0,0
  41. };
  42. // "File ipxsnap.rc line 144 : Resource - DIALOG : IDD_IPX_NB_IF_GENERAL_PAGE"
  43. static const DWORD rgdw_IDD_IPX_NB_IF_GENERAL_PAGE[] =
  44. {
  45. IDC_NIG_BTN_ACCEPT, HIDC_NIG_BTN_ACCEPT,
  46. IDC_NIG_BTN_DELIVER_ALWAYS, HIDC_NIG_BTN_DELIVER_ALWAYS,
  47. IDC_NIG_BTN_DELIVER_NEVER, HIDC_NIG_BTN_DELIVER_NEVER,
  48. IDC_NIG_BTN_DELIVER_STATIC, HIDC_NIG_BTN_DELIVER_STATIC,
  49. IDC_NIG_BTN_DELIVER_WHEN_UP, HIDC_NIG_BTN_DELIVER_WHEN_UP,
  50. 0,0
  51. };
  52. // "File ipxsnap.rc line 173 : Resource - DIALOG : IDD_STATIC_ROUTE"
  53. static const DWORD rgdw_IDD_STATIC_ROUTE[] =
  54. {
  55. IDC_SRD_EDIT_NETWORK_NUMBER, HIDC_SRD_EDIT_NETWORK_NUMBER,
  56. IDC_SRD_EDIT_NEXT_HOP, HIDC_SRD_EDIT_NEXT_HOP,
  57. IDC_SRD_EDIT_TICK_COUNT, HIDC_SRD_EDIT_TICK_COUNT,
  58. IDC_SRD_SPIN_TICK_COUNT, HIDC_SRD_SPIN_TICK_COUNT,
  59. IDC_SRD_EDIT_HOP_COUNT, HIDC_SRD_EDIT_HOP_COUNT,
  60. IDC_SRD_SPIN_HOP_COUNT, HIDC_SRD_SPIN_HOP_COUNT,
  61. IDC_SRD_COMBO_INTERFACE, HIDC_SRD_COMBO_INTERFACE,
  62. 0,0
  63. };
  64. // "File ipxsnap.rc line 203 : Resource - DIALOG : IDD_STATIC_SERVICE"
  65. static const DWORD rgdw_IDD_STATIC_SERVICE[] =
  66. {
  67. IDC_SSD_EDIT_SERVICE_TYPE, HIDC_SSD_EDIT_SERVICE_TYPE,
  68. IDC_SSD_EDIT_SERVICE_NAME, HIDC_SSD_EDIT_SERVICE_NAME,
  69. IDC_SSD_EDIT_NETWORK_ADDRESS, HIDC_SSD_EDIT_NETWORK_ADDRESS,
  70. IDC_SSD_EDIT_NODE_ADDRESS, HIDC_SSD_EDIT_NODE_ADDRESS,
  71. IDC_SSD_EDIT_SOCKET_ADDRESS, HIDC_SSD_EDIT_SOCKET_ADDRESS,
  72. IDC_SSD_EDIT_HOP_COUNT, HIDC_SSD_EDIT_HOP_COUNT,
  73. IDC_SSD_SPIN_HOP_COUNT, HIDC_SSD_SPIN_HOP_COUNT,
  74. IDC_SSD_COMBO_INTERFACE, HIDC_SSD_COMBO_INTERFACE,
  75. 0,0
  76. };
  77. // "File ipxsnap.rc line 233 : Resource - DIALOG : IDD_STATIC_NETBIOS_NAME"
  78. static const DWORD rgdw_IDD_STATIC_NETBIOS_NAME[] =
  79. {
  80. IDC_SND_EDIT_NAME, HIDC_SND_EDIT_NAME,
  81. IDC_SND_EDIT_TYPE, HIDC_SND_EDIT_TYPE,
  82. IDC_SND_COMBO_INTERFACE, HIDC_SND_COMBO_INTERFACE,
  83. 0,0
  84. };
  85. // "File ipxsnap.rc line 252 : Resource - DIALOG : IDD_RIP_GLOBAL_GENERAL_PAGE"
  86. static const DWORD rgdw_IDD_RIP_GLOBAL_GENERAL_PAGE[] =
  87. {
  88. IDC_RGG_BTN_LOG_ERROR, HIDC_RGG_BTN_LOG_ERROR,
  89. IDC_RGG_BTN_LOG_WARN, HIDC_RGG_BTN_LOG_WARN,
  90. IDC_RGG_BTN_LOG_INFO, HIDC_RGG_BTN_LOG_INFO,
  91. IDC_RGG_BTN_LOG_NONE, HIDC_RGG_BTN_LOG_NONE,
  92. 0,0
  93. };
  94. // "File ipxsnap.rc line 275 : Resource - DIALOG : IDD_RIP_INTERFACE_GENERAL_PAGE"
  95. static const DWORD rgdw_IDD_RIP_INTERFACE_GENERAL_PAGE[] =
  96. {
  97. IDC_RIG_BTN_ADMIN_STATE, HIDC_RIG_BTN_ADMIN_STATE,
  98. IDC_RIG_BTN_ADVERTISE_ROUTES, HIDC_RIG_BTN_ADVERTISE_ROUTES,
  99. IDC_RIG_BTN_ACCEPT_ROUTE_ADS, HIDC_RIG_BTN_ACCEPT_ROUTE_ADS,
  100. IDC_RIG_BTN_UPDATE_MODE_STANDARD, HIDC_RIG_BTN_UPDATE_MODE_STANDARD,
  101. IDC_RIG_BTN_UPDATE_MODE_NONE, HIDC_RIG_BTN_UPDATE_MODE_NONE,
  102. IDC_RIG_BTN_UPDATE_MODE_AUTOSTATIC, HIDC_RIG_BTN_UPDATE_MODE_AUTOSTATIC,
  103. IDC_RIG_EDIT_INTERVAL, HIDC_RIG_EDIT_INTERVAL,
  104. IDC_RIG_SPIN_INTERVAL, HIDC_RIG_SPIN_INTERVAL,
  105. IDC_RIG_EDIT_MULTIPLIER, HIDC_RIG_EDIT_MULTIPLIER,
  106. IDC_RIG_SPIN_MULTIPLIER, HIDC_RIG_SPIN_MULTIPLIER,
  107. IDC_RIG_BTN_INPUT_FILTERS, HIDC_RIG_BTN_INPUT_FILTERS,
  108. IDC_RIG_BTN_OUTPUT_FILTERS, HIDC_RIG_BTN_OUTPUT_FILTERS,
  109. 0,0
  110. };
  111. // "File ipxsnap.rc line 319 : Resource - DIALOG : IDD_SAP_GLOBAL_GENERAL_PAGE"
  112. static const DWORD rgdw_IDD_SAP_GLOBAL_GENERAL_PAGE[] =
  113. {
  114. IDC_SGG_BTN_LOG_NONE, HIDC_SGG_BTN_LOG_NONE,
  115. IDC_SGG_BTN_LOG_ERROR, HIDC_SGG_BTN_LOG_ERROR,
  116. IDC_SGG_BTN_LOG_WARN, HIDC_SGG_BTN_LOG_WARN,
  117. IDC_SGG_BTN_LOG_INFO, HIDC_SGG_BTN_LOG_INFO,
  118. 0,0
  119. };
  120. // "File ipxsnap.rc line 341 : Resource - DIALOG : IDD_SAP_INTERFACE_GENERAL_PAGE"
  121. static const DWORD rgdw_IDD_SAP_INTERFACE_GENERAL_PAGE[] =
  122. {
  123. IDC_SIG_BTN_ADMIN_STATE, HIDC_SIG_BTN_ADMIN_STATE,
  124. IDC_SIG_BTN_ADVERTISE_SERVICES, HIDC_SIG_BTN_ADVERTISE_SERVICES,
  125. IDC_SIG_BTN_ACCEPT_SERVICE_ADS, HIDC_SIG_BTN_ACCEPT_SERVICE_ADS,
  126. IDC_SIG_BTN_REPLY_GNS_REQUESTS, HIDC_SIG_BTN_REPLY_GNS_REQUESTS,
  127. IDC_SIG_BTN_UPDATE_MODE_STANDARD, HIDC_SIG_BTN_UPDATE_MODE_STANDARD,
  128. IDC_SIG_BTN_UPDATE_MODE_NONE, HIDC_SIG_BTN_UPDATE_MODE_NONE,
  129. IDC_SIG_BTN_UPDATE_MODE_AUTOSTATIC, HIDC_SIG_BTN_UPDATE_MODE_AUTOSTATIC,
  130. IDC_SIG_EDIT_INTERVAL, HIDC_SIG_EDIT_INTERVAL,
  131. IDC_SIG_SPIN_INTERVAL, HIDC_SIG_SPIN_INTERVAL,
  132. IDC_SIG_EDIT_MULTIPLIER, HIDC_SIG_EDIT_MULTIPLIER,
  133. IDC_SIG_SPIN_MULTIPLIER, HIDC_SIG_SPIN_MULTIPLIER,
  134. IDC_SIG_BTN_INPUT_FILTERS, HIDC_SIG_BTN_INPUT_FILTERS,
  135. IDC_SIG_BTN_OUTPUT_FILTERS, HIDC_SIG_BTN_OUTPUT_FILTERS,
  136. 0,0
  137. };
  138. // "File ipxsnap.rc line 390 : Resource - DIALOG : IDD_IPX_IF_CONFIG_PAGE"
  139. static const DWORD rgdw_IDD_IPX_IF_CONFIG_PAGE[] =
  140. {
  141. IDC_IIC_EDIT_NETNUMBER, HIDC_IIC_EDIT_NETNUMBER,
  142. 0,0
  143. };
  144. // "File ipxsnap.rc line 401 : Resource - DIALOG : IDD_ROUTE_FILTERS_INPUT and IDD_ROUTE_FILTERS_OUTPUT"
  145. static const DWORD rgdw_IDD_ROUTE_FILTERS[] =
  146. {
  147. IDC_RFS_BTN_DENY, HIDC_RFS_BTN_DENY,
  148. IDC_RFS_BTN_PERMIT, HIDC_RFS_BTN_PERMIT,
  149. IDC_RFS_LIST, HIDC_RFS_LIST,
  150. IDC_RFS_BTN_ADD, HIDC_RFS_BTN_ADD,
  151. IDC_RFS_BTN_EDIT, HIDC_RFS_BTN_EDIT,
  152. IDC_RFS_BTN_DELETE, HIDC_RFS_BTN_DELETE,
  153. 0,0
  154. };
  155. // "File ipxsnap.rc line 425 : Resource - DIALOG : IDD_ROUTE_FILTER"
  156. static const DWORD rgdw_IDD_ROUTE_FILTER[] =
  157. {
  158. IDC_RF_TEXT_INTERFACE, HIDC_RF_TEXT_INTERFACE,
  159. IDC_RF_EDIT_INTERFACE, HIDC_RF_EDIT_INTERFACE,
  160. IDC_RF_EDIT_NETWORK, HIDC_RF_EDIT_NETWORK,
  161. IDC_RF_EDIT_NETMASK, HIDC_RF_EDIT_NETMASK,
  162. 0,0
  163. };
  164. // "File ipxsnap.rc line 443 : Resource - DIALOG : IDD_SERVICE_FILTER"
  165. static const DWORD rgdw_IDD_SERVICE_FILTER[] =
  166. {
  167. IDC_SF_TEXT_INTERFACE, HIDC_SF_TEXT_INTERFACE,
  168. IDC_SF_EDIT_INTERFACE, HIDC_SF_EDIT_INTERFACE,
  169. IDC_SF_EDIT_SERVICE_TYPE, HIDC_SF_EDIT_SERVICE_TYPE,
  170. IDC_SF_EDIT_SERVICE_NAME, HIDC_SF_EDIT_SERVICE_NAME,
  171. 0,0
  172. };
  173. // "File ipxsnap.rc line 461 : Resource - DIALOG : IDD_SERVICE_FILTERS"
  174. static const DWORD rgdw_IDD_SERVICE_FILTERS[] =
  175. {
  176. IDC_SFS_BTN_DENY, HIDC_SFS_BTN_DENY,
  177. IDC_SFS_BTN_PERMIT, HIDC_SFS_BTN_PERMIT,
  178. IDC_SFS_LIST, HIDC_SFS_LIST,
  179. IDC_SFS_BTN_ADD, HIDC_SFS_BTN_ADD,
  180. IDC_SFS_BTN_EDIT, HIDC_SFS_BTN_EDIT,
  181. IDC_SFS_BTN_DELETE, HIDC_SFS_BTN_DELETE,
  182. 0,0
  183. };
  184. //
  185. // End of mkdlg.exe output
  186. //
  187. // This is similar to IDD_STATIC_ROUTE, so I'll use the same helps
  188. static const DWORD rgdw_IDD_STATIC_ROUTE_PROPERTYPAGE[] =
  189. {
  190. IDC_SRD_EDIT_NETWORK_NUMBER, HIDC_SRD_EDIT_NETWORK_NUMBER,
  191. IDC_SRD_EDIT_NEXT_HOP, HIDC_SRD_EDIT_NEXT_HOP,
  192. IDC_SRD_EDIT_TICK_COUNT, HIDC_SRD_EDIT_TICK_COUNT,
  193. IDC_SRD_SPIN_TICK_COUNT, HIDC_SRD_SPIN_TICK_COUNT,
  194. IDC_SRD_EDIT_HOP_COUNT, HIDC_SRD_EDIT_HOP_COUNT,
  195. IDC_SRD_SPIN_HOP_COUNT, HIDC_SRD_SPIN_HOP_COUNT,
  196. 0,0
  197. };
  198. // This is similar to IDD_STATIC_NETBIOS_NAME, so I'll use the same helps
  199. static const DWORD rgdw_IDD_STATIC_NETBIOS_NAME_PROPERTYPAGE[] =
  200. {
  201. IDC_SND_EDIT_NAME, HIDC_SND_EDIT_NAME,
  202. IDC_SND_EDIT_TYPE, HIDC_SND_EDIT_TYPE,
  203. 0,0
  204. };
  205. // Have to include the dialogs in common
  206. #include "commhelp.cpp"
  207. static BOOL s_fInitHelpMap = FALSE;
  208. static CMapWordToPtr s_IDDHelpMap;
  209. void InitHelpMap();
  210. DWORD * IpxSnapHelpMap(DWORD dwIDD)
  211. {
  212. LPVOID pvHelpMap = NULL;
  213. if (!s_fInitHelpMap)
  214. {
  215. InitHelpMap();
  216. s_fInitHelpMap = TRUE;
  217. }
  218. // Look in the help map
  219. s_IDDHelpMap.Lookup((SHORT) dwIDD, pvHelpMap);
  220. return (DWORD *) pvHelpMap;
  221. }
  222. void InitHelpMap()
  223. {
  224. s_IDDHelpMap.SetAt(IDD_IPX_GLOBAL_GENERAL_PAGE, (LPVOID) rgdw_IDD_IPX_GLOBAL_GENERAL_PAGE);
  225. s_IDDHelpMap.SetAt(IDD_IPX_IF_GENERAL_PAGE, (LPVOID) rgdw_IDD_IPX_IF_GENERAL_PAGE);
  226. s_IDDHelpMap.SetAt(IDD_IPX_NB_IF_GENERAL_PAGE, (LPVOID) rgdw_IDD_IPX_NB_IF_GENERAL_PAGE);
  227. s_IDDHelpMap.SetAt(IDD_STATIC_ROUTE, (LPVOID) rgdw_IDD_STATIC_ROUTE);
  228. s_IDDHelpMap.SetAt(IDD_STATIC_SERVICE, (LPVOID) rgdw_IDD_STATIC_SERVICE);
  229. s_IDDHelpMap.SetAt(IDD_STATIC_NETBIOS_NAME, (LPVOID) rgdw_IDD_STATIC_NETBIOS_NAME);
  230. s_IDDHelpMap.SetAt(IDD_RIP_GLOBAL_GENERAL_PAGE, (LPVOID) rgdw_IDD_RIP_GLOBAL_GENERAL_PAGE);
  231. s_IDDHelpMap.SetAt(IDD_RIP_INTERFACE_GENERAL_PAGE, (LPVOID) rgdw_IDD_RIP_INTERFACE_GENERAL_PAGE);
  232. s_IDDHelpMap.SetAt(IDD_SAP_GLOBAL_GENERAL_PAGE, (LPVOID) rgdw_IDD_SAP_GLOBAL_GENERAL_PAGE);
  233. s_IDDHelpMap.SetAt(IDD_SAP_INTERFACE_GENERAL_PAGE, (LPVOID) rgdw_IDD_SAP_INTERFACE_GENERAL_PAGE);
  234. s_IDDHelpMap.SetAt(IDD_IPX_IF_CONFIG_PAGE, (LPVOID) rgdw_IDD_IPX_IF_CONFIG_PAGE);
  235. s_IDDHelpMap.SetAt(IDD_ROUTE_FILTERS_INPUT, (LPVOID) rgdw_IDD_ROUTE_FILTERS);
  236. s_IDDHelpMap.SetAt(IDD_ROUTE_FILTERS_OUTPUT, (LPVOID) rgdw_IDD_ROUTE_FILTERS);
  237. s_IDDHelpMap.SetAt(IDD_ROUTE_FILTER, (LPVOID) rgdw_IDD_ROUTE_FILTER);
  238. s_IDDHelpMap.SetAt(IDD_SERVICE_FILTER, (LPVOID) rgdw_IDD_SERVICE_FILTER);
  239. s_IDDHelpMap.SetAt(IDD_SERVICE_FILTERS_INPUT, (LPVOID) rgdw_IDD_SERVICE_FILTERS);
  240. s_IDDHelpMap.SetAt(IDD_SERVICE_FILTERS_OUTPUT, (LPVOID) rgdw_IDD_SERVICE_FILTERS);
  241. s_IDDHelpMap.SetAt(IDD_STATIC_ROUTE_PROPERTYPAGE, (LPVOID) rgdw_IDD_STATIC_ROUTE_PROPERTYPAGE);
  242. s_IDDHelpMap.SetAt(IDD_STATIC_NETBIOS_NAME_PROPERTYPAGE, (LPVOID) rgdw_IDD_STATIC_NETBIOS_NAME_PROPERTYPAGE);
  243. // Include the entries for common
  244. s_IDDHelpMap.SetAt(IDD_STATS, (LPVOID) rgdw_IDD_STATS);
  245. s_IDDHelpMap.SetAt(IDD_STATS_NARROW, (LPVOID) rgdw_IDD_STATS_NARROW);
  246. s_IDDHelpMap.SetAt(IDD_COMMON_SELECT_COLUMNS, (LPVOID) rgdw_IDD_COMMON_SELECT_COLUMNS);
  247. s_IDDHelpMap.SetAt(IDD_BUSY, (LPVOID) rgdw_IDD_BUSY);
  248. }