Windows 7 will officially support the customization of backgrounds on the “Login” screen. The find was discovered by Rafael Rivera Jr. over at his blog. Rivera discovered the new feature in the 7057 build of Windows 7 that was released just last week for download on torrent websites.
Seven now supports the background customization without third party software, like Stardock, or hacks.
Rivera explains how to use the background customization:
First, a check is made to determine if the customization functionality is enabled or not. More precisely, a DWORD value named OEMBackground in the HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background key is checked. Its data, of Boolean type, defines whether or not this behavior is turned on, i.e. 1 for enabled, 0 for disabled. This value may not exist by default, depending on your system.
Afterwards, if customization is enabled, the primary monitor’s screen height and width are retrieved via calls to GetSystemMetrics. These values are used in the computation of the screen width (w)/height (h) ratio. For example, my desktop resolution is 1920 x 1200. The ratio, computed by the division of w/h, is 1.6:1.
The result of this computation is looked up in an internal table that drives what image to load on disk. Although I don’t have a large enough monitor to test, it appears resolutions higher than 1920 x 1200 will force the loading and zooming of an image of closest compatibility (i.e. same ratio, smaller image).
As this is an OEM feature images are derived from %windir%\system32\oobe\info\backgrounds. Like the registry value, this folder may not exist by default. The following files (sorted by width-to-height ratio) are supported in this folder:
- backgroundDefault.jpg
- background768 x 1280.jpg
- background900 x 1440.jpg
- background960 x 1280.jpg
- background1024 x 1280.jpg
- background1280 x 1024.jpg
- background1024 x 768.jpg
- background1280 x 960.jpg
- background1600 x 1200.jpg
- background1440 x 900.jpg
- background1920 x 1200.jpg
- background1280 x 768.jpg
- background1360 x 768.jpg
NOTE: Images must be less than 256kb in size.
The backgroundDefault.jpg image is loaded and stretched-to-fit when a resolution/ratio-specific background cannot be found. The other resolution/ratio-specific files are self-explanatory. If the background cannot be loaded (e.g. image physically too large, incorrect ratio, etc.), the default SKU-based image is loaded from imagesres.dll. You’ll see a Windows Server-themed grayish background in there, too, suggesting this functionality is not specific to client SKUs.
No comments:
Post a Comment