;
; Copyright (c) Microsoft Corporation.
;
[Version]
Signature="$WINDOWS NT$"
Class=WPD
ClassGUID={EEC5AD98-8080-425f-922A-DABF3DE3F69A}
Provider=%Msft%
CatalogFile=Zune.cat
DriverVer=07/13/2010,4.7.965.0

[Manufacturer]
%MfgName%=Microsoft,NTx86,NTamd64

[SourceDisksNames]
1 = %InstallDisk%

[SourceDisksFiles]
ZuneDriver.dll = 1
ZuneMTPZ.dll = 1
ZuneIpTransport.dll = 1
ZuneUsbTransport.dll = 1
ZuneNetProxy.dll = 1
ZuneRegUtil.dll = 1
ZuneTcp2Udp.dll = 1
ZunePTDNS.dll = 1
WinUSBCoInstaller.dll = 1
WdfCoInstaller01009.dll = 1
WUDFUpdate_01009.dll = 1
ZuneCoInst.dll = 1

;; en-US
ZuneCoInst.dll.mui = 1,en-US

;; de-DE
de-DE-ZuneCoInst.dll.mui = 1,de-DE

;; es-ES
es-ES-ZuneCoInst.dll.mui = 1,es-ES

;; fr-FR
fr-FR-ZuneCoInst.dll.mui = 1,fr-FR

;; it-IT
it-IT-ZuneCoInst.dll.mui = 1,it-IT

;; nl-NL
nl-NL-ZuneCoInst.dll.mui = 1,nl-NL

;; pt-BR
pt-BR-ZuneCoInst.dll.mui = 1,pt-BR

;; pt-PT
pt-PT-ZuneCoInst.dll.mui = 1,pt-PT

[DestinationDirs]
Wdf.CoInstaller.Files = 11
WUDF.CoInstaller.Files = 11
WinUSB.CoInstaller.Files = 11
Zune.CoInstaller.Files = 11
Zune.CoInstallerMUI.Files = 11,en-US
Zune.CoInstaller.CopyFiles.de-DE = 11,de-DE
Zune.CoInstaller.CopyFiles.es-ES = 11,es-ES
Zune.CoInstaller.CopyFiles.fr-FR = 11,fr-FR
Zune.CoInstaller.CopyFiles.it-IT = 11,it-IT
Zune.CoInstaller.CopyFiles.nl-NL = 11,nl-NL
Zune.CoInstaller.CopyFiles.pt-BR = 11,pt-BR
Zune.CoInstaller.CopyFiles.pt-PT = 11,pt-PT
Zune.Files.Core = 11
Zune.Files.USBTransport = 11
Zune.Files.IPTransport = 11
Zune.Files.NetProxy = 11
Zune.Files.UMDFDriver = 12,UMDF ; system32\drivers\UMDF

[Zune.Files.Core]
ZuneMTPZ.dll

[Zune.Files.USBTransport]
ZuneUsbTransport.dll

[Zune.Files.IPTransport]
ZuneIPTransport.dll

[Zune.Files.UMDFDriver]
ZuneDriver.dll

[Zune.Files.NetProxy]
ZuneNetProxy.dll
ZuneRegUtil.dll
ZuneTcp2Udp.dll
ZunePTDNS.dll

[Wdf.CoInstaller.Files]
WdfCoInstaller01009.dll

[WUDF.CoInstaller.Files]
WUDFUpdate_01009.dll

[WinUSB.CoInstaller.Files]
WinUSBCoInstaller.dll

[Zune.CoInstaller.Files]
ZuneCoInst.dll

[Zune.CoInstallerMUI.Files]
ZuneCoInst.dll.mui

[Microsoft.NTx86]
%Zune.DeviceDesc% = ZuneMTPZUSB, USB\MS_COMP_MTPZ
%Zune.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0710
%Zune.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_063E
%Kin.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0640
%Kin.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0641
%Kin.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0642
%WPhone.DeviceDesc% = ZuneMTPZUSB, USB\Vid_045E&PID_04EC&MI_00
%ZuneIp.DeviceDesc% = ZuneMTPZIP, umb\urn:microsoft-com:device:mtpz:1

