;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copyright 2007 Saitek plc
;;
;; SaiCB02.inf
;; SD 6 - x86
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Version]
Signature=    $CHICAGO$
Class=        HIDClass
ClassGuid=    {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=     %PROVIDER%
DriverVer=    10/22/2008, 6.5.6.7 
CatalogFile=  SaiCB02.cat

[Manufacturer]
Saitek =    SAITEK_MODELS, NTamd64

[SAITEK_MODELS.NTamd64]
%HID_NAME%=     SAI_HID_Inst,    HID\VID_0738&PID_CB02&IG_04

[ControlFlags]
ExcludeFromSelect= *

[SourceDisksNames]
1=%DISKNAME%,,,.

[SourceDisksFiles]
SaiKCB02.sys = 1 ; programming driver
SaiCCB02.Dll = 1 ; control panel
SaiCCB02_07.dll = 1   ; german language resources
SaiCCB02_09.dll = 1   ; english language resources
SaiCCB02_0A.dll = 1   ; spanish language resources
SaiCCB02_0C.dll = 1   ; french language resources
SaiCCB02_10.dll = 1   ; italian language resources
SaiCCB02_11.dll = 1   ; japanese language resources
SaiCCB02_0402.dll = 1 ; chinese language resources
WdfCoInstaller01005.dll = 1 ; make sure the number matches with SourceDisksNames

[DestinationDirs]
DefaultDestDir=     10,system32\drivers
SAI_HID_Inst_Dlls.CopyFiles.NTamd64= 11
SAI_HID_Inst_CoInstaller_CopyFiles = 11

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[SAI_HID_Inst.NTamd64.CoInstallers]
AddReg=SAI_HID_Inst_CoInstaller_AddReg
CopyFiles=SAI_HID_Inst_CoInstaller_CopyFiles

[SAI_HID_Inst_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01005.dll,WdfCoInstaller"

[SAI_HID_Inst_CoInstaller_CopyFiles]
WdfCoInstaller01005.dll,,,2

[SAI_HID_Inst.NTamd64.Wdf]
KmdfService = SaiKCB02, SAI_HID_Inst_WDFSect

[SAI_HID_Inst_WDFSect]
KmdfLibraryVersion = 1.5

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[SAI_HID_Inst.NTamd64]
Copyfiles = SAI_HID_Inst.CopyFiles.NTamd64, SAI_HID_Inst_Dlls.CopyFiles.NTamd64
AddReg = SAI_HID_Inst.AddReg.NTamd64

[SAI_HID_Inst.CopyFiles.NTamd64]
SaiKCB02.sys,,,2

[SAI_HID_Inst_Dlls.CopyFiles.NTamd64]
SaiCCB02.Dll
SaiCCB02_07.dll
SaiCCB02_09.dll
SaiCCB02_0A.dll
SaiCCB02_0C.dll
SaiCCB02_10.dll
SaiCCB02_11.dll
SaiCCB02_0402.dll

[SAI_HID_Inst.AddReg.NTamd64]
HKLM, %KEY_OEM%\VID_0738&PID_CB02,     OEMName,     0, %DEV_NAME%
HKLM, %KEY_OEM%\VID_0738&PID_CB02,     ConfigCLSID, 0, %GUID_CPL%
; cpl
HKCR, CLSID\%GUID_CPL%               ,               , ,%HID_NAME%
HKCR, CLSID\%GUID_CPL%\ProgID        ,               , ,%HID_NAME%
HKCR, CLSID\%GUID_CPL%\InProcHandler32,              , ,"%11%\gchand.dll"
HKCR, CLSID\%GUID_CPL%\InProcServer32,               , ,"%11%\SaiCCB02.dll"
HKCR, CLSID\%GUID_CPL%\InProcServer32, ThreadingModel, ,"Apartment"
; Do I Create a RawPDO for comms
HKR, , UseInterface, 0x00010001, 0
; What Interfaces do I register
HKR, InterfacesSupported, %GUID_TORONTO%,      0x00010001, 1
HKR, InterfacesSupported, %GUID_ISTANBUL%,     0x00010001, 1
; Settings for each Interface
; Toronto
HKR, Programming, Alias, ,          %GUID_ALIAS%
HKR, Programming, Balias, ,         %GUID_BALIAS%
;HKR, Programming, CplProfile, ,     %CPL_PROFILE%
;HKR, Programming, DefaultProfile, , %DEFAULT_PROFILE%
; Istanbul
HKR, AnalogDigital, HasOverride,    0x00010001, 1

[SAI_HID_Inst.NTamd64.Services]
AddService = SaiKCB02, 0x00000002, SaiHid_Service_Inst

[SaiHid_Service_Inst]
DisplayName    = SaiKCB02
ServiceType    = 1
StartType      = 3
ErrorControl   = 0
ServiceBinary  = %12%\SaiKCB02.sys

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[strings]
KEY_OEM       = "System\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM"
ALIASTABLE    = "Software\Saitek\Configuration\Alias"
GUID_SYDNEY   = "{DAF1A7EE-68B2-4757-829E-C3E9226EA2DF}"
GUID_AUKLAND  = "{0040FD64-C5F1-49e3-A3EB-38E7B3AB3B3C}"
GUID_AVIEMORE = "{19D936F8-BAC2-4636-82B7-BC2C35F33F2A}"
GUID_TORONTO  = "{3B0BC249-97F2-49c7-A5B4-8AF34040E48D}"
GUID_MANHATTAN= "{8291a93b-3e39-4403-801f-f9e15c527562}"
GUID_ISTANBUL = "{A7AAAAD0-99FF-45a1-87F5-2CFAEF10F6A0}"
GUID_CASABLANCA="{10DB5451-D30F-4ABC-AB5F-6839C740D0CA}"

GUID_CPL    = "{EC65264D-7A36-40CD-8B2B-F549781231B4}"
GUID_ALIAS  = "{14F77A73-1E44-4CD4-86F3-4AABD1DB018A}"
GUID_BALIAS = "{E9D64F2F-F022-466A-AFCE-5D77AF14BE2C}"

PROVIDER= "Saitek"
DISKNAME= "Saitek Driver Media"
DEV_NAME= "Saitek Cyborg Pad for PC/Xbox 360"
HID_NAME= "Saitek Cyborg Pad for PC/Xbox 360 (HID)"
