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.

143 lines
4.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: fltrhelp.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "stdafx.h"
  11. #include "rtrfiltr.hm"
  12. #include "resource.h"
  13. //
  14. // What follows is the data that gets generated from
  15. // mkdlg.exe -c rtrfiltr.rc
  16. //
  17. // "File rtrfiltr.rc line 82 : Resource - DIALOG : IDD_IPXFILTER"
  18. static const DWORD rgdw_IDD_IPXFILTER[] =
  19. {
  20. IDC_IPX_PERMIT, HIDC_IPX_PERMIT,
  21. IDC_IPX_DENY, HIDC_IPX_DENY,
  22. IDC_IPX_FILTER_LIST, HIDC_IPX_FILTER_LIST,
  23. IDC_IPX_FILTER_ADD, HIDC_IPX_FILTER_ADD,
  24. IDC_IPX_FILTER_EDIT, HIDC_IPX_FILTER_EDIT,
  25. IDC_IPX_FILTER_DELETE, HIDC_IPX_FILTER_DELETE,
  26. 0,0
  27. };
  28. // "File rtrfiltr.rc line 106 : Resource - DIALOG : IDD_IPXFILTER_ADDEDIT"
  29. static const DWORD rgdw_IDD_IPXFILTER_ADDEDIT[] =
  30. {
  31. IDC_AI_ST_SRC_NET, HIDC_AI_ST_SRC_NET,
  32. IDC_AEIPX_EB_SRC_NET, HIDC_AEIPX_EB_SRC_NET,
  33. IDC_AI_ST_SRC_MASK, HIDC_AI_ST_SRC_MASK,
  34. IDC_AEIPX_EB_SRC_MASK, HIDC_AEIPX_EB_SRC_MASK,
  35. IDC_AI_ST_SRC_NODE, HIDC_AI_ST_SRC_NODE,
  36. IDC_AEIPX_EB_SRC_NODE, HIDC_AEIPX_EB_SRC_NODE,
  37. IDC_AI_ST_SRC_SOCKET, HIDC_AI_ST_SRC_SOCKET,
  38. IDC_AEIPX_EB_SRC_SOCKET, HIDC_AEIPX_EB_SRC_SOCKET,
  39. IDC_AI_ST_DST_NET, HIDC_AI_ST_DST_NET,
  40. IDC_AEIPX_EB_DST_NET, HIDC_AEIPX_EB_DST_NET,
  41. IDC_AI_ST_DST_MASK, HIDC_AI_ST_DST_MASK,
  42. IDC_AEIPX_EB_DST_MASK, HIDC_AEIPX_EB_DST_MASK,
  43. IDC_AI_ST_DST_NODE, HIDC_AI_ST_DST_NODE,
  44. IDC_AEIPX_EB_DST_NODE, HIDC_AEIPX_EB_DST_NODE,
  45. IDC_AI_ST_DST_SOCKET, HIDC_AI_ST_DST_SOCKET,
  46. IDC_AEIPX_EB_DST_SOCKET, HIDC_AEIPX_EB_DST_SOCKET,
  47. IDC_AI_ST_PACKET_TYPE, HIDC_AI_ST_PACKET_TYPE,
  48. IDC_AEIPX_EB_PACKET_TYPE, HIDC_AEIPX_EB_PACKET_TYPE,
  49. 0,0
  50. };
  51. // "File rtrfiltr.rc line 138 : Resource - DIALOGEX : IDD_IPFILTER"
  52. static const DWORD rgdw_IDD_IPFILTER[] =
  53. {
  54. IDC_IP_PERMIT, HIDC_IP_PERMIT,
  55. IDC_IP_DENY, HIDC_IP_DENY,
  56. IDC_IP_FILTER_LIST, HIDC_IP_FILTER_LIST,
  57. IDC_IP_FILTER_ADD, HIDC_IP_FILTER_ADD,
  58. IDC_IP_FILTER_EDIT, HIDC_IP_FILTER_EDIT,
  59. IDC_IP_FILTER_DELETE, HIDC_IP_FILTER_DELETE,
  60. 0,0
  61. };
  62. // "File rtrfiltr.rc line 165 : Resource - DIALOG : IDD_IPFILTER_ADDEDIT"
  63. static const DWORD rgdw_IDD_IPFILTER_ADDEDIT[] =
  64. {
  65. IDC_AEIP_CB_SOURCE, HIDC_AEIP_CB_SOURCE,
  66. IDC_AEIP_ST_SOURCE_ADDRESS, HIDC_AEIP_ST_SOURCE_ADDRESS,
  67. IDC_AEIP_EB_SOURCE_ADDRESS, HIDC_AEIP_EB_SOURCE_ADDRESS,
  68. IDC_AEIP_ST_SOURCE_MASK, HIDC_AEIP_ST_SOURCE_MASK,
  69. IDC_AEIP_EB_SOURCE_MASK, HIDC_AEIP_EB_SOURCE_MASK,
  70. IDC_AEIP_CB_DEST, HIDC_AEIP_CB_DEST,
  71. IDC_AEIP_ST_DEST_ADDRESS, HIDC_AEIP_ST_DEST_ADDRESS,
  72. IDC_AEIP_EB_DEST_ADDRESS, HIDC_AEIP_EB_DEST_ADDRESS,
  73. IDC_AEIP_ST_DEST_MASK, HIDC_AEIP_ST_DEST_MASK,
  74. IDC_AEIP_EB_DEST_MASK, HIDC_AEIP_EB_DEST_MASK,
  75. IDC_AEIP_CB_PROTOCOL, HIDC_AEIP_CB_PROTOCOL,
  76. IDC_AEIP_ST_SRC_PORT, HIDC_AEIP_ST_SRC_PORT,
  77. IDC_AEIP_CB_SRC_PORT, HIDC_AEIP_CB_SRC_PORT,
  78. IDC_AEIP_ST_DEST_PORT, HIDC_AEIP_ST_DEST_PORT,
  79. IDC_AEIP_CB_DEST_PORT, HIDC_AEIP_CB_DEST_PORT,
  80. 0,0
  81. };
  82. // "File rtrfiltr.rc line 205 : Resource - DIALOGEX : IDD_IPFILTER_DD"
  83. static const DWORD rgdw_IDD_IPFILTER_DD[] =
  84. {
  85. IDC_IP_FILTER_ONLY, HIDC_IP_FILTER_ONLY,
  86. IDC_IP_FILTER_ALL, HIDC_IP_FILTER_ALL,
  87. IDC_IP_FILTER_LIST, HIDC_IP_FILTER_LIST,
  88. IDC_IP_FILTER_ADD, HIDC_IP_FILTER_ADD,
  89. IDC_IP_FILTER_EDIT, HIDC_IP_FILTER_EDIT,
  90. IDC_IP_FILTER_DELETE, HIDC_IP_FILTER_DELETE,
  91. 0,0
  92. };
  93. //
  94. // End of mkdlg.exe output
  95. //
  96. static BOOL s_fInitHelpMap = FALSE;
  97. static CMapWordToPtr s_IDDHelpMap;
  98. void InitHelpMap();
  99. DWORD * RtrfiltrSnapHelpMap(DWORD dwIDD)
  100. {
  101. LPVOID pvHelpMap = NULL;
  102. if (!s_fInitHelpMap)
  103. {
  104. InitHelpMap();
  105. s_fInitHelpMap = TRUE;
  106. }
  107. // Look in the help map
  108. s_IDDHelpMap.Lookup((WORD) dwIDD, pvHelpMap);
  109. return (DWORD *) pvHelpMap;
  110. }
  111. void InitHelpMap()
  112. {
  113. s_IDDHelpMap.SetAt(IDD_IPXFILTER_INPUT, (LPVOID) rgdw_IDD_IPXFILTER);
  114. s_IDDHelpMap.SetAt(IDD_IPXFILTER_OUTPUT, (LPVOID) rgdw_IDD_IPXFILTER);
  115. s_IDDHelpMap.SetAt(IDD_IPXFILTER_ADDEDIT, (LPVOID) rgdw_IDD_IPXFILTER_ADDEDIT);
  116. s_IDDHelpMap.SetAt(IDD_IPFILTER, (LPVOID) rgdw_IDD_IPFILTER);
  117. s_IDDHelpMap.SetAt(IDD_IPFILTER_ADDEDIT, (LPVOID) rgdw_IDD_IPFILTER_ADDEDIT);
  118. s_IDDHelpMap.SetAt(IDD_IPFILTER_DD, (LPVOID) rgdw_IDD_IPFILTER_DD);
  119. }