; Copyright (c) Microsoft Corporation. All rights reserved.
;
; XUSB22.INF file
;
; Installs the Xbox 360 Common Controller for Windows driver
;
; Supports the following devices
; Xbox 360 Wired Common Controller              USB\Vid_045E&Pid_028E
; Xbox 360 Wireless Common Controller Reciever  USB\Vid_045E&Pid_0719
; Xbox 360 Wired CC Compatible                  USB\MS_COMP_XUSB10
; Xbox 360 Wireless CC Compatible               USB\MS_COMP_XUSB20
;
; Installs a Service for the Play and Charge Cable
; Play and Charge Cable                         USB\Vid_045E&Pid_028F
;

[Version]
Signature="$WINDOWS NT$"
Class=XnaComposite
ClassGUID={D61CA365-5AF4-4486-998B-9DB4734C6CA3}
Provider=%MSFT%
PnpLockdown=1
DriverVer = 12/06/2019,10.0.19041.1

[ClassInstall32]
AddReg=XnaComposite_AddReg

[XnaComposite_AddReg]
HKR,,,,%XUSB22.ClassName%
HKR,,NoInstallClass,,1
HKR,,IconPath,%REG_MULTI_SZ%,"%%SystemRoot%%\System32\setupapi.dll,-40"

[SourceDisksNames]
1=%XUSB22.DiskName%

[SourceDisksFiles]
xusb22.sys=1

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir=12

[Manufacturer]
%MSFT%=MSFT,NTamd64

[MSFT.NTamd64]
%XUSB22.DeviceName.Wired%=CC_Install, USB\Vid_045E&Pid_028E
%XUSB22.DeviceName%=CC_Install, USB\Vid_045E&Pid_0719
%XUSB22.DeviceName.Wired%=CC_Install, USB\MS_COMP_XUSB10
%XUSB22.DeviceName%=CC_Install, USB\MS_COMP_XUSB20
%XUSB22.DeviceName.Jump%=CC_Install, USB\Vid_045E&Pid_028F

[CC_Install]
CopyFiles=CC_Install.CopyFiles
AddReg=CC_Install.AddReg

[CC_Install.CopyFiles]
xusb22.sys,,,0x100

[CC_Install.AddReg]
 HKR,,"AudioOutTerminalType"        , 0x00010001, 0x00000306
;HKR,,"LiveCallButtonVidPid"        , 0x045e0001, 0x00000306
;HKR,,"GamepadTriggerUsage"         , 0x00003232, 0x00000306
;HKR,,"GamepadStickUsage"           , 0x31303433, 0x00000306
;HKR,,"WheelUsage"                  , 0x00000005, 0x00000306
;HKR,,"WheelPedalUsage"             , 0x00003232, 0x00000306
;HKR,,"FlightStickUsage"            , 0x35323433, 0x00000306
;HKR,,"SwapFFWirelessWheelVibration", 0x00000001, 0x00000306
;HKR,,"WirelessVidPids"             , 0x045E0001, 0x00000306

[CC_Install.Services]
AddService=xusb22,0x00000002,CC_XUSB22_Service

[CC_XUSB22_Service]
DisplayName    = %XUSB22.ServiceName%
ServiceType    = 1 ; SERVICE_KERNEL_DRIVER
StartType      = 3 ; SERVICE_DEMAND_START
ErrorControl   = 0 ; SERVICE_ERROR_IGNORE
ServiceBinary  = %12%\xusb22.sys


[strings]
; localizable strings
MSFT                             = "Microsoft"
StdMfg                           = "(Standard system devices)"
XUSB22.ClassName                 = "Xbox 360 Peripherals"
XUSB22.DeviceName                = "Xbox 360 Wireless Receiver for Windows"
XUSB22.DeviceName.Wired          = "Xbox 360 Controller for Windows"
XUSB22.DeviceName.Jump           = "Xbox 360 Wireless Controller via Play & Charge Kit"
XUSB22.ServiceName               = "Xbox 360 Wireless Receiver Driver Service 22"
XUSB22.DiskName                  = "Xbox 360 Wireless Receiver for Windows Install Disk"

; non-localizable strings
REG_MULTI_SZ = 0x00010000
