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.

181 lines
6.7 KiB

  1. // Include our VERSIONINFO structure.
  2. //
  3. #include "version.h"
  4. #include <shlobj.h>
  5. #include <shlobjp.h>
  6. #include "upsres.h"
  7. //+---------------------------------------------------------------------------
  8. // Icon resources
  9. //
  10. //+---------------------------------------------------------------------------
  11. // Registry resources
  12. //
  13. IDR_UPNPFOLD REGISTRY "upnpfold.rgs"
  14. IDR_UPNPTRAY REGISTRY "upnptray.rgs"
  15. //---[ Tray ]-----------------------------------------------------------------
  16. /////////////////////////////////////////////////////////////////////////////
  17. //
  18. // Icon
  19. //
  20. // Icon with lowest ID value placed first to ensure application icon
  21. // remains consistent on all systems.
  22. // when complete list of default icons made available, rearrage the resource ids
  23. // in respective group of applicances
  24. IDI_TRAYICON ICON "..\\res\\upnp_16x16.ico"
  25. IDI_UPNPDEVICE ICON "..\\res\\upnpdevice.ico"
  26. IDI_UPNP_CAMCORDER ICON "..\\res\\Camcorder.ico"
  27. IDI_UPNP_DIGITAL_SECURITY_CAMERA ICON "..\\res\\DigitalSecurityCamera.ico"
  28. IDI_UPNP_DISPLAY_DEVICE ICON "..\\res\\DisplayDevice.ico"
  29. IDI_UPNP_INTERNET_GATEWAY ICON "..\\res\\InternetGateway.ico"
  30. IDI_UPNP_PRINTER_DEVICE ICON "..\\res\\PrinterDevice.ico"
  31. IDI_UPNP_SCANNER_DEVICE ICON "..\\res\\ScannerDevice.ico"
  32. IDI_UPNP_AUDIO_PLAYER ICON "..\\res\\AudioPlayer.ico"
  33. /////////////////////////////////////////////////////////////////////////////
  34. //
  35. // Menu
  36. //
  37. POPUP_TRAY MENUEX DISCARDABLE
  38. BEGIN
  39. POPUP "", 0,MFT_STRING,MFS_ENABLED
  40. BEGIN
  41. MENUITEM "&View Discovered Devices", CMIDM_TRAY_VIEW_DEVICES,MFT_STRING,MFS_ENABLED
  42. END
  43. END
  44. /////////////////////////////////////////////////////////////////////////////
  45. //
  46. // Dialog
  47. //
  48. IDD_DEVICE_PROPERTIES_GEN DIALOG DISCARDABLE 0, 0, 237, 215
  49. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  50. FONT 8, "MS Shell Dlg"
  51. BEGIN
  52. ICON IDI_UPNPDEVICE,IDC_STATIC,14,14,21,20
  53. EDITTEXT IDC_TXT_DEVICE_CAPTION,66,26,160,8, ES_AUTOHSCROLL | ES_READONLY |
  54. NOT WS_BORDER
  55. LTEXT "Manufacturer:",IDC_STATIC,7,50,59,8
  56. LTEXT "Model Name:",IDC_STATIC,7,64,59,8
  57. LTEXT "Model Number:",IDC_STATIC,7,78,59,8
  58. LTEXT "Description:",IDC_STATIC,7,92,59,8
  59. LTEXT "Device Address:",IDC_STATIC,7,106,59,8
  60. EDITTEXT IDC_TXT_MODEL_MANUFACTURER,66,50,164,8, ES_AUTOHSCROLL | ES_READONLY |
  61. NOT WS_BORDER
  62. EDITTEXT IDC_TXT_MODEL_NAME,66,64,164,8, ES_AUTOHSCROLL | ES_READONLY |
  63. NOT WS_BORDER
  64. EDITTEXT IDC_TXT_MODEL_NUMBER,66,78,164,8, ES_AUTOHSCROLL | ES_READONLY |
  65. NOT WS_BORDER
  66. EDITTEXT IDC_TXT_MODEL_DESCRIPTION,66,92,164,8, ES_AUTOHSCROLL | ES_READONLY |
  67. NOT WS_BORDER
  68. EDITTEXT IDC_TXT_LOCATION,66,106,164,8, ES_AUTOHSCROLL | ES_READONLY |
  69. NOT WS_BORDER
  70. END
  71. //---[ Folder ]---------------------------------------------------------------
  72. //+---------------------------------------------------------------------------
  73. // Strings resources
  74. //
  75. STRINGTABLE DISCARDABLE
  76. BEGIN
  77. IDS_UPNPFOLD_NAME "Universal Plug and Play Devices"
  78. IDS_UPNPFOLD_INFOTIP "Universal Plug and Play Device folder"
  79. IDS_UPNPDEV_INFOTIP "Device that is available on your network."
  80. IDS_LOCAL_NETWORK "Local Network"
  81. END
  82. STRINGTABLE DISCARDABLE
  83. BEGIN
  84. IDS_CMIDM_INVOKE "Invokes the URL of the selected device."
  85. IDS_CMIDM_CREATE_SHORTCUT "Creates a shortcut to the selected device."
  86. IDS_CMIDM_DELETE "Deletes the selected device(s)."
  87. IDS_CMIDM_RENAME "Renames the selected device."
  88. IDS_CMIDM_PROPERTIES "Displays the properties of the selected device."
  89. IDS_CMIDM_ARRANGE "Contains commands for arranging items in the window."
  90. IDS_CMIDM_ARRANGE_BY_NAME "Sorts devices alphabetically by name."
  91. IDS_CMIDM_ARRANGE_BY_URL "Sorts devices by URL."
  92. // Debug only commands
  93. //
  94. #if DBG
  95. IDS_CMIDM_DEBUG "Debugging CmdID: IDS_CMIDM_DEBUG "
  96. IDS_CMIDM_DEBUG_TRACING "Debugging CmdID: IDS_CMIDM_DEBUG_TRACING "
  97. IDS_CMIDM_DEBUG_REFRESH "Debugging CmdID: IDS_CMIDM_DEBUG_REFRESH "
  98. #endif
  99. END
  100. STRINGTABLE DISCARDABLE
  101. BEGIN
  102. IDS_UPNPTRAYUI_MANUFACTURER "Manufacturer"
  103. IDS_UPNPTRAYUI_GENERAL "General"
  104. // This MUST be less than 64 bytes
  105. IDS_UPNPTRAYUI_DEVICES_DISCOVERED "New devices are now available on your network."
  106. // This MUST be less than 256 bytes
  107. IDS_UPNPTRAYUI_VIEWINFO_1 "A new device is now available on your network. For more information, click here."
  108. // This MUST be less than 256 bytes
  109. IDS_UPNPTRAYUI_VIEWINFO_N "For more information, click here."
  110. // This MUST be less than 64 bytes
  111. IDS_UPNPTRAYUI_INSTRUCTIONS "View newly discovered UPnP devices"
  112. IDS_UPNPTRAYUI_SHORTCUT "The device %s is now available on your network, and can be found in the My Network Places folder on your desktop. Would you like to create a shortcut to this device on your desktop?"
  113. IDS_UPNPTRAYUI_DEVICE_REMOVED "The device %s is no longer available on your network."
  114. IDS_UPNPTRAYUI_DEVICE_OFFLINE_MSG "The device you are trying to use is not currently available on your network. Check to see if the device is on the network and try again."
  115. IDS_UPNPTRAYUI_DEVICE_OFFLINE_TITLE "Device Offline"
  116. END
  117. MENU_STANDARD MENUEX DISCARDABLE
  118. BEGIN
  119. POPUP ""
  120. BEGIN
  121. MENUITEM "&Invoke", CMIDM_INVOKE
  122. MENUITEM "", -1, MFT_SEPARATOR
  123. MENUITEM "Create &Shortcut", CMIDM_CREATE_SHORTCUT
  124. MENUITEM "&Delete", CMIDM_DELETE
  125. MENUITEM "Rena&me", CMIDM_RENAME
  126. MENUITEM "", -1, MFT_SEPARATOR
  127. MENUITEM "P&roperties", CMIDM_PROPERTIES
  128. END
  129. END
  130. MENU_STANDARD_V MENUEX DISCARDABLE
  131. BEGIN
  132. POPUP ""
  133. BEGIN
  134. MENUITEM "&Invoke", CMIDM_INVOKE
  135. END
  136. END
  137. POPUP_MERGE_FOLDER_BACKGROUND MENUEX DISCARDABLE
  138. BEGIN
  139. POPUP "", SFVIDM_MENU_ARRANGE
  140. BEGIN
  141. MENUITEM "By &Name", CMIDM_ARRANGE_BY_NAME,MFT_STRING,MFS_ENABLED
  142. MENUITEM "By &URL", CMIDM_ARRANGE_BY_URL,MFT_STRING,MFS_ENABLED
  143. END
  144. END