Files

14 KiB
Raw Permalink Blame History

Windows XP SP3 (Luna Blue) Visual & Binary Analysis

Extracted from /home/carsten/Downloads/en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso into /home/carsten/.local/src/xp-iso-extracted/.

1. Extracted Binaries & Assets

Binaries (/home/carsten/.local/src/xp-iso-extracted/bin/)

All .??_ files from I386/ were expanded with cabextract (and ASMS/6000/MSFT/WINDOWS/COMMON/CONTROLS/COMCTL32.DLL was copied as comctl32_v6.dll). SP3.CAB contained no newer overrides for these files (the ISO is slipstreamed SP3).

  • luna.msstyles (4.0 MB) — extracted from I386/LUNA.MS_ (luna.mst)
  • explorer.exe (1010 KB)
  • comctl32.dll (603 KB, v5.82) & comctl32_v6.dll (900 KB, v6.0 from I386/ASMS/)
  • shell32.dll (8.1 MB)
  • stobject.dll (119 KB)
  • batmeter.dll (29 KB)
  • netshell.dll (1.7 MB)
  • user32.dll (565 KB)
  • msgina.dll (974 KB)
  • logonui.exe (503 KB)
  • uxtheme.dll (214 KB)

Extracted Resources (/home/carsten/.local/src/xp-iso-extracted/res/)

  • Luna theme (res/luna/):
    • res/luna/ini/ — UTF-8 .ini files decoded from UTF-16LE TEXTFILE resources (NORMALBLUE_INI.ini, NORMALHOMESTEAD_INI.ini, NORMALMETALLIC_INI.ini, LARGEFONTS*_INI.ini, EXTRALARGE*_INI.ini, THEMES_INI.ini, plus _FILERESNAMES_1.txt, _COLORNAMES_1.txt, _SIZENAMES_1.txt).
    • res/luna/bitmaps/raw/ — 558 raw PNGs extracted from RT_BITMAP.
    • res/luna/bitmaps/alpha/ — 558 PNGs with #FF00FF magenta transparency key converted to real alpha.
  • Module icons & bitmaps (res/<module>/):
    • explorer: 18 .ico, 113 icon .png, 32 bitmap .png, dialogs.txt
    • msgina: 7 .ico, 30 icon .png, 31 bitmap .png, dialogs.txt
    • logonui: 22 bitmap .png, uifile/1000.xml
    • stobject: 31 .ico, 50 icon .png
    • batmeter: 2 bitmap .png
    • netshell: 157 .ico, 390 icon .png, 6 bitmap .png
    • user32: 6 .ico, 51 icon .png, 7 bitmap .png
    • comctl32_v6: 4 .ico, 28 icon .png, 10 bitmap .png
    • shell32: 238 .ico, 1484 icon .png, 46 bitmap .png

2. Taskbar & Start Button (Waybar Target)

