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.

195 lines
9.6 KiB

  1. /////////////////////////////////////////////////////////////////////////
  2. //
  3. // Generated from the TEXTINCLUDE 2 resource.
  4. //
  5. #include "windows.h"
  6. #include "commctrl.h"
  7. #include "deskid.h"
  8. #include "desk.h"
  9. /////////////////////////////////////////////////////////////////////////////////////
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // Icon
  13. //
  14. IDS_ICON ICON DISCARDABLE "DESK.ICO"
  15. IDI_DISPLAY ICON PRELOAD DISCARDABLE "desk.ico"
  16. //////////////////////////////////////////////////////////////////////////////
  17. //
  18. // Bitmap
  19. //
  20. IDB_ENERGYSTAR BITMAP DISCARDABLE "ENERGYST.BMP"
  21. //////////////////////////////////////////////////////////////////////////////
  22. //
  23. // Dialog
  24. //
  25. DLG_BACKGROUND DIALOGEX DISCARDABLE 0, 0, 252, 218
  26. STYLE DS_MODALFRAME|(DS_SETFONT|DS_FIXEDSYS) | DS_NOIDLEMSG | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  27. CAPTION "Background"
  28. FONT 8, "MS Shell Dlg"
  29. BEGIN
  30. GROUPBOX "&Pattern",IDC_NO_HELP_1,7,118,115,92
  31. LISTBOX IDC_PATLIST,13,130,103,42,LBS_SORT |
  32. LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  33. PUSHBUTTON "&Edit Pattern...",IDC_EDITPAT,55,175,61,14
  34. GROUPBOX "&Wallpaper",IDC_NO_HELP_2,129,118,115,92
  35. LISTBOX IDC_WALLLIST,135,130,103,42,LBS_SORT |
  36. LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  37. PUSHBUTTON "&Browse...",IDC_BROWSEWALL,177,175,61,14
  38. LTEXT "&Display:",IDC_TXT_DISPLAY,135,196,26,8
  39. RADIOBUTTON "&Tile",IDC_TILE,170,196,27,8,WS_GROUP
  40. RADIOBUTTON "&Center",IDC_CENTER,205,196,34,8
  41. CONTROL "",IDC_BACKPREV,"BackgroundPreview",WS_GROUP,63,4,125,107
  42. END
  43. //////////////////////////////////////////////////////////////////////////////
  44. //
  45. // String Table
  46. //
  47. STRINGTABLE DISCARDABLE
  48. BEGIN
  49. IDS_NAME "Display"
  50. IDS_INFO "Change the appearance of your desktop, such as the background, screen saver, colors, font sizes, and screen resolution."
  51. END
  52. STRINGTABLE DISCARDABLE
  53. BEGIN
  54. IDS_DISPLAY_TITLE "Display"
  55. IDS_DISPLAY_DISABLED "Your system administrator disabled the Display control panel."
  56. END
  57. STRINGTABLE DISCARDABLE
  58. BEGIN
  59. IDS_NONE "(None)"
  60. IDS_UNLISTEDPAT "Unlisted Pattern"
  61. IDS_BITMAPOPENERR "Bitmap Open Error"
  62. IDS_DIB_NOOPEN "Unable to open the file %s." //unused
  63. IDS_BROWSETITLE "Browsing for wallpaper"
  64. IDS_BROWSEFILTER "Bitmaps|*.bmp;*.dib|"
  65. END
  66. STRINGTABLE DISCARDABLE
  67. BEGIN
  68. IDS_DIB_INVALID "The file %s is not a valid bitmap file." //unused
  69. IDS_BADWALLPAPER "Windows cannot display the wallpaper you selected. Choose different wallpaper."
  70. END
  71. STRINGTABLE DISCARDABLE
  72. BEGIN
  73. IDS_TAB_THEMES, "Themes"
  74. IDS_TAB_DESKTOP, "Desktop"
  75. IDS_TAB_SCREENSAVER, "Screen Saver"
  76. IDS_TAB_APPEARANCE, "Appearance"
  77. IDS_TAB_SETTINGS, "Settings "
  78. END
  79. // setupact.log messages
  80. STRINGTABLE DISCARDABLE
  81. BEGIN
  82. IDS_SETUPLOG_MSG_000, "desk.cpl: "
  83. IDS_SETUPLOG_MSG_004, "Setting DeviceDesc to %s"
  84. IDS_SETUPLOG_MSG_006, "Setting MFG to %s"
  85. IDS_SETUPLOG_MSG_008, "Disabling the following service: %s"
  86. IDS_SETUPLOG_MSG_009, "Removing a devnode without a service"
  87. IDS_SETUPLOG_MSG_010, "Removing the following devnode: %s"
  88. IDS_SETUPLOG_MSG_011, "Could not remove the devnode itself, %d"
  89. IDS_SETUPLOG_MSG_012, "Could not remove the devnode itself (2), %d"
  90. IDS_SETUPLOG_MSG_013, "Disabled %d legacy devices in %d tries"
  91. IDS_SETUPLOG_MSG_014, "No drivers list, allow upgrade"
  92. IDS_SETUPLOG_MSG_015, "No drivers list, fail upgrade"
  93. IDS_SETUPLOG_MSG_016, "Using DriverList %s"
  94. IDS_SETUPLOG_MSG_017, "No DriversList entries, allow upgrade"
  95. IDS_SETUPLOG_MSG_018, "No DriversList entries, fail upgrade"
  96. IDS_SETUPLOG_MSG_019, "Could not open any devices of the display class, allow upgrade"
  97. IDS_SETUPLOG_MSG_020, "Could not open any devices of the display class, fail upgrade"
  98. IDS_SETUPLOG_MSG_021, "Found %d legacy devices"
  99. IDS_SETUPLOG_MSG_022, "Made a match, fail upgrade"
  100. IDS_SETUPLOG_MSG_023, "Made a match, allow upgrade"
  101. IDS_SETUPLOG_MSG_024, "No match found in DriversList %s, allow upgrade"
  102. IDS_SETUPLOG_MSG_025, "No match found in DriversList %s, fail upgrade"
  103. IDS_SETUPLOG_MSG_031, "CheckDatabase called on marked devnode, succeeding"
  104. IDS_SETUPLOG_MSG_032, "Could not find any hardware or compatible IDs for video device"
  105. IDS_SETUPLOG_MSG_033, "Could not open upgrade database"
  106. IDS_SETUPLOG_MSG_034, "No entries in %s"
  107. IDS_SETUPLOG_MSG_035, "Found a match of %s in the upgrade database"
  108. IDS_SETUPLOG_MSG_039, "Allowing install of video device"
  109. IDS_SETUPLOG_MSG_040, "Not allowing install of video device"
  110. IDS_SETUPLOG_MSG_041, "%s is not an NT compatible inf file"
  111. IDS_SETUPLOG_MSG_046, "Database did not allow upgrade"
  112. IDS_SETUPLOG_MSG_047, "SetupDiEnumDriverInfo (compat) didn't find any devices"
  113. IDS_SETUPLOG_MSG_048, "Devnode does not exist yet"
  114. IDS_SETUPLOG_MSG_057, "Returning 0x%08lx for function 0x%x"
  115. IDS_SETUPLOG_MSG_060, "Could not read XResolution value"
  116. IDS_SETUPLOG_MSG_062, "Could not read YResolution value (%s)"
  117. IDS_SETUPLOG_MSG_064, "Could not read VRefresh value (%s)"
  118. IDS_SETUPLOG_MSG_065, "Display unattended value named %s is unsupported"
  119. IDS_SETUPLOG_MSG_067, "Using an XResolution of %d and a YResolution of %d because either one or both were either missing or 0"
  120. IDS_SETUPLOG_MSG_068, "Using a VRefresh of %d because VRefresh was 0 or missing in the unattended file"
  121. IDS_SETUPLOG_MSG_069, "Using a BitsPerPel of %d because BitsPerPel was 0 or missing in the unattended file"
  122. IDS_SETUPLOG_MSG_075, "Could not open settings reg key"
  123. IDS_SETUPLOG_MSG_076, "Did not allow upgrade of video driver, not performing reg upgrade"
  124. IDS_SETUPLOG_MSG_096, "Could not read BitsPerPel value (%s)"
  125. IDS_SETUPLOG_MSG_097, "Could not remove all applet extensions"
  126. IDS_SETUPLOG_MSG_098, "Applet extension removed: %s"
  127. IDS_SETUPLOG_MSG_099, "Devnode is marked to be deleted. Do not allow install."
  128. IDS_SETUPLOG_MSG_100, "OcManager: wrong version."
  129. IDS_SETUPLOG_MSG_101, "OcManager: could not get the list of video devices."
  130. IDS_SETUPLOG_MSG_102, "OcManager: could not delete VideoUpgradeDisplaySettings key."
  131. IDS_SETUPLOG_MSG_103, "OcManager: could not create the device interface."
  132. IDS_SETUPLOG_MSG_104, "OcManager: could not create the device interface registry key."
  133. IDS_SETUPLOG_MSG_105, "OcManager: could not create the device interface registry subkey: %d"
  134. IDS_SETUPLOG_MSG_106, "OcManager: unattended BitsPerPel: %d"
  135. IDS_SETUPLOG_MSG_107, "OcManager: unattended XResolution: %d"
  136. IDS_SETUPLOG_MSG_108, "OcManager: unattended YResolution: %d"
  137. IDS_SETUPLOG_MSG_109, "OcManager: unattended VRefresh: %d"
  138. IDS_SETUPLOG_MSG_110, "OcManager: Could not get the count of physical devices"
  139. IDS_SETUPLOG_MSG_111, "OcManager: Could not open the physical device key"
  140. IDS_SETUPLOG_MSG_112, "OcManager: Could not get the count of logical devices"
  141. IDS_SETUPLOG_MSG_113, "OcManager: Could not find the device with the same bus location"
  142. IDS_SETUPLOG_MSG_114, "OcManager: Legacy migration could not be completed as there are at least 2 video devices in the system."
  143. IDS_SETUPLOG_MSG_115, "OcManager: Legacy migration could not be completed as no video device could be enumerated."
  144. IDS_SETUPLOG_MSG_116, "OcManager: Could not open the logical device key"
  145. IDS_SETUPLOG_MSG_117, "OcManager: AttachedToDesktop: %d"
  146. IDS_SETUPLOG_MSG_118, "OcManager: RelativeX: %d"
  147. IDS_SETUPLOG_MSG_119, "OcManager: RelativeY: %d"
  148. IDS_SETUPLOG_MSG_120, "OcManager: BitsPerPel: %d"
  149. IDS_SETUPLOG_MSG_121, "OcManager: XResolution: %d"
  150. IDS_SETUPLOG_MSG_122, "OcManager: YResolution: %d"
  151. IDS_SETUPLOG_MSG_123, "OcManager: VRefresh: %d"
  152. IDS_SETUPLOG_MSG_124, "OcManager: Flags: %d"
  153. IDS_SETUPLOG_MSG_125, "Returning 0x%08lx for function 0x%x and device %s"
  154. IDS_SETUPLOG_MSG_126 "%s failed with error 0x%08lx."
  155. IDS_SETUPLOG_MSG_127 "%s failed."
  156. IDS_SETUPLOG_MSG_128 "Could not create the video device registry key because %s failed."
  157. IDS_SETUPLOG_MSG_129, "OcManager: Use the preferred mode instead of the unattended settings."
  158. IDS_SETUPLOG_MSG_130, "OcManager: Use the preferred mode instead of the old settings."
  159. END
  160. //
  161. // HACK to work around versionning issues with IE files.
  162. //
  163. #undef NASHVILLE
  164. #include <ntverp.h>
  165. #define VER_FILETYPE VFT_DLL
  166. #define VER_FILESUBTYPE VFT_UNKNOWN
  167. #define VER_FILEDESCRIPTION_STR "Desktop Control Panel"
  168. #define VER_INTERNALNAME_STR "DESK"
  169. #define VER_ORIGINALFILENAME_STR "DESK.CPL"
  170. #include <common.ver>