; Installation inf for devices supporting Media Transfer Protocol (MTP) ; ; Copyright (c) Microsoft Corporation. ; [Version] Signature="$WINDOWS NT$" Class=WPD ClassGUID={EEC5AD98-8080-425f-922A-DABF3DE3F69A} Provider=%Msft% LayoutFile=layout.inf DriverVer=08/31/2004,5.2.0.0 [Manufacturer] %MfgName%=Generic %MfgNameVendorModels%=VendorModels [Generic] ; ;Device is identified by Microsoft OS descriptor ;If your device does not support it, use specific VID & PID for identification %GenericMTP.DeviceDesc%=MTP, USB\MS_COMP_MTP %GenericMTP.DeviceDesc%=MTP, USB\VID_22B8&PID_6413&REV_0001&MI_00 [VendorModels] ;;****************************************************************************** ;; The following are to be used in vendor specific "Includes" and "Needs" sections. ;; Specifically, the INF should contain: ;; ;; [DDInstall] ;; Include = wpdmtp.inf ;; Needs = WPD.MTP.CopyFiles ;; ;; [DDInstall.hw] ;; Include = wpdmtp.inf ;; Needs = WPD.MTP.Registration ;; ;; [DDInstall.Services] ;; Include = wpdmtp.inf ;; Needs = WPD.MTP.Services ;; ;;****************************************************************************** [WPD.MTP.CopyFiles] CopyFiles = [WPD.MTP.Registration] AddReg = MTP.WmdmRegistration, MTP.DriverCustomization, WDF.Registration, MTP.AutoPlayRegistration CopyFiles = [WPD.MTP.Services] AddService = WpdUsb, 0x2, MTP.WpdUsb.AddService [DestinationDirs] [MTP.NT] [MTP.NT.hw] AddReg = MTP.WmdmRegistration, MTP.DriverCustomization, WDF.Registration, MTP.AutoPlayRegistration CopyFiles = [MTP.NT.Services] AddService=WpdUsb, 0x2, MTP.WpdUsb.AddService [MTP.WmdmRegistration] HKR,,"UseExtendedWmdm",0x10001,1 HKR,,"WMDMSPCLSID",,"{77F7F122-20B0-4117-A2FB-059D1FC88256}" HKR,,"ShowInShell",0x10001,1 ; This lists the interfaces which WpdUsb.sys will register on device start HKR,,"Interfaces",0x00010000,"{6ac27878-a6fa-4155-ba85-f98f491d4f33}","{f33fdc04-d1ac-4e8e-9a30-19bbd4b108ae}","{14480d3f-7a47-4a75-aaef-b14f56397153}" [MTP.DriverCustomization] HKR,"MTP","IgnoreOpCodes",,"" ;; Enable driver side object handle caching when writing to the device. HKR,"MTP","CacheOnWrite",0x10001,1 ;; Threshold for number of objects in a given folder afterwhich the driver ;; will query for object properties only upon application request (as ;; opposed to querying for objects and their properties at enumeration ;; time) HKR,"MTP","EnumThreshold",0x10001,200 ;; Threshold for number of objects in a given folder afterwhich the driver ;; will query for object property groups during enumeration ;; time) HKR,"MTP","PropertyGroupThreshold",0x10001,10 ;; Report Storage Serial Number support in MTP driver HKR,"MTP","ReportStorageSerialNumber",0x10001,1 [MTP.AutoPlayRegistration] ; Per interface setting enabling Autoplay HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","DeviceGroup",,"PortableAudioPlayer" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","Label",,%Autoplay.Label% HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","DeviceHandlers",,"MTPMediaPlayerHandler" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceClasses\{14480d3f-7a47-4a75-aaef-b14f56397153}","Icons",0x00010000,"%%SystemRoot%%\system32\shell32.dll,-299" ; DeviceHandler HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\DeviceHandlers\MTPMediaPlayerHandler\EventHandlers\DeviceArrival","MTPMediaPlayerArrival",,"" ; EventHandlers. Creating an empty key will give "Take no action" option if no handlers are registered. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\MTPMediaPlayerArrival\",,0x00000012 ; ;User mode WDF Registration ; [WDF.Registration] HKR,"WDFU","DriverList",0x00010008,"WpdMtpDr" HKR,"WDFU","Isolated",0x10001,1 HKR,"WDFU","DeviceInterfaces",0x00010000,"{f33fdc04-d1ac-4e8e-9a30-19bbd4b108ae}","{14480d3f-7a47-4a75-aaef-b14f56397153}" ; WDF host process HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF\Services" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF\Services\WpdMtpDr","ImagePath",0x00020000,"WpdMtpDr.dll" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF\Services\WpdMtpDr","WdfHostProcessGUID",0x00000000,"{63432f85-815a-4a44-be78-cbdf484acd93}" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF\Services\{63432f85-815a-4a44-be78-cbdf484acd93}","WdfHostProcessImagePath",0x00020000,"%11%\uWDF.exe" HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF\Services\{63432f85-815a-4a44-be78-cbdf484acd93}","WdfHostProcessExitTimeout",0x00010001,10 HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WDF\Services\{63432f85-815a-4a44-be78-cbdf484acd93}","WdfHostProcessStartTimeout",0x00010001,10 [WDF.Registration.security] "D:P(A;OICI;GA;;;SY)(A;OICI;GA;;;BA)(A;OICI;GR;;;LS)" ; ; WpdUsb Kernel mode driver ; [MTP.WpdUsb.AddService] DisplayName = %WpdUsb.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\System32\Drivers\wpdusb.sys LoadOrderGroup = Base [Strings] Msft = "Microsoft" WpdUsb.SvcDesc = "WpdUsb" GenericMTP.DeviceDesc = "MTP Device" MfgName = "(Standard MTP-Compliant Devices)" MfgNameVendorModels = "(Standard MTP-Compliant Devices)" Autoplay.Label = "MTP Media Player"