The MTP Setup Information (.inf) File

Microsoft provides a set of class drivers to support the Media Transfer Protocol (MTP). If your device supports MTP, you can use one of these drivers. In addition to the class drivers, Microsoft provides a setup information (.inf) file to install a class driver. This file is named WpdMtp.inf.

If your MTP device has unique requirements, create a new setup information (.inf) file that is based on the original version of WpdMtp.inf. (You cannot modify WpdMtp.inf directly.)

The following table describes specific Needs directives that are found in WpdMtp.inf and possible modifications that you can make to the sections that are identified by a given directive.

The entries in the following table can support any of three transports (USB, IP, or Bluetooth). Be aware that each transport requires a unique installation section. Also be aware that the Bluetooth transport is only supported in Windows 7.

Needs directive Description
Needs = WPD.MTP, WINUSB.NT The WPD.MTP section identifies the driver files that will be copied and registered. The following applies to Windows Vista and Windows Media Player 11.
  
;;[DDInstall]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP

Starting with Windows 7, WinUsb.sys replaces WpdUsb.sys as the lower filter driver for MTP devices that connect to the computer by using USB. The following directive is required for a vendor’s INF to include WinUsb.inf and a specific WinUSB section:

  
;;[DDInstall]
;;Include = wpdmtp.inf, WINUSB.INF
;;Needs = WPD.MTP, WINUSB.NT

Needs = WPD.MTP.Registration The WPD.MTP.Registration section accomplishes four tasks:
  1. Registers the kernel-mode driver (including WPDUSB.sys as the lower filter driver if you are installing the device on Windows Vista or Windows XP).
  2. Enables default MTP AutoPlay support.
  3. Enables legacy application compatibility support (the default value 0xFFFFFFFF allows the WPD class installer to query the device's capabilities).
  4. Sets the transport driver's class identifier.
  
;;[DDInstall.hw]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Registration

Needs = WPD.MTP.Registration.Basic The WPD.MTP.Registration.Basic section lets you customize tasks 2 and 3 in the previous list. For example, you can set the application compatibility to support Windows Image Acquisition (WIA) by using a value of 0x01 or Windows Media Device Manager (WMDM) by using a value of 0x02.
  
;;[DDInstall.hw]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Registration.Basic

Needs = WPD.MTP.Services The WPD.MTP.Services section adds driver services (and default service parameters). This includes WUDF and WPDUSB.sys (for Windows Vista and Windows XP only).
  
;;[DDInstall.Services]
;;Include = wpdmtp.inf
;;Needs = WPD.MTP.Services

Needs = WPD.MTP.CoInstallers The WPD.MTP.CoInstallers section identifies the co-installer. (To install an MTP device, a Windows user-mode driver framework (UMDF) co-installer is used.)

This section is required for Windows 7, Windows Vista, and Windows Media Player 11. (It was not required for an MTP driver that supported Windows Media Player 10.)

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

Needs = WPD.MTP.Wdf The WPD.MTP.Wdf section identifies the Windows user-mode driver framework (UMDF) service and its binary (WPDMTPDR.dll).

This section is required for Windows 7, Windows Vista, and Windows Media Player 11. (It was not required for an MTP driver that supported Windows Media Player 10.)

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

 

 

 

Send comments about this topic to Microsoft