[Microsoft.NTamd64]
%Zune.DeviceDesc% = ZuneMTPZUSB, USB\MS_COMP_MTPZ
%Zune.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0710
%Zune.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_063E
%Kin.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0640
%Kin.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0641
%Kin.DeviceDesc% = ZuneMTPZUSB, USB\VID_045E&PID_0642
%WPhone.DeviceDesc% = ZuneMTPZUSB, USB\Vid_045E&PID_04EC&MI_00
%ZuneIp.DeviceDesc% = ZuneMTPZIP, umb\urn:microsoft-com:device:mtpz:1

;
; USB section
;
[ZuneMTPZUSB]
Include = WinUSB.inf
Needs = WinUSB.NT
CopyFiles = Zune.Files.USBTransport, Zune.Files.Core, Zune.Files.UMDFDriver, Zune.Files.NetProxy
RegisterDlls = ZuneMTPZUSB.RegisterComServers

[ZuneMTPZUSB.HW]
AddReg = WDF.Registration, ZuneMTPZUSB.Transport.Registration, Zune.Registration

[ZuneMTPZUSB.Services]
AddService = WUDFRd, 0x000001fa, WUDFRD_ServiceInstall   ; 0x2 - assigned the name service as the PnP function driver
AddService = WinUSB, 0x000001f8, WinUSB_ServiceInstall   ; this service is installed because its a filter.

[WinUsb_ServiceInstall]
DisplayName     = %WinUsb.ServiceDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

[ZuneMTPZUSB.CoInstallers]
AddReg = WinUSB.CoInstaller, Zune.CoInstaller
CopyFiles = Wdf.CoInstaller.Files, WUDF.CoInstaller.Files, WinUSB.CoInstaller.Files, Zune.CoInstaller.Files, \
            Zune.CoInstallerMUI.Files, Zune.CoInstaller.CopyFiles.de-DE, Zune.CoInstaller.CopyFiles.es-ES, \
            Zune.CoInstaller.CopyFiles.fr-FR, Zune.CoInstaller.CopyFiles.it-IT, Zune.CoInstaller.CopyFiles.nl-NL, \
            Zune.CoInstaller.CopyFiles.pt-BR, Zune.CoInstaller.CopyFiles.pt-PT

[ZuneMTPZUSB.Wdf]
KmdfService = WinUSB, WinUSB_Install
UmdfService = ZuneDriver, ZuneDriver_Install
UmdfServiceOrder = ZuneDriver
UmdfDispatcher = WinUSB

[WinUSB_Install]
KmdfLibraryVersion = 1.9

[ZuneMTPZUSB.Transport.Registration]
HKR,"ZuneDriver","TransportClassID",0x0,"{E4F7BB36-38CD-4159-83AF-439CE5B521B0}"
HKR,,"Interfaces",0x10000,"{6AC27878-A6FA-4155-BA85-F98F491D4F33}","{CA3D7387-F67B-11DA-BBEC-8000600FE800}"
HKR,,"DeviceInterfaceGUIDs",0x10000,"{6AC27878-A6FA-4155-BA85-F98F491D4F33}","{CA3D7387-F67B-11DA-BBEC-8000600FE800}"
HKR,,"LowerFilters",0x00010008,"WinUSB" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND

[ZuneMTPZUSB.RegisterComServers]
12,UMDF,ZuneDriver.dll,1
11,,ZuneMTPZ.dll,1
11,,ZuneUsbTransport.dll,1

;
; IP section
;
[ZuneMTPZIP]
CopyFiles = Zune.Files.IPTransport, Zune.Files.Core, Zune.Files.UMDFDriver
RegisterDlls = ZuneMTPZIP.RegisterComServers

[ZuneMTPZIP.HW]
AddReg = WDF.Registration, ZuneMTPZIP.Transport.Registration, Zune.Registration

[ZuneMTPZIP.Services]
AddService = WUDFRd, 0x000001fa, WUDFRD_ServiceInstall

[ZuneMTPZIP.CoInstallers]
AddReg = WUDF.CoInstaller
CopyFiles = WUDF.CoInstaller.Files

[ZuneMTPZIP.Wdf]
UmdfService = ZuneDriver, ZuneDriver_Install
UmdfServiceOrder = ZuneDriver

[ZuneMTPZIP.Transport.Registration]
HKR,"ZuneDriver","TransportClassID",0x0,"{F09FF0F1-7156-4B62-813E-EEC97B7865EA}"
HKR,,"Interfaces",0x10000,"{6AC27878-A6FA-4155-BA85-F98F491D4F33}","{DF400EBC-C2FB-4CBB-9F59-BB1CD22BBEDF}"

