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.

161 lines
6.5 KiB

  1. #include "windows.h"
  2. #include "resource.h"
  3. #include "version.h"
  4. IDI_TRAYICON ICON gateway.ico
  5. IDI_INTERNET ICON internet.ico
  6. IDI_GATEWAY ICON gateway.ico
  7. IDI_MYCOMPUTER ICON mycomputer.ico
  8. IDM_TRAYICON_LAN_CONNECT MENU
  9. BEGIN
  10. POPUP ""
  11. BEGIN
  12. MENUITEM "&Disable", IDM_TRAYICON_DISCONNECT
  13. MENUITEM "&Status", IDM_TRAYICON_STATUS
  14. END
  15. END
  16. IDM_TRAYICON_LAN_DISCONNECT MENU
  17. BEGIN
  18. POPUP ""
  19. BEGIN
  20. MENUITEM "&Enable", IDM_TRAYICON_CONNECT
  21. MENUITEM "&Status", IDM_TRAYICON_STATUS, GRAYED
  22. END
  23. END
  24. IDM_TRAYICON_RAS_CONNECT MENU
  25. BEGIN
  26. POPUP ""
  27. BEGIN
  28. MENUITEM "&Disconnect", IDM_TRAYICON_DISCONNECT
  29. MENUITEM "&Status", IDM_TRAYICON_STATUS
  30. END
  31. END
  32. IDM_TRAYICON_RAS_DISCONNECT MENU
  33. BEGIN
  34. POPUP ""
  35. BEGIN
  36. MENUITEM "&Connect", IDM_TRAYICON_CONNECT
  37. MENUITEM "&Status", IDM_TRAYICON_STATUS, GRAYED
  38. END
  39. END
  40. IDD_STATUS DIALOGEX 0, 0, 210, 154
  41. STYLE WS_CHILD | WS_CAPTION | WS_SYSMENU
  42. CAPTION "General"
  43. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  44. BEGIN
  45. GROUPBOX "Internet Gateway",IDC_STATIC,7,7,196,50
  46. LTEXT "Status:",IDC_STATIC,17,19,23,8
  47. LTEXT "",IDC_STATUS_STATUS,73,19,120,8,0, WS_EX_RIGHT
  48. LTEXT "Duration:",IDC_STATIC,17,31,30,8
  49. LTEXT "",IDC_STATUS_DURATION,73,31,120,8,0,WS_EX_RIGHT
  50. LTEXT "Speed:",IDC_STATIC,17,43,24,8
  51. LTEXT "",IDC_STATUS_SPEED,73,43,120,8,0,WS_EX_RIGHT
  52. GROUPBOX "Activity",IDC_STATIC,7,63,196,70
  53. LTEXT "Internet",IDC_STATIC,15,71,46,9
  54. RTEXT "My Computer",IDC_STATIC,150,71,46,9
  55. RTEXT "Intenet Gateway",IDC_STATIC,65,71,65,9
  56. ICON IDI_INTERNET,IDC_STATIC,15,81,20,20
  57. CONTROL "",IDC_STATIC,"Static",SS_GRAYFRAME,40,90,50,2
  58. ICON IDI_GATEWAY,IDC_STATIC,95,81,20,20
  59. CONTROL "",IDC_STATIC,"Static",SS_GRAYFRAME,120,90,50,2
  60. ICON IDI_MYCOMPUTER,IDC_STATIC,175,81,20,20
  61. LTEXT "Bytes:",IDC_STATUS_BYTESLABEL,17,107,34,8
  62. LTEXT "Packets:",IDC_STATUS_PACKETSLABEL,17,107,34,8, NOT WS_VISIBLE
  63. LTEXT "Sent:",IDC_STATIC,25,115,37,8,0
  64. LTEXT "Received:",IDC_STATIC,25,123,65,8,0
  65. LTEXT "",IDC_STATUS_BYTESSENT,60,115,55,8,0,WS_EX_RIGHT
  66. LTEXT "",IDC_STATUS_BYTESRECEIVED,60,123,55,8,0,WS_EX_RIGHT
  67. LTEXT "",IDC_STATUS_LOCALBYTESSEND,135,115,60,8,0,WS_EX_RIGHT
  68. LTEXT "",IDC_STATUS_LOCALBYTESRECEIVTED,135,123,60,8,0,WS_EX_RIGHT
  69. PUSHBUTTON "&Properties",IDC_STATUS_PROPERTIES,7,137,50,14
  70. PUSHBUTTON "",IDC_STATUS_DISCONNECT,60,137,55,14, NOT WS_VISIBLE
  71. PUSHBUTTON "",IDC_STATUS_CONNECT,60,137,55,14, NOT WS_VISIBLE
  72. END
  73. IDD_PROPERTIES DIALOGEX DISCARDABLE 0, 0, 227, 207
  74. STYLE WS_CHILD | WS_CAPTION | WS_SYSMENU
  75. CAPTION "General"
  76. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  77. BEGIN
  78. LTEXT "Connect to the Internet using:",IDC_STATIC,7,7,213,8
  79. EDITTEXT IDC_STATIC,7,18,213,18,ES_AUTOHSCROLL | ES_READONLY | WS_DISABLED | NOT WS_TABSTOP
  80. EDITTEXT IDC_PROPERTIES_ADAPTERNAME,28,21,182,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP
  81. ICON "",IDC_PROPERTIES_ADAPTERICON,12,20,16,16
  82. LTEXT "This connection allows you to connect to the Internet through a shared connection on another computer.", IDC_STATIC,7,64,213,24
  83. CONTROL "Sho&w icon in taskbar notification area when connected",IDC_PROPERTIES_SHOWICON, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,186,213,10
  84. END
  85. STRINGTABLE DISCARDABLE
  86. BEGIN
  87. IDS_DEFAULTADAPTERNAME "Internet Gateway"
  88. IDS_UPTIME_ZERODAYS "%.2d%s%.2d%s%.2d"
  89. IDS_UPTIME_ONEDAY "1 day %.2d%s%.2d%s%.2d"
  90. IDS_UPTIME_MANYDAYS "%d days %.2d%s%.2d%s%.2d"
  91. IDS_TOOLTIP_FORMAT "Internet Gateway: %s"
  92. IDS_NAME_FORMAT "%1 on %2"
  93. IDS_PROPERTIES_FORMAT "%1 Properties"
  94. IDS_STATUS_FORMAT "%1 Status"
  95. IDS_BEACONNOTFOUND "Windows did not find an Internet gateway on your network. Check to be sure that all cables are connected correctly and that you have one of the following:\n\n\t* A computer that is running Windows XP or greater with Internet Connection Sharing enabled, or\n\t* An Internet gateway with Universal Plug and Play enabled."
  96. IDS_APPTITLE "Internet Gateway"
  97. IDS_CONNECTED "Connected"
  98. IDS_CONNECTING "Connecting"
  99. IDS_DISCONNECTED "Disconnected"
  100. IDS_DISCONNECTING "Disconnecting"
  101. IDS_UNCONFIGURED "Unconfigured"
  102. IDS_ENABLE "E&nable"
  103. IDS_DISABLE "&Disable"
  104. IDS_CONNECT "Co&nnect"
  105. IDS_DISCONNECT "&Disconnect"
  106. IDS_ACCESSDENIED "The Internet Connection Sharing computer is not configured to let network users control or disable the shared Internet connection.\n\nThis setting can be changed in the Advanced Properties of the shared connection on the Internet Connection Sharing computer."
  107. IDS_NOTAVAILABLE "Not Available"
  108. IDS_CLOSE "&Close"
  109. IDS_NEEDNEWERIE "Using Internet Gateway, you can use this computer to control the Internet connection for your network.\n\nTo run Internet Gateway on this computer, first upgrade Internet Explorer to version 5.01 or greater."
  110. IDS_CONNECTIONFAILED "Connection Failed."
  111. END
  112. STRINGTABLE DISCARDABLE
  113. BEGIN
  114. IDS_METRIC_ZERO "%d.%1d bps"
  115. IDS_METRIC_KILO "%d.%1d Kbps"
  116. IDS_METRIC_MEGA "%d.%1d Mbps"
  117. IDS_METRIC_GIGA "%d.%1d Gbps"
  118. IDS_METRIC_TERA "%d.%1d Tbps"
  119. END
  120. 1 TYPELIB "natupnp.tlb"
  121. //////////////////////////////////////////////////////////////////////////////
  122. // start of dup'd stuff (from ...\homenet\config\dll\...)
  123. //////////////////////////////////////////////////////////////////////////////
  124. #include "..\..\config\dll\resourc2.h"
  125. IDR_UPNPNAT REGISTRY "..\\..\\config\\dll\\upnpnat.rgs"
  126. IID_Checked ICON DISCARDABLE "..\\..\\config\\dll\\check.ico"
  127. IID_Unchecked ICON DISCARDABLE "..\\..\\config\\dll\\uncheck.ico"
  128. IID_DisabledUnchecked ICON DISCARDABLE "..\\..\\config\\dll\\disunchk.ico"
  129. IID_DisabledChecked ICON DISCARDABLE "..\\..\\config\\dll\\discheck.ico"
  130. #include "..\..\config\dll\hnetcfg2.rc"
  131. //////////////////////////////////////////////////////////////////////////////
  132. // end of dup'd stuff (from ...\homenet\config\dll\...)
  133. //////////////////////////////////////////////////////////////////////////////