MyFireWall.rc
上传用户:zhuzhu0204
上传日期:2020-07-13
资源大小:13165k
文件大小:15k
开发平台:

Visual C++

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include "resource.h"
  4. #define APSTUDIO_READONLY_SYMBOLS
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // Generated from the TEXTINCLUDE 2 resource.
  8. //
  9. #include "afxres.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. #undef APSTUDIO_READONLY_SYMBOLS
  12. /////////////////////////////////////////////////////////////////////////////
  13. // Chinese (中国) resources
  14. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
  15. #ifdef _WIN32
  16. LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
  17. #pragma code_page(936)
  18. #endif //_WIN32
  19. #ifdef APSTUDIO_INVOKED
  20. /////////////////////////////////////////////////////////////////////////////
  21. //
  22. // TEXTINCLUDE
  23. //
  24. 1 TEXTINCLUDE DISCARDABLE 
  25. BEGIN
  26.     "resource.h"
  27. END
  28. 2 TEXTINCLUDE DISCARDABLE 
  29. BEGIN
  30.     "#include ""afxres.h""rn"
  31.     ""
  32. END
  33. 3 TEXTINCLUDE DISCARDABLE 
  34. BEGIN
  35.     "#define _AFX_NO_SPLITTER_RESOURCESrn"
  36.     "#define _AFX_NO_OLE_RESOURCESrn"
  37.     "#define _AFX_NO_TRACKER_RESOURCESrn"
  38.     "#define _AFX_NO_PROPERTY_RESOURCESrn"
  39.     "rn"
  40.     "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)rn"
  41.     "#ifdef _WIN32rn"
  42.     "LANGUAGE 4, 2rn"
  43.     "#pragma code_page(936)rn"
  44.     "#endif //_WIN32rn"
  45.     "#include ""res\MyFireWall.rc2""  // non-Microsoft Visual C++ edited resourcesrn"
  46.     "#include ""l.chs\afxres.rc""          // Standard componentsrn"
  47.     "#endifrn"
  48.     ""
  49. END
  50. #endif    // APSTUDIO_INVOKED
  51. /////////////////////////////////////////////////////////////////////////////
  52. //
  53. // Icon
  54. //
  55. // Icon with lowest ID value placed first to ensure application icon
  56. // remains consistent on all systems.
  57. IDR_MAINFRAME           ICON    DISCARDABLE     "res\MyFireWall.ico"
  58. /////////////////////////////////////////////////////////////////////////////
  59. //
  60. // Dialog
  61. //
  62. IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 235, 78
  63. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  64. CAPTION "关于 MyFireWall"
  65. FONT 9, "宋体"
  66. BEGIN
  67.     ICON            IDR_MAINFRAME,IDC_STATIC,11,17,21,21
  68.     LTEXT           "MyFireWall 1.0 版",IDC_STATIC,40,10,119,8,SS_NOPREFIX
  69.     LTEXT           "版权所有 (C) 2009",IDC_STATIC,40,25,119,8
  70.     DEFPUSHBUTTON   "确定",IDOK,178,7,50,14,WS_GROUP
  71.     LTEXT           "作者:唐博rn学校:西安电子科技大学rn邮箱:jmt634@163.com",
  72.                     IDC_STATIC,40,37,167,28
  73. END
  74. IDD_MYFIREWALL_DIALOG DIALOGEX 0, 0, 420, 280
  75. STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | 
  76.     WS_SYSMENU
  77. EXSTYLE WS_EX_APPWINDOW
  78. CAPTION "MyFireWall"
  79. MENU IDR_MAIN_MENU
  80. FONT 9, "宋体", 0, 0, 0x1
  81. BEGIN
  82.     PUSHBUTTON      "取消",IDCANCEL,363,7,50,14,NOT WS_VISIBLE
  83. END
  84. IDP_WORK_STATUS DIALOG DISCARDABLE  0, 0, 396, 260
  85. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  86. CAPTION "  工作状态  "
  87. FONT 9, "宋体"
  88. BEGIN
  89.     LTEXT           "Static",IDC_FLOW_RATE,290,76,92,169
  90.     LTEXT           "应用层模式:",IDC_STATIC,29,13,49,8
  91.     LTEXT           "核心层模式:",IDC_STATIC,183,13,49,8
  92.     PUSHBUTTON      "LSP",IDC_LSP_MODE,81,9,50,14
  93.     PUSHBUTTON      "KER",IDC_KER_MODE,240,9,50,14
  94.     LTEXT           "总流量",IDC_STATIC,7,204,25,8
  95.     GROUPBOX        "具体数据如下:",IDC_STATIC,263,35,126,218
  96.     GROUPBOX        "当前网络流量图",IDC_STATIC,1,35,256,218
  97.     GROUPBOX        "工作模式:",IDC_STATIC,1,1,388,30
  98.     LTEXT           "接收流量",IDC_STATIC,7,142,33,8
  99.     LTEXT           "发送流量",IDC_STATIC,7,80,33,8
  100.     LTEXT           "100 KBps",IDC_STATIC,7,50,33,8
  101.     LTEXT           "100 KBps",IDC_STATIC,7,116,33,8
  102.     LTEXT           "100 KBps",IDC_STATIC,7,183,33,8
  103. END
  104. IDP_APP_MONITOR DIALOG DISCARDABLE  0, 0, 396, 260
  105. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  106. CAPTION "  程序监控  "
  107. FONT 9, "宋体"
  108. BEGIN
  109.     CONTROL         "Tree1",IDC_APP_MONITOR_LIST,"SysTreeView32",
  110.                     TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | 
  111.                     WS_BORDER | WS_TABSTOP,7,15,382,238
  112.     LTEXT           "当前正在联网的进程列表:",IDC_STATIC,0,0,97,8
  113. END
  114. IDP_ACCESS_CTRL DIALOG DISCARDABLE  0, 0, 396, 260
  115. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  116. CAPTION "  访问控制  "
  117. FONT 9, "宋体"
  118. BEGIN
  119.     CONTROL         "List1",IDC_ACCESS_CTRL_LIST,"SysListView32",WS_BORDER | 
  120.                     WS_TABSTOP,7,19,382,226
  121.     LTEXT           "应用程序访问控制列表:",IDC_STATIC,7,7,97,8
  122. END
  123. IDD_QUERY_DLG DIALOG DISCARDABLE  0, 0, 230, 256
  124. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  125. CAPTION "MyFireWall 提示"
  126. FONT 9, "宋体"
  127. BEGIN
  128.     PUSHBUTTON      "退出",IDCANCEL,173,235,50,14
  129.     LTEXT           "MyFireWall 检测到以下程序试图访问网络:",IDC_STATIC,13,
  130.                     14,165,9
  131.     ICON            "",IDC_APP_ICON,13,30,20,20
  132.     LTEXT           "Static",IDC_APP_NAME,40,41,117,8,SS_CENTERIMAGE
  133.     CONTROL         "List1",IDC_APP_INFO_LIST,"SysListView32",WS_BORDER | 
  134.                     WS_TABSTOP,7,58,216,83
  135.     LTEXT           "处理方式:",IDC_STATIC,9,145,50,8
  136.     CONTROL         "总是允许",IDC_RADIO_PASSALL,"Button",BS_AUTORADIOBUTTON,
  137.                     17,161,46,10
  138.     CONTROL         "允许这次",IDC_RADIO_PASSONCE,"Button",
  139.                     BS_AUTORADIOBUTTON,17,178,46,10
  140.     CONTROL         "拒绝这次",IDC_RADIO_DENYONCE,"Button",
  141.                     BS_AUTORADIOBUTTON,17,195,46,10
  142.     CONTROL         "总是拒绝",IDC_RADIO_DENYALL,"Button",BS_AUTORADIOBUTTON,
  143.                     17,212,46,10
  144.     RTEXT           "",IDC_TIME,13,236,13,8
  145.     LTEXT           "秒后将执行默认处理",IDC_STATIC,34,236,91,8
  146. END
  147. IDP_PACKET_MONITOR DIALOG DISCARDABLE  0, 0, 395, 260
  148. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  149. CAPTION "  封包监控  "
  150. FONT 9, "宋体"
  151. BEGIN
  152.     CONTROL         "List1",IDC_PACKET_MONITOR_LIST,"SysListView32",
  153.                     WS_BORDER | WS_TABSTOP,7,17,381,216
  154.     LTEXT           "核心层封包过滤规则:",IDC_STATIC,7,7,85,8
  155.     PUSHBUTTON      "增加",IDC_ADD_KER_RULE,7,239,50,14
  156.     PUSHBUTTON      "编辑",IDC_MODIFY_KER_RULE,69,239,50,14
  157.     PUSHBUTTON      "删除",IDC_DEL_KER_RULE,131,239,50,14
  158. END
  159. IDD_KER_RULE_SETTING_DLG DIALOG DISCARDABLE  0, 0, 198, 219
  160. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  161. CAPTION "对话"
  162. FONT 9, "宋体"
  163. BEGIN
  164.     DEFPUSHBUTTON   "确定",IDOK,79,198,50,14
  165.     PUSHBUTTON      "取消",IDCANCEL,141,198,50,14
  166.     LTEXT           "IP地址:",IDC_STATIC,18,29,33,15,SS_CENTERIMAGE
  167.     CONTROL         "IPAddress1",IDC_SOURCE_IPADDRESS,"SysIPAddress32",
  168.                     WS_TABSTOP,57,29,100,15
  169.     LTEXT           "端口:",IDC_STATIC,18,50,25,8
  170.     EDITTEXT        IDC_SOURCE_PORT,57,48,40,14,ES_AUTOHSCROLL
  171.     LTEXT           "IP地址:",IDC_STATIC,18,85,33,15,SS_CENTERIMAGE
  172.     CONTROL         "IPAddress1",IDC_DEST_IPADDRESS,"SysIPAddress32",
  173.                     WS_TABSTOP,57,85,100,15
  174.     LTEXT           "端口:",IDC_STATIC,18,106,25,8
  175.     EDITTEXT        IDC_DEST_PORT,57,104,40,14,ES_AUTOHSCROLL
  176.     LTEXT           "协议:",IDC_STATIC,18,147,25,8
  177.     LTEXT           "状态:",IDC_STATIC,18,165,25,8
  178.     COMBOBOX        IDC_PROTO_COMBO,57,145,71,76,CBS_DROPDOWN | CBS_SORT | 
  179.                     WS_VSCROLL | WS_TABSTOP
  180.     COMBOBOX        IDC_STATE_COMBO,57,166,71,54,CBS_DROPDOWN | CBS_SORT | 
  181.                     WS_VSCROLL | WS_TABSTOP
  182.     LTEXT           "本机IP/端口",IDC_STATIC,7,17,45,8
  183.     LTEXT           "远程IP/端口",IDC_STATIC,7,71,45,8
  184.     LTEXT           "设置",IDC_STATIC,7,131,17,8
  185. END
  186. IDP_WEBSITE_SETTING DIALOG DISCARDABLE  0, 0, 396, 260
  187. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  188. CAPTION "  网站设置  "
  189. FONT 9, "宋体"
  190. BEGIN
  191.     CONTROL         "List1",IDC_WEBSITE_LIST,"SysListView32",WS_BORDER | 
  192.                     WS_TABSTOP,7,111,382,142
  193.     PUSHBUTTON      "添加",IDC_ADD_WEBSITE,25,64,50,14
  194.     PUSHBUTTON      "删除",IDC_DELETE_WEBSITE,99,64,50,14
  195.     LTEXT           "网站URL :",IDC_STATIC,22,24,41,8
  196.     LTEXT           "网站描述:",IDC_STATIC,22,42,41,8
  197.     EDITTEXT        IDC_WEBSITE_URL,72,21,228,14,ES_AUTOHSCROLL
  198.     EDITTEXT        IDC_WEBSITE_DESCRIPTION,72,39,228,14,ES_AUTOHSCROLL
  199.     LTEXT           "网站黑名单:",IDC_STATIC,0,98,49,8
  200.     LTEXT           "您可以将自己认为恶意的网站加入黑名单:",IDC_STATIC,0,4,
  201.                     153,8
  202.     CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,7,86,382,1
  203.     LTEXT           "例如:www.baidu.con",IDC_STATIC,309,24,77,8
  204.     LTEXT           "例如:百度",IDC_STATIC,309,42,41,8
  205. END
  206. IDP_IP_RULE DIALOG DISCARDABLE  0, 0, 396, 260
  207. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  208. CAPTION "   IP规则   "
  209. FONT 9, "宋体"
  210. BEGIN
  211.     CONTROL         "List1",IDC_IP_RULE_LIST,"SysListView32",WS_BORDER | 
  212.                     WS_TABSTOP,7,13,382,230
  213.     LTEXT           "您可以从这里设置IP规则:",IDC_STATIC,0,0,97,8
  214. END
  215. IDP_ARP_RULE DIALOG DISCARDABLE  0, 0, 396, 260
  216. STYLE WS_CHILD | WS_DISABLED | WS_CAPTION
  217. CAPTION "  ARP规则  "
  218. FONT 9, "宋体"
  219. BEGIN
  220.     CONTROL         "关闭ARP攻击防范",IDC_RADIO_CLOSE,"Button",
  221.                     BS_AUTORADIOBUTTON,7,29,76,10
  222.     CONTROL         "开启ARP攻击防范",IDC_RADIO_OPEN,"Button",
  223.                     BS_AUTORADIOBUTTON,7,7,76,10
  224.     CONTROL         "List1",IDC_ARP_RULE_LIST,"SysListView32",WS_BORDER | 
  225.                     WS_TABSTOP,145,25,244,228
  226.     LTEXT           "局域网IP-MAC对照表:",IDC_STATIC,119,7,81,8
  227.     CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDVERT,100,8,1,246
  228. END
  229. #ifndef _MAC
  230. /////////////////////////////////////////////////////////////////////////////
  231. //
  232. // Version
  233. //
  234. VS_VERSION_INFO VERSIONINFO
  235.  FILEVERSION 1,0,0,1
  236.  PRODUCTVERSION 1,0,0,1
  237.  FILEFLAGSMASK 0x3fL
  238. #ifdef _DEBUG
  239.  FILEFLAGS 0x1L
  240. #else
  241.  FILEFLAGS 0x0L
  242. #endif
  243.  FILEOS 0x4L
  244.  FILETYPE 0x1L
  245.  FILESUBTYPE 0x0L
  246. BEGIN
  247.     BLOCK "StringFileInfo"
  248.     BEGIN
  249.         BLOCK "080404B0"
  250.         BEGIN
  251.             VALUE "CompanyName", ""
  252.             VALUE "FileDescription", "MyFireWall Microsoft 基础类应用程序"
  253.             VALUE "FileVersion", "1, 0, 0, 1"
  254.             VALUE "InternalName", "MyFireWall"
  255.             VALUE "LegalCopyright", "版权所有 (C) 2009"
  256.             VALUE "LegalTrademarks", ""
  257.             VALUE "OriginalFilename", "MyFireWall.EXE"
  258.             VALUE "ProductName", "MyFireWall 应用程序"
  259.             VALUE "ProductVersion", "1, 0, 0, 1"
  260.         END
  261.     END
  262.     BLOCK "VarFileInfo"
  263.     BEGIN
  264.         VALUE "Translation", 0x804, 1200
  265.     END
  266. END
  267. #endif    // !_MAC
  268. /////////////////////////////////////////////////////////////////////////////
  269. //
  270. // DESIGNINFO
  271. //
  272. #ifdef APSTUDIO_INVOKED
  273. GUIDELINES DESIGNINFO DISCARDABLE 
  274. BEGIN
  275.     IDD_ABOUTBOX, DIALOG
  276.     BEGIN
  277.         LEFTMARGIN, 7
  278.         RIGHTMARGIN, 228
  279.         TOPMARGIN, 7
  280.         BOTTOMMARGIN, 71
  281.     END
  282.     IDD_MYFIREWALL_DIALOG, DIALOG
  283.     BEGIN
  284.         LEFTMARGIN, 7
  285.         RIGHTMARGIN, 413
  286.         TOPMARGIN, 7
  287.         BOTTOMMARGIN, 273
  288.     END
  289.     IDP_WORK_STATUS, DIALOG
  290.     BEGIN
  291.         LEFTMARGIN, 7
  292.         RIGHTMARGIN, 389
  293.         TOPMARGIN, 7
  294.         BOTTOMMARGIN, 253
  295.     END
  296.     IDP_APP_MONITOR, DIALOG
  297.     BEGIN
  298.         LEFTMARGIN, 7
  299.         RIGHTMARGIN, 389
  300.         TOPMARGIN, 7
  301.         BOTTOMMARGIN, 253
  302.     END
  303.     IDP_ACCESS_CTRL, DIALOG
  304.     BEGIN
  305.         LEFTMARGIN, 7
  306.         RIGHTMARGIN, 389
  307.         TOPMARGIN, 7
  308.         BOTTOMMARGIN, 253
  309.     END
  310.     IDD_QUERY_DLG, DIALOG
  311.     BEGIN
  312.         LEFTMARGIN, 7
  313.         RIGHTMARGIN, 223
  314.         TOPMARGIN, 7
  315.         BOTTOMMARGIN, 249
  316.     END
  317.     IDP_PACKET_MONITOR, DIALOG
  318.     BEGIN
  319.         LEFTMARGIN, 7
  320.         RIGHTMARGIN, 388
  321.         TOPMARGIN, 7
  322.         BOTTOMMARGIN, 253
  323.     END
  324.     IDD_KER_RULE_SETTING_DLG, DIALOG
  325.     BEGIN
  326.         LEFTMARGIN, 7
  327.         RIGHTMARGIN, 191
  328.         TOPMARGIN, 7
  329.         BOTTOMMARGIN, 212
  330.     END
  331.     IDP_WEBSITE_SETTING, DIALOG
  332.     BEGIN
  333.         LEFTMARGIN, 7
  334.         RIGHTMARGIN, 389
  335.         TOPMARGIN, 7
  336.         BOTTOMMARGIN, 253
  337.     END
  338.     IDP_IP_RULE, DIALOG
  339.     BEGIN
  340.         LEFTMARGIN, 7
  341.         RIGHTMARGIN, 389
  342.         TOPMARGIN, 7
  343.         BOTTOMMARGIN, 253
  344.     END
  345.     IDP_ARP_RULE, DIALOG
  346.     BEGIN
  347.         LEFTMARGIN, 7
  348.         RIGHTMARGIN, 389
  349.         TOPMARGIN, 7
  350.         BOTTOMMARGIN, 253
  351.     END
  352. END
  353. #endif    // APSTUDIO_INVOKED
  354. /////////////////////////////////////////////////////////////////////////////
  355. //
  356. // Menu
  357. //
  358. IDR_MAIN_MENU MENU DISCARDABLE 
  359. BEGIN
  360.     POPUP "  操作  "
  361.     BEGIN
  362.         MENUITEM "停止保护",                    IDM_STOP_PROTECT
  363.         MENUITEM "断开网络",                    IDM_CUTDOWN_NETWORK
  364.         MENUITEM SEPARATOR
  365.         MENUITEM "退 出",                       IDM_EXIT
  366.     END
  367.     POPUP "  设置  "
  368.     BEGIN
  369.         MENUITEM "应用程规则",                  IDM_LSP_RULE
  370.         MENUITEM "核心层规则",                  IDM_KER_RULE
  371.         POPUP "皮肤设置"
  372.         BEGIN
  373.             MENUITEM "蓝色",                        IDM_BLUE
  374.             MENUITEM "绿色",                        IDM_GREEN
  375.             MENUITEM "白色",                        IDM_WHITE
  376.         END
  377.     END
  378. END
  379. IDR_ACL_MENU MENU DISCARDABLE 
  380. BEGIN
  381.     POPUP "ACL"
  382.     BEGIN
  383.         MENUITEM " 修改 ",                      IDM_ACL_MODIFY
  384.         MENUITEM " 删除 ",                      IDM_ACL_DELETE
  385.     END
  386. END
  387. IDR_KER_MENU MENU DISCARDABLE 
  388. BEGIN
  389.     POPUP "KER"
  390.     BEGIN
  391.         MENUITEM " 增加 ",                      IDM_ADD_KER_RULE
  392.         MENUITEM " 编辑 ",                      IDM_MODIFY_KER_RULE
  393.         MENUITEM " 删除 ",                      IDM_DEL_KER_RULE
  394.     END
  395. END
  396. IDR_WEBSITE_MENU MENU DISCARDABLE 
  397. BEGIN
  398.     POPUP "WEBSITE"
  399.     BEGIN
  400.         MENUITEM " 删除 ",                      IDM_DEL_WEBSITE
  401.     END
  402. END
  403. IDR_MODE_MENU MENU DISCARDABLE 
  404. BEGIN
  405.     POPUP "MODE"
  406.     BEGIN
  407.         MENUITEM " 允许所有 ",                  IDM_PASS_MODE
  408.         MENUITEM " 过滤所有 ",                  IDM_FILTER_MODE
  409.         MENUITEM " 拒绝所有 ",                  IDM_DENY_MODE
  410.     END
  411. END
  412. IDR_IPRULE_MENU MENU DISCARDABLE 
  413. BEGIN
  414.     POPUP "IPRULE"
  415.     BEGIN
  416.         MENUITEM " 修改 ",                      IDM_MODIFY_IPRULE
  417.     END
  418. END
  419. /////////////////////////////////////////////////////////////////////////////
  420. //
  421. // String Table
  422. //
  423. STRINGTABLE DISCARDABLE 
  424. BEGIN
  425.     IDS_ABOUTBOX            "关于 MyFireWall(&A)..."
  426. END
  427. #endif    // Chinese (中国) resources
  428. /////////////////////////////////////////////////////////////////////////////
  429. #ifndef APSTUDIO_INVOKED
  430. /////////////////////////////////////////////////////////////////////////////
  431. //
  432. // Generated from the TEXTINCLUDE 3 resource.
  433. //
  434. #define _AFX_NO_SPLITTER_RESOURCES
  435. #define _AFX_NO_OLE_RESOURCES
  436. #define _AFX_NO_TRACKER_RESOURCES
  437. #define _AFX_NO_PROPERTY_RESOURCES
  438. #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
  439. #ifdef _WIN32
  440. LANGUAGE 4, 2
  441. #pragma code_page(936)
  442. #endif //_WIN32
  443. #include "resMyFireWall.rc2"  // non-Microsoft Visual C++ edited resources
  444. #include "l.chsafxres.rc"          // Standard components
  445. #endif
  446. /////////////////////////////////////////////////////////////////////////////
  447. #endif    // not APSTUDIO_INVOKED