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.

312 lines
17 KiB

  1. // Include our VERSIONINFO structure.
  2. //
  3. #include "winres.h"
  4. #include "resource.h"
  5. #include "version.h"
  6. #include "hncres.h"
  7. #ifndef DS_MODALFRAME
  8. #define DS_MODALFRAME 0x80L
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. //
  12. // Bitmap
  13. //
  14. /////////////////////////////////////////////////////////////////////////////
  15. //
  16. // Icon
  17. //
  18. // Icon with lowest ID value placed first to ensure application icon
  19. // remains consistent on all systems.
  20. IID_Direct ICON DISCARDABLE ".\\do_g_m_16.ico"
  21. IID_Vpn ICON DISCARDABLE ".\\to_g_m_16.ico"
  22. IID_Phone ICON DISCARDABLE ".\\po_g_m_16.ico"
  23. IID_PersonalFirewall ICON DISCARDABLE ".\\personalfirewall.ico"
  24. IID_Checked ICON DISCARDABLE ".\\check.ico"
  25. IID_Unchecked ICON DISCARDABLE ".\\uncheck.ico"
  26. IID_DisabledUnchecked ICON DISCARDABLE ".\\disunchk.ico"
  27. IID_DisabledChecked ICON DISCARDABLE ".\\discheck.ico"
  28. IID_Connection_ICF_ICS ICON DISCARDABLE ".\\Connection_ICF_ICS.ico"
  29. /////////////////////////////////////////////////////////////////////////////
  30. //
  31. // Dialog
  32. //
  33. #include "hnetcfg2.rc"
  34. PID_SA_Advanced DIALOGEX 0, 0, 227, 215
  35. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  36. CAPTION "Advanced"
  37. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  38. BEGIN
  39. GROUPBOX "Internet Connection Firewall",IDC_STATIC,7,8,213,52
  40. CONTROL "&Protect my computer and network by limiting or preventing access to this computer from the Internet",CID_FW_PB_Firewalled,
  41. "Button",BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,15,23,194,16
  42. CONTROL "Learn more about <A>Internet Connection Firewall</A>.",CID_SA_ST_ICFLink,"Link Window",WS_TABSTOP,15,47,194,10
  43. GROUPBOX "Internet Connection Sharing",CID_SA_GB_PrivateLan,7,62,213,130,NOT WS_VISIBLE
  44. GROUPBOX "Internet Connection Sharing",CID_SA_GB_Shared,7,62,213,
  45. 111
  46. CONTROL "Allow other &network users to connect through this computer's Internet connection",
  47. CID_SA_PB_Shared,"Button",BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP, 14,78,194,16
  48. LTEXT "&Home networking connection:", CID_SA_ST_HomeConnection,26,101,189,8,NOT WS_VISIBLE | WS_DISABLED
  49. COMBOBOX CID_SA_LB_PrivateLan,26,112,189,50,CBS_DROPDOWNLIST |
  50. NOT WS_VISIBLE | WS_VSCROLL | WS_TABSTOP
  51. EDITTEXT CID_SA_EB_PrivateLan,26,112,189,12,ES_AUTOHSCROLL |
  52. ES_READONLY | NOT WS_VISIBLE | NOT WS_BORDER,
  53. WS_EX_CLIENTEDGE
  54. CONTROL "E&stablish a dial-up connection whenever a computer on my network attempts to access the Internet",CID_SA_PB_DemandDial,"Button",
  55. BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,14,112,188,16
  56. CONTROL "All&ow other network users to control or disable the shared Internet connection",CID_SA_PB_Beacon,"Button",
  57. BS_AUTOCHECKBOX | BS_TOP | BS_MULTILINE | WS_TABSTOP,14,136,188,16
  58. CONTROL "Learn more about <A>Internet Connection Sharing</A>.",CID_SA_ST_ICSLink,"Link Window",WS_TABSTOP,15,160,194,10
  59. CONTROL "",CID_SA_SF_PrivateLan,"Static",SS_ETCHEDHORZ | NOT
  60. WS_VISIBLE,7,132,212,1
  61. CONTROL "If you're not sure how to set these properties, use the <A>Network Setup Wizard</A> instead.",
  62. CID_SA_ST_HNWLink,"Link Window",NOT WS_VISIBLE |
  63. WS_TABSTOP,7,193,160,20
  64. PUSHBUTTON "Settin&gs...",CID_SA_PB_Settings,170,198,50,14
  65. END
  66. DID_SA_DisableFirewallWarning DIALOG DISCARDABLE 0, 0, 258, 78
  67. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  68. CAPTION "Internet Connection Firewall"
  69. FONT 8, "MS Shell Dlg"
  70. BEGIN
  71. ICON 32515,IDC_STATIC,7,7,20,20
  72. LTEXT "Turning off the Internet Connection Firewall could expose your computer to unauthorized access over the Internet. Are you sure you want to turn it off?",
  73. IDC_STATIC,46,7,204,24
  74. CONTROL "&Do not show this dialog again",
  75. CID_SA_PB_DisableFirewallWarning,"Button",
  76. BS_AUTOCHECKBOX | WS_TABSTOP,46,39,204,10
  77. DEFPUSHBUTTON "&Yes",IDYES,77,57,50,14
  78. PUSHBUTTON "&No",IDNO,131,57,50,14
  79. END
  80. PID_FW_FirewallLogging DIALOGEX 0, 0, 227, 215
  81. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  82. CAPTION "Security Logging"
  83. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  84. BEGIN
  85. GROUPBOX "Logging Options:",IDC_STATIC,7,7,213,47
  86. CONTROL "Log &dropped packets",
  87. CID_FL_CB_LogDroppedInbound,"Button",BS_AUTOCHECKBOX |
  88. WS_TABSTOP,14,22,199,10
  89. CONTROL "Log successful &connections",
  90. CID_FL_CB_LogOutboundConnections,"Button",
  91. BS_AUTOCHECKBOX | WS_TABSTOP,14,36,199,10
  92. GROUPBOX "Log file options:",IDC_STATIC,7,62,213,91
  93. LTEXT "&Name:",IDC_STATIC,14,78,199,8
  94. EDITTEXT CID_FL_EB_Filename,14,90,199,14,ES_READONLY | ES_AUTOHSCROLL
  95. PUSHBUTTON "&Browse...",CID_FL_PB_Browse,163,108,50,14
  96. LTEXT "&Size limit:",IDC_STATIC,14,133,30,8
  97. EDITTEXT CID_FL_EB_Filesize,48,130,50,14,ES_AUTOHSCROLL |
  98. ES_NUMBER
  99. LTEXT "KB",IDC_STATIC,102,133,20,8
  100. PUSHBUTTON "&Restore Defaults",CID_FL_PB_RestoreDefaults,145,197,75,
  101. 14
  102. END
  103. PID_FW_ICMP DIALOGEX 0, 0, 227, 215
  104. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  105. CAPTION "ICMP"
  106. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  107. BEGIN
  108. LTEXT "&Internet Control Message Protocol (ICMP) allows the computers on a network to share error and status information. Select the requests for information from the Internet that this computer will respond to:",
  109. IDC_STATIC,7,7,213,32
  110. CONTROL "IList1",CID_IC_LV_Settings,"SysListView32",LVS_REPORT |
  111. LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_OWNERDRAWFIXED |
  112. LVS_NOCOLUMNHEADER | WS_BORDER | WS_TABSTOP,7,45,213,100,
  113. WS_EX_CLIENTEDGE
  114. GROUPBOX "Description:",IDC_STATIC,7,156,213,55
  115. LTEXT "",CID_IC_ST_Description,14,171,199,32
  116. END
  117. IDD_SecurityNotification DIALOGEX 0, 0, 240, 97
  118. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  119. EXSTYLE WS_EX_CONTEXTHELP
  120. CAPTION "Internet Sharing Configuration"
  121. FONT 8, "MS Shell Dlg"
  122. BEGIN
  123. LTEXT "<default>",IDC_TXT_NOTIFICATION,7,7,226,46
  124. DEFPUSHBUTTON "&Yes",IDOK,7,60,52,14
  125. PUSHBUTTON "&No",IDCANCEL,65,60,52,14
  126. PUSHBUTTON "&More Info...",IDC_BTN_MOREINFO,123,60,52,14
  127. CHECKBOX "&Do not show this dialog again",IDC_CHK_DISABLESHARESECURITYWARN,
  128. 7,76,226,14,BS_AUTOCHECKBOX|WS_TABSTOP
  129. END
  130. /////////////////////////////////////////////////////////////////////////////
  131. //
  132. // Dialog
  133. //
  134. IDD_CONFIRMATION DIALOGEX 0, 0, 300, 158
  135. STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND |
  136. DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION
  137. CAPTION "ICS and ICF plug-in Installation"
  138. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  139. BEGIN
  140. DEFPUSHBUTTON "Yes",1,190,138,42,14
  141. PUSHBUTTON "No",2,235,138,42,14
  142. LTEXT "The program you are running is attempting to install a plug-in to be used with Internet Connection Sharing (ICS) and Internet Connection Firewall (ICF).",
  143. IDC_STATIC,6,7,285,22
  144. GROUPBOX "",IDC_STATIC,6,26,285,48
  145. ICON IID_Connection_ICF_ICS,IDC_STATIC,21,41,21,20
  146. LTEXT "Company",IDC_EDIT_COMPANY,60,40b,210,12
  147. LTEXT "Product",IDC_EDIT_PRODUCT,60,54,210,12
  148. LTEXT "Installing this plug-in might solve Internet connectivity problems you are having with this program, however, the plug-in will modify your ICS and ICF settings. Allowing any program to modify your ICF settings is a potential security risk. ",
  149. IDC_STATIC,6,80,294,29
  150. CONTROL "Learn more about using <A>ICS and ICF plug-ins.</A>",
  151. CID_SA_ST_ICFLink,"SysLink",WS_TABSTOP,6,114,285,12
  152. LTEXT "Do you want to allow installation of this plug-in?",
  153. IDC_STATIC,6,139,174,12,0,WS_EX_RIGHT
  154. END
  155. IDD_INSTALLERROR DIALOG DISCARDABLE 0, 0, 245, 115
  156. STYLE DS_SYSMODAL | DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION
  157. CAPTION "There was an error installing the ICS and ICF plug-in"
  158. FONT 8, "MS Shell Dlg"
  159. BEGIN
  160. DEFPUSHBUTTON "OK",1,98,92,50,14
  161. LTEXT "The ICS and ICF plug-in could not be installed. Be sure you are logged in as an administrator before installing an ICS and ICF plug-in.",
  162. IDC_STATIC,49,8,186,28
  163. EDITTEXT IDC_EDIT_LASTERROR,44,58,190,26,ES_AUTOHSCROLL |
  164. ES_READONLY
  165. LTEXT "Error:",IDC_STATIC,9,44,32,9
  166. EDITTEXT IDC_EDIT_LASTERROR_CODE,44,42,34,13,ES_AUTOHSCROLL |
  167. ES_READONLY
  168. END
  169. /////////////////////////////////////////////////////////////////////////////
  170. //
  171. // String Table
  172. //
  173. STRINGTABLE DISCARDABLE
  174. BEGIN
  175. SID_SA_SelectAdapter "Select a private network connection"
  176. SID_SA_SelectAdapterError
  177. "To enable Internet Connection Sharing a connection must be selected for the private network. Please select a connection from the list of available connections."
  178. SID_EnableSharedAccess "When Internet Connection Sharing is enabled, your LAN adapter will be set to use IP address 192.168.0.1. Your computer may lose connectivity with other computers on your network. If these other computers have static IP addresses, you should set them to obtain their IP addresses automatically. Are you sure you want to enable Internet Connection Sharing?"
  179. SID_ChangeSharedConnection
  180. "Internet Connection Sharing is currently enabled for connection '%1'.\n\nIt will now be enabled for connection '%2' instead."
  181. SID_HelpFile "netcfg.hlp"
  182. SID_SharedAccessSettings "Advanced Settings"
  183. SID_NetworkApplicationSettings "Network Application Settings"
  184. END
  185. STRINGTABLE DISCARDABLE
  186. BEGIN
  187. SID_SharingConflict "Internet Connection Sharing (ICS) and Internet Connection Firewall (ICF) cannot be enabled because Routing and Remote Access has been enabled on this computer. To enable ICS or ICF, first disable Routing and Remote Access.\n\nFor more information about Routing and Remote Access, ICS, or ICF, see Help and Support."
  188. SID_OP_UnshareConnection "Cannot disable shared access."
  189. SID_OP_ShareConnection "Cannot enable shared access."
  190. SID_OP_DisableDemandDial "Cannot disable on-demand dialing."
  191. SID_OP_EnableDemandDial "Cannot enable on-demand dialing."
  192. SID_FMT_ErrorMsg "%1\n\nError %2: %3"
  193. SID_OP_LoadDlg "Cannot load dialog."
  194. SID_TypeResponseList "Please enter one or more ports for incoming responses."
  195. END
  196. STRINGTABLE DISCARDABLE
  197. BEGIN
  198. SID_ICMP_IECHO "Allow incoming echo request"
  199. SID_ICMP_IECHO_DESC "Messages sent to this computer will be repeated back to the sender. This is commonly used for troubleshooting, for example, to ping a machine."
  200. SID_ICMP_ITIME "Allow incoming timestamp request"
  201. SID_ICMP_ITIME_DESC "Data sent to this computer can be acknowledged with a confirmation message indicating the time that the data was received."
  202. SID_ICMP_IMASK "Allow incoming mask request"
  203. SID_ICMP_IMASK_DESC "This computer will listen for and respond to requests for more information about the public network to which it is attached."
  204. SID_ICMP_IROUT "Allow incoming router request"
  205. SID_ICMP_IROUT_DESC "This computer will respond to requests for information about the routes it recognizes."
  206. SID_ICMP_ODEST "Allow outgoing destination unreachable"
  207. SID_ICMP_ODEST_DESC "Data sent over the Internet that fails to reach this computer due to an error will be discarded and acknowledged with a ""destination unreachable"" message explaining the failure."
  208. SID_ICMP_OQNCH "Allow outgoing source quench"
  209. SID_ICMP_OQNCH_DESC "When this computer's ability to process incoming data cannot keep up with the rate of a transmission, data will be dropped and the sender will be asked to slow down."
  210. SID_ICMP_OPRAM "Allow outgoing parameter problem"
  211. SID_ICMP_OPRAM_DESC "When this computer discards data it has received due to a problematic header, it will reply to the sender with a ""bad header"" error message."
  212. SID_ICMP_OTIME "Allow outgoing time exceeded"
  213. SID_ICMP_OTIME_DESC "When this computer discards an incomplete data transmission because the entire transmission required more time than allowed, it will reply to the sender with a ""time expired"" message."
  214. SID_ICMP_XRDRT "Allow redirect"
  215. SID_ICMP_XRDRT_DESC "Data sent from this computer will be rerouted if the default path changes."
  216. END
  217. STRINGTABLE DISCARDABLE
  218. BEGIN
  219. SID_FwbInvalidSize "The value entered for the log file size is not valid. Enter a value between 1 and 32767 k."
  220. SID_FwbFilterDesc "Firewall log files (*.log)\x00*.log\x00"
  221. SID_FwbTitle "Browse"
  222. SID_FwbDefExt "log"
  223. END
  224. STRINGTABLE DISCARDABLE
  225. BEGIN
  226. IDS_SECURITYNOTIFICATIONTEXT "%s is attempting to change or view this computer's Internet Connection Protection settings. To give %s permission to edit these settings for as long as the program is open, click YES."
  227. END
  228. STRINGTABLE DISCARDABLE
  229. BEGIN
  230. IDS_SHARINGCONFIGURATIONUNAVAIL "The Sharing configuration is unavailable.\r\n"
  231. IDS_DISABLEFIREWALLFAIL "Disable Firewall failed with code %x.\r\n"
  232. IDS_DESTROYBRIDGEFAIL "Destroy Bridge failed with code %x.\r\n"
  233. IDS_DISABLEICS "Disable ICS failed with code %x.\r\n"
  234. IDS_NEWBRIDGECREATED "New Bridge created for ICS configuration.\r\n"
  235. IDS_NEWBRIDGEFAILED "Bridge creation failed during ICS configuration.\r\n"
  236. IDS_NEWPRIVATECONNECTIONCREATED "%s Shared Private for ICS configuration.\r\n"
  237. IDS_NEWPRIVATECONNECTIONFAILED "ICS Failed to Share %s as a Private connection.\r\n"
  238. IDS_SHARINGCFGFORADAPTERUNAVAIL "Sharing configuration for %s unavailable.\r\n"
  239. IDS_NEWPUBLICCONNECTIONCREATED "%s Shared Public for ICS configuration.\r\n"
  240. IDS_NEWPUBLICCONNECTIONFAILED "ICS Failed to Share %s as a Public connection.\r\n"
  241. IDS_FIREWALLCONNECTION "Internet Connection Firewall Enabled on %s.\r\n"
  242. IDS_FIREWALLCONNECTIONFAILED "ICS Failed to enable Internet Connection Firewall on %s.\r\n"
  243. IDS_WSAERRORDURINGDETECTION "WSA Error %x occurred during internet detection.\r\n"
  244. IDS_SENDARPERRORDURINGDETECTION "SendARP Error %x occurred during internet detection.\r\n"
  245. IDS_ICSADDRESSCONFLICTDETECTED "Address conflict detected for IP Address %s.\r\n"
  246. IDS_ADD_REMOVE "Add or Remove Programs"
  247. IDS_REMOVE_ALG_PLUGIN "Are you sure you want to remove this Internet Connection Sharing and Firewall plug-in from your computer?"
  248. END
  249. STRINGTABLE DISCARDABLE
  250. BEGIN
  251. IDS_ALL_USER_CONN_MUST_HAVE_GLOBAL_CREDS "The user name and password for this connection were not saved for use by all users. As a result, Internet Connection Sharing can only dial this connection when you are logged on. To enable automatic dialing, save your user name and password for all users in the Connect dialog."
  252. IDS_PER_USER_CONN_NEED_TO_CREATE_ALL_USER_CONN "The user name and password for this connection cannot be saved for use by all users. As a result, Internet Connection Sharing can only dial this connection when you are logged on. To enable automatic dialing, you should create a new connection for all users, save your user name and password for all users, and then enable sharing for the new connection."
  253. END
  254. STRINGTABLE DISCARDABLE
  255. BEGIN
  256. SID_PMP_FTP "FTP Server"
  257. SID_PMP_TELNET "Telnet Server"
  258. SID_PMP_SMTP "Internet Mail Server (SMTP)"
  259. SID_PMP_POP3 "Post-Office Protocol Version 3 (POP3)"
  260. SID_PMP_IMAP3 "Internet Mail Access Protocol Version 3 (IMAP3)"
  261. SID_PMP_IMAP4 "Internet Mail Access Protocol Version 4 (IMAP4)"
  262. SID_PMP_HTTP "Web Server (HTTP)"
  263. SID_PMP_HTTPS "Secure Web Server (HTTPS)"
  264. SID_PMP_RDP "Remote Desktop"
  265. END
  266. //+---------------------------------------------------------------------------
  267. // Reigstry resources
  268. //
  269. // HNetCfg application
  270. //
  271. IDR_HNETCFG REGISTRY "hnetcfg.rgs"
  272. // SharingManager interface
  273. //
  274. IDR_SHAREMGR REGISTRY "hnshare.rgs"
  275. // UPNP NAT traversal interface
  276. //
  277. IDR_UPNPNAT REGISTRY "upnpnat.rgs"
  278. 1 TYPELIB "netcon.tlb"
  279. 2 TYPELIB "natupnp.tlb"