[ZuneMTPZIP.RegisterComServers]
12,UMDF,ZuneDriver.dll,1
11,,ZuneMTPZ.dll,1
11,,ZuneIPTransport.dll,1

;
; Zune common section
;
[Zune.Registration]
HKR,"ZuneDriver","UseWpdPrivateInterface",0x10001,1
HKR,,"EnableLegacySupport",0x10001,0
HKR,,"EnableDefaultAutoPlaySupport",0x10001,0
HKR,,"PortableDeviceNameSpaceExcludeFromShell",0x10001,1
HKR,,"PortableDeviceNameSpaceExcludeAutoPlayTab",0x10001,1
HKR,,"ShowInShell",0x10001,0
HKR,,"UseExtendedWmdm",0x10001,1
HKR,,"WMDMSPCLSID",,"{63DF72F9-C6BD-40B2-9590-6CD8D468C9D7}"

[ZuneDriver_Install]
UmdfLibraryVersion = 1.9.0
ServiceBinary = %12%\UMDF\ZuneDriver.dll
DriverCLSID = "{2E2C3051-B7B7-4D51-8C57-784BA5AC0FF0}"

;
; WDF section
;
[WDF.Registration]
HKR,"WUDF","Exclusive",0x10001,1
HKR,"WUDF","NumDeviceInterfacesMax",0x10001,0x80

; WUDF Reflector
[WUDFRD_ServiceInstall]
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\WUDFRd.sys

[WUDF.CoInstaller]
HKR,,CoInstallers32,0x00010000,"WUDFUpdate_01009.dll"

[WinUSB.CoInstaller]
HKR,,CoInstallers32,0x00010000,"WUDFUpdate_01009.dll","WinUSBCoInstaller.dll","WdfCoInstaller01009.dll,WdfCoInstaller"

[Zune.CoInstaller]
HKR,,CoInstallers32,0x00010008,"ZuneCoInst.dll,StartZuneCoInst"


;
; Modify files
;

[Zune.CoInstaller.CopyFiles.de-DE]
;; de-DE
ZuneCoInst.dll.mui,de-DE-ZuneCoInst.dll.mui,,0x4020

[Zune.CoInstaller.CopyFiles.es-ES]
;; es-ES
ZuneCoInst.dll.mui,es-ES-ZuneCoInst.dll.mui,,0x4020

[Zune.CoInstaller.CopyFiles.fr-FR]
;; fr-FR
ZuneCoInst.dll.mui,fr-FR-ZuneCoInst.dll.mui,,0x4020

[Zune.CoInstaller.CopyFiles.it-IT]
;; it-IT
ZuneCoInst.dll.mui,it-IT-ZuneCoInst.dll.mui,,0x4020

[Zune.CoInstaller.CopyFiles.nl-NL]
;; nl-NL
ZuneCoInst.dll.mui,nl-NL-ZuneCoInst.dll.mui,,0x4020

[Zune.CoInstaller.CopyFiles.pt-BR]
;; pt-BR
ZuneCoInst.dll.mui,pt-BR-ZuneCoInst.dll.mui,,0x4020

[Zune.CoInstaller.CopyFiles.pt-PT]
;; pt-PT
ZuneCoInst.dll.mui,pt-PT-ZuneCoInst.dll.mui,,0x4020


; This empty ClassInstall32 section allows driver installation to complete in the absence of WPD.
; Installing the Zune Software will create the WPD class and make the driver functional. 
[ClassInstall32]

; =========== Driver update notification ========

;[Zune.AddProp]
;GenericDriverInstalled,,,,1


[Strings]

; Non-localizable strings
SERVICE_KERNEL_DRIVER = 0x1
SERVICE_DEMAND_START  = 0x3
SERVICE_ERROR_NORMAL  = 0x1

; Localizable strings
Msft               = "Microsoft"
Zune.DeviceDesc    = "Zune"
WPhone.DeviceDesc  = "Windows Phone 7"
ZuneIp.DeviceDesc  = "Zune Wireless"
MfgName            = "Microsoft"
InstallDisk        = "Zune Driver Disk"
WinUsb.ServiceDesc = "WinUSB"
Kin.DeviceDesc     = "KIN"
