共用方式為


MTP 安裝資訊 (WpdMtp.inf) 檔案

Microsoft提供一組類別驅動程式來支援媒體傳輸通訊協定 (MTP)。 如果您的裝置支援 MTP,您可以使用下列其中一個驅動程式。 除了類別驅動程式之外,Microsoft提供安裝資訊 (.inf) 檔案來安裝類別驅動程式。 此檔案名為 WpdMtp.inf

如果您的 MTP 裝置有獨特的需求,請建立以原始版本的 WpdMtp.inf為基礎的新安裝資訊 (.inf) 檔案。 (您無法直接修改 WpdMtp.inf

下表說明在 WpdMtp.inf 中找到的特定 Needs 需求指令,以及您可以對指定指令所識別的區段進行的可能修改。

下表中的項目可支援三種傳輸中的任何一項(USB、IP 或藍牙)。 請注意,每個傳輸都需要唯一的安裝區段。 另請注意,只有 Windows 7 才支援藍牙傳輸。

Needs 指示詞 描述
需求 = WPD,MTP,WINUSB,NT WPD。MTP 區段會識別要複製和註冊的驅動程序檔案。 下列適用於 Windows Vista 和 Windows Media Player 11。
;;[DDInstall]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP

從 Windows 7 開始,WinUsb.sys 會取代 WpdUsb.sys 做為使用 USB 連線到電腦之 MTP 裝置的較低篩選器驅動程式。 廠商的 INF 文件需要具備以下指令,才能包含 WinUsb.inf 和特定的 WinUSB 區段:

;;[DDInstall]
;;Include = wpdmtp.inf, WINUSB.INF
;;Needs = WPD.MTP, WINUSB.NT
需求 = WPD。MTP。註冊 WPD.MTP.Registration 區段會完成四項工作:
  1. 註冊內核模式驅動程式(如果在 Windows Vista 或 Windows XP 上安裝裝置,則包含 WPDUSB.sys 作為較低的篩選驅動程式)。
  2. 啟用預設的 MTP 自動播放支援。
  3. 啟用舊版應用程式相容性支援(預設值0xFFFFFFFF允許 WPD 類別安裝程式查詢裝置的功能)。
  4. 設定傳輸驅動程式的類別識別碼。
;;[DDInstall.hw]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Registration
需求 = WPD.MTP.Registration.Basic WPD.MTP.Registration.Basic 區段可讓您自訂上一個清單中的工作 2 和 3。 例如,您可以使用值 0x01 將應用程式相容性設定為支援 Windows 映像擷取(WIA),或使用值 0x02 支援 Windows 媒體設備管理員(WMDM)。
;;[DDInstall.hw]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Registration.Basic
需求 = WPD.MTP.Services WPD。MTP。Services 區段會新增驅動程式服務(和預設服務參數)。 這包括 WUDF 和 WPDUSB.sys(僅適用於 Windows Vista 和 Windows XP)。
;;[DDInstall.Services]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Services
需求 = WPD。MTP。CoInstallers WPD。MTP。CoInstallers 區段會識別共同安裝程式。 (若要安裝 MTP 裝置,會使用 Windows 使用者模式驅動程式架構 (UMDF) 共同安裝程式。

Windows 7、Windows Vista 和 Windows Media Player 11 需要本節。 支援 Windows Media Player 10 的 MTP 驅動程式不需要是必要的。

;;[DDInstall.CoInstallers]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.CoInstallers
Needs = WPD.MTP.Wdf WPD.MTP.Wdf 區段會識別 Windows 使用者模式驅動程序架構 (UMDF) 服務和其二進位檔 (WPDMTPDR.dll)。

Windows 7、Windows Vista 和 Windows Media Player 11 需要本節。 支援 Windows Media Player 10 的 MTP 驅動程式是不需要的。

;;[DDInstall.CoInstallers]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Wdf