Metrics from NORMALBLUE_INI.ini & explorer.exe

  • Taskbar Height: 30px total at 96 DPI (bitmap BLUE_TASKBARBACKGROUND_BMP.png is 50x28 with SizingMargins = 0, 0, 15, 11; BLUE_TASKBARSIZINGBARBOTTOM_BMP.png is 15x4).
  • Taskbar Background ([TaskBar.BackgroundBottom]):
    • Asset: res/luna/bitmaps/raw/BLUE_TASKBARBACKGROUND_BMP.png (50x28, SizingType = Tile, SizingMargins = 0, 0, 15, 11)
    • FillColorHint: rgb(36, 94, 220) (#245edc)
    • Exact vertical pixel stops (x=10):
      • y=0: #3168d5 (top edge)
      • y=1: #3888e9
      • y=2: #4993e6 (top highlight)
      • y=7: #2257d5
      • y=14: #235cdb
      • y=21: #2662df
      • y=26: #1e50c4
      • y=27: #1941a5 (bottom edge)
  • Start Button ([Start::Button]):
    • Asset: res/luna/bitmaps/alpha/BLUE_STARTBUTTON_BMP.png (99x99, ImageCount = 3 vertical states: Normal y=0..32, Hot y=33..65, Pressed y=66..98, 33px each)
    • SizingMargins = 6, 52, 13, 14 (left, right, top, bottom)
    • ContentMargins = 10, 24, 2, 4
    • Font: Franklin Gothic Medium, 14, italic (bold/italic in practice), TextColor = rgb(255, 255, 255)
    • TextShadowOffset = 2, 2, TextShadowColor = rgb(69, 76, 16) (#454c10), TextShadowType = continuous
    • FillColorHint: rgb(74, 153, 73) (#4a9949)
    • Normal state vertical stops (x=50): y=0 #367e37, y=1 #5fa15f, y=2 #8cc08e, y=24 #47b847
  • Task Buttons ([TaskBand::Toolbar.Button]) & explorer.exe Disassembly:
    • Asset: res/luna/bitmaps/alpha/BLUE_TASKBANDBUTTON_BMP.png (26x168, ImageCount = 6 vertical states of 28px each: Normal, Hot, Pressed, Checked, CheckedHot, Disabled)
    • SizingMargins = 17, 5, 15, 8, ContentMargins = 0, 4, 4, 4
    • Font: Tahoma, 8, TextColor = rgb(255, 255, 255)
    • FillColorHint: rgb(54, 127, 239) (#367fef)
    • Flash button ([TaskBand.FlashButton]): res/luna/bitmaps/alpha/BLUE_TASKBANDFLASHBUTTON_BMP.png (26x28), AccentColorHint = rgb(255, 192, 91) (#ffc05b)
    • explorer.exe TB_SETBUTTONWIDTH (0x43b) disassembly (0x1004a29–0x1004a7a, 0x101a0b5–0x101a0c5):
      • Max task button width: GetSystemMetrics(0x39) (SM_CXMINIMIZED) = 160px (0x10460c4).
      • Min task button width: (SM_CXSMICON + 2 * SM_CXEDGE) * 1.8 + padding = (16 + 4) * 1.8 = 36px + toolbar padding (fmull constant 1.8 at 0x1004c88).
  • System Tray ([TrayNotifyHoriz::TrayNotify.Background] & [TrayNotify::Clock]):
    • Asset: res/luna/bitmaps/alpha/BLUE_TASKBARTRAY_BMP.png (110x28, SizingMargins = 34, 10, 12, 12, ContentMargins = 19, 7, 0, 0)
    • FillColorHint: rgb(13, 141, 234) (#0d8dea)
    • Exact vertical stops (x=60): y=0 #095bc9, y=1 #16adf0, y=2 #19b9f3, y=7 #1290e9, y=14 #0d8dea, y=21 #0d9df1, y=26 #157fdb, y=27 #095bc9
    • Tray chevron ([TrayNotifyHoriz::Button]): res/luna/bitmaps/alpha/BLUE_TRAYCHEVRONHORIZONTAL_BMP.png (19x60, 3 states of 19x20)
    • Clock ([TrayNotify::Clock]): Font = Tahoma, 8, TextColor = rgb(255, 255, 255)
    • Gripper ([TaskBar::Rebar.Gripper]): res/luna/bitmaps/alpha/BLUE_TASKBARGRIPPER_BMP.png (6x16)

3. Start Menu (Rofi / Custom Start Menu Target)

From NORMALBLUE_INI.ini [StartPanel.*]:

  • Overall Panel ([StartPanel]): DefaultPaneSize = 0, 0, 380, 440 (380x440px)
  • User Header ([StartPanel.UserPane]):
    • DefaultPaneSize = 0, 0, 380, 64 (380x64px)
    • Asset: res/luna/bitmaps/alpha/BLUE_STARTUSERPANEL_BMP.png (120x63, SizingMargins = 59, 60, 62, 0)
    • Font = Franklin Gothic Medium, 14, TextColor = rgb(255, 255, 255)
    • TextShadowOffset = 2, 2, TextShadowColor = rgb(9, 66, 139) (#09428b), TextShadowType = continuous
    • Vertical stops (x=60): y=0 #225cc5, y=1 #67a2e7, y=2 #75abe8, y=15 #0e60cb, y=31 #1b6dd4, y=47 #2f7fe2, y=61 #4690ea, y=62 #4792ec
  • User Avatar Frame ([StartPanel.UserPicture]):
    • Asset: res/luna/bitmaps/alpha/BLUE_USERTILEBACKGROUND_BMP.png (55x55, SizingMargins = 6, 10, 6, 10, ContentMargins = 8, 6, 8, 6)
  • Left Column ([StartPanel.ProgList]):
    • DefaultPaneSize = 0, 0, 190, 306 (190x306px), ContentMargins = 6, 4, 9, 5
    • TextColor = rgb(55, 55, 56) (#373738), HotTracking = rgb(48, 112, 208) (#3070d0), CaptionText = rgb(128, 128, 128) (#808080)
    • Asset: res/luna/bitmaps/raw/BLUE_STARTPANELMFUBACKGROUND_BMP.png (156x4, SizingMargins = 2, 153, 3, 0)
    • Separator: res/luna/bitmaps/raw/BLUE_STARTPROGRAMSSEPARATOR_BMP.png (172x2)
  • All Programs Row ([StartPanel.MorePrograms]):
    • DefaultPaneSize = 0, 0, 190, 30 (190x30px), ContentMargins = 8, 8, 0, 6
    • Font = Tahoma, 8, Bold, TextColor = rgb(55, 55, 56), HotTracking = rgb(48, 112, 208)
    • Arrow: res/luna/bitmaps/alpha/BLUE_STARTPANELMOREPROGARROW_BMP.png (16x24) & BLUE_STARTPANELMOREPROGARROWHOT_BMP.png (16x24)
  • Right Column ([StartPanel.PlacesList]):
    • DefaultPaneSize = 0, 0, 190, 336 (190x336px), ContentMargins = 4, 6, 9, 5
    • TextColor = rgb(10, 36, 106) (#0a246a), HotTracking = rgb(80, 150, 248) (#5096f8), FillColorHint = rgb(211, 229, 250) (#d3e5fa)
    • Asset: res/luna/bitmaps/raw/BLUE_STARTPANELPLACESBACKGROUND_BMP.png (180x6, SizingMargins = 172, 7, 3, 1)
    • Separator: res/luna/bitmaps/raw/BLUE_STARTPLACESSEPARATOR_BMP.png (134x2)
  • Bottom Logoff / Turn Off Footer ([StartPanel.Logoff]):
    • DefaultPaneSize = 0, 0, 380, 40 (380x40px), ContentMargins = 0, 0, 4, 2
    • Asset: res/luna/bitmaps/raw/BLUE_STARTPANELLOGOFFBACKGROUND_BMP.png (97x39, SizingMargins = 49, 47, 0, 38)
    • Vertical stops (x=50): y=0 #438be3, y=9 #3885e4, y=19 #2577df, y=29 #166ad7, y=38 #0c56c0
    • Buttons: res/luna/bitmaps/alpha/BLUE_STARTPANELLOGOFFBUTTONS_BMP.png (72x24) & BLUE_STARTPANELLOGOFFBUTTONSHOT_BMP.png (72x24)

4. Tray Balloon Notifications (SwayNC Target)

Geometry from comctl32_v6.dll (CToolTipsMgr, TTS_BALLOON)

Disassembled at 0x719ca150–0x719ca1d6 and 0x719cabd1–0x719cad32:

  • Corner Radius: CreateRoundRectRgn(0, top, width, bottom, 13, 13) (0x719cabed) — 13x13 ellipse (~6–7px CSS border-radius).
  • Tail / Stem:
    • Only drawn if width >= 30px (0x1e, 0x719cac07).
    • Stem Height: min(20, height / 3) (0x719ca1c1–0x719ca1d0).
    • Stem Base Width: stemHeight (isosceles/right triangle CreatePolygonRgn with 3 points at 0x719cad09), clamped at least 16px (0x10) from the horizontal edges.
  • Balloon Padding: Adds +20px (0x14) width and +16px (0x10) height (0x719ca19e–0x719ca1a3) over standard tooltips to accommodate the close button and internal margins.
  • Close Button ([Tooltip.Close]):
    • Asset: res/luna/bitmaps/alpha/BLUE_BALLOONCLOSE_BMP.png (18x54, ImageCount = 3 vertical states: 18x18px each for Normal, Hot, Pressed).
  • Colors & Fonts:
    • Standard XP COLOR_INFOBK = #ffffe1 (rgb(255, 255, 225)), COLOR_INFOTEXT = #000000, border = #000000 (1px).
    • Font: Tahoma, 8 ([SysMetrics] StatusFont = Tahoma, 8).
  • 16x16 Notification Icons (res/user32/icons/png/):
    • Application: user32.dll_14_100_8_16x16x32.png
    • Warning (IDI_EXCLAMATION): user32.dll_14_101_9_16x16x32.png
    • Question (IDI_QUESTION): user32.dll_14_102_8_16x16x32.png
    • Error (IDI_HAND): user32.dll_14_103_9_16x16x32.png
    • Info (IDI_ASTERISK): user32.dll_14_104_9_16x16x32.png
    • WinLogo (IDI_WINLOGO): user32.dll_14_105_8_16x16x32.png

5. Window Chrome & Borders (hyprbars-xp / Hyprland Target)

From NORMALBLUE_INI.ini [SysMetrics] and [Window.*]:

  • Titlebar Height: CaptionBarHeight = 25 (25px client metric; frame caption bitmap BLUE_FRAMECAPTION_BMP.png is 66x58 for 2 vertical states = 29px per state including top border; SMCaptionBarHeight = 17 for tool windows).
  • Titlebar Font & Shadow:
    • CaptionFont = Trebuchet MS, 10, bold
    • CaptionText = rgb(255, 255, 255) (active), InactiveCaptionText = rgb(216, 228, 248) (#d8e4f8)
    • TextShadowOffset = 1, 1, TextShadowColor = rgb(10, 24, 131) (#0a1883), TextShadowType = Single (active)
  • Active/Inactive Caption Colors & Gradients:
    • Active BLUE_FRAMECAPTION_BMP.png (y=0..28, x=33): y=0 #0058eb, y=1 #3f97ff, y=2 #278dff, y=14 #0051e5, FillColorHint = rgb(0, 84, 229) (#0054e5).
    • Inactive BLUE_FRAMECAPTION_BMP.png (y=29..57, x=33): y=29 #688de0, y=43 #7a96e0, y=56 #7a93df.
    • [SysMetrics]: ActiveCaption = rgb(0, 84, 227) (#0054e3) -> GradientActiveCaption = rgb(61, 149, 255) (#3d95ff); InactiveCaption = rgb(122, 150, 223) (#7a96df) -> GradientInactiveCaption = rgb(157, 185, 235) (#9db9eb).
    • SizingMargins = 28, 35, 9, 17, CaptionMargins = 4, 3, 0, 0.
  • Window Borders:
    • Window.FrameLeft: res/luna/bitmaps/raw/BLUE_FRAMELEFT_BMP.png (5x62, 2 states of 5x31, SizingMargins = 2, 2, 0, 0) -> 4–5px border width.
    • Window.FrameRight: res/luna/bitmaps/raw/BLUE_FRAMERIGHT_BMP.png (5x62, 2 states of 5x31)
    • Window.FrameBottom: res/luna/bitmaps/raw/BLUE_FRAMEBOTTOM_BMP.png (49x10, 2 states of 49x5, SizingMargins = 5, 5, 2, 2) -> 5px bottom border.
    • Dialog background ([Window.dialog]): rgb(236, 233, 216) (#ece9d8).
  • Titlebar Buttons (21x21px each, ImageCount = 8 vertical states in 21x168 strips):
    • Window.CloseButton: res/luna/bitmaps/alpha/BLUE_CLOSEBUTTON_BMP.png (21x168), OffsetType = TopRight, Offset = -25, 5, FillColorHint = rgb(228, 93, 61) (#e45d3d), BorderColorHint = rgb(255, 255, 255)
    • Window.MaxButton / RestoreButton: res/luna/bitmaps/alpha/BLUE_CAPTIONBUTTON_BMP.png (21x168), Offset = -49, 5, FillColorHint = rgb(74, 121, 246) (#4a79f6)
    • Window.MinButton / HelpButton: res/luna/bitmaps/alpha/BLUE_CAPTIONBUTTON_BMP.png (21x168), Offset = -73, 5
    • Window.SysButton (app icon): OffsetType = TopLeft, Offset = 10, 3

6. Turn Off Computer & Logon Screen (Hyprlock / Power Menu Target)

msgina.dll Turn Off Computer (DIALOG 20100)

  • Dialog Size: 208x122 DLU -> 313x198px (matches res/msgina/bitmaps/20140.png & 20142.png, 313x198).
  • Button Sprites: res/msgina/bitmaps/20150.png (32x320, 10 vertical 32x32 icons for Stand By / Turn Off / Restart / Hibernate states) and 20141.png / 20143.png (48x40 Windows flag header).
  • Button Layout (DIALOG 20100):
    • Header Flag (20101): (176, 0, 32x26) DLU
    • Title (20102): (7, 0, 162x26) DLU "Turn off computer"
    • Stand By (20104): (36, 49, 22x20) DLU; Turn Off (20103): (93, 49, 22x20) DLU; Restart (20105): (150, 49, 22x20) DLU
    • Cancel (2): (161, 103, 40x12) DLU

logonui.exe Welcome Screen (res/logonui/uifile/1000.xml)

  • Colors:
    • Main background: rgb(90, 126, 220) (#5a7edc)
    • Top/bottom bars: rgb(0, 48, 156) (#00309c)
    • Selected user / highlight gradient: gradient(argb(0, 57, 52, 173), argb(0, 0, 48, 156), 0) (#3934ad -> #00309c)
    • Secondary panel/accent: rgb(115, 146, 231) (#7392e7), text rgb(239, 247, 255) (#eff7ff), rgb(49, 81, 181) (#3151b5), white
  • Fonts (RT_STRING):
    • rcstr(1) / rcstr(48): arial (Welcome title: 36pt rcstr(44), user name: 14pt rcstr(42)/rcstr(45))
    • rcstr(2) / rcstr(3): tahoma (8pt–9pt rcstr(43), rcstr(46), rcstr(47))
  • Key Bitmaps (res/logonui/bitmaps/):
    • 100.png (219x207) — Windows XP Welcome radial glow/logo
    • 112.png (308x72) — XP Logo banner
    • 124.png (1x340) — vertical center divider line
    • 125.png (800x2), 126.png (800x3) — horizontal header/footer accent lines
    • 113.png (58x58), 119.png (58x58), 114.png (48x48) — user tile frames
    • 103.png–108.png (26x26 / 28x28) — power/go/help buttons