Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 2003 移植 Windows XP「我的圖片螢幕保護程式」

編輯:Windows Server 教學

Windows XP/Me 內建的「我的圖片螢幕保護程式」可自動播放「我的文件」資料夾中的圖片幻燈片,Windows Server 2003 預設不包含此功能。本文提供從 XP 系統提取檔案並透過註冊表註冊的完整移植步驟。

所需檔案來源 (Windows XP/Me 系統)

  • %SystemRoot%\System32\imaging.dll
  • %SystemRoot%\System32\ssmypics.scr (檔案名稱為「我的圖片螢幕保護程式.scr」)

移植步驟

  1. 將上述兩個檔案複製至隨身碟。
  2. 在 Windows Server 2003 上,貼上至 %SystemRoot%\System32 目錄 (即 C:\Windows\System32)。
  3. 開啟記事本,輸入以下註冊表內容:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{327abdab-2E5F-11d0-8B85-00AA0044F941}\InProcServer32]
@="C:\\Windows\\System32\\imaging.dll"
"ThreadingModel"="both"
  1. 檔案結尾留一空行,另存為 AddScreenSavers.reg (編碼 ANSI/UTF-8 均可)。
  2. 雙擊 AddScreenSavers.reg → 是 → 確定,匯入登錄表。
  3. 返回桌面右鍵→「內容」→「螢幕保護程式」分頁,下拉清單即出現「我的圖片螢幕保護程式」。選擇後可點「設定」指定圖片資料夾、切換間隔、轉場效果等。

原理說明

  • ssmypics.scr 為螢幕保護程式主程式,呼叫 imaging.dll 中的 COM 物件 (CLSID: {327abdab-2E5F-11d0-8B85-00AA0044F941}) 實現圖片解碼、縮放、轉場。
  • 註冊表匯入步驟將該 CLSID 的 InProcServer32 指向複製過去的 imaging.dll,並設定雙執行緒模型,使系統能正確載入該元件。

注意事項

  • 來源檔案版本需與目標系統位元數相符 (32 位元 XP 檔案移植至 32 位元 2003;若為 x64 版 2003 需 x64 版 XP 檔案)。
  • 若「我的文件」資料夾路徑非標準位置,請在螢幕保護程式設定中手動指定圖片來源資料夾。
  • 此移植方式同樣適用於 Windows 2000 (需同樣複製兩檔並匯入註冊表)。

幾分鐘即可讓 Windows Server 2003 擁有 XP 級的相片幻燈片螢幕保護程式,為伺服器機房增添一抹個人化色彩。

Copyright © Windows教程網 All Rights Reserved