[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
CatalogFile=ITEhidCIR.cat
LayoutFile=layout.inf
DriverVer=01/24/2008,1.0.0001.6

;
;   Layout.inf (etc.) list all files shipped with the operating system so the 
;   source description sections are only needed if other files are needed.
;   
;   In order to use IHV drivers, the SourceDisksNames section must list the 
;   disk(s) containing the drivers and the SourceDisksFiles section must list 
;   which disk number each file to be copied is found on.
;   Disk number 99 is used to avoid a conflict with the disk numbers defined 
;   in layout.inf
;
;   Files used in a driver installation need to be digitally signed otherwise 
;   installation may fail.  See documentation elsewhere in the DDK regarding 
;   driver signing.

[SourceDisksFiles]
ITEhidCIR.sys = 99

[SourceDisksNames]
99 = %DISK_NAME%,,,

;[SourceDisksNames.x86]
;99 = %DISK_NAME%,,,\i386

;[SourceDisksNames.ia64]
;99 = %DISK_NAME%,,,\ia64

;[SourceDisksNames.amd64]
;99 = %DISK_NAME%,,,\amd64


[DestinationDirs]
CopyFilesSYS = 12     ; should it be 10 to take care of 98 stuff??????
CopyFilesDLL = 11     ; %SystemRoot%\system or system32 - 98 or Win2000
CopyFilesSYS_98 = 10, system32/drivers

[Manufacturer]
%VENDOR%=Vendor, NTx86, NTamd64;, NTia64

; For Win2K
;[Vendor]
;%VHidMini%    = VHidMini.Inst, {D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE
;%VHidDevice%  = VHidDevice.Inst,  HID\MyVirtualHidDevice

; For XP and later
[Vendor.NTx86]
%VHidMini%    = VHidMini.Inst, ACPI\ITE8708
%VHidDevice%  = VHidDevice.Inst,  HID\ITEirDevice

;[Vendor.NTia64]
;%VHidMini%    = VHidMini.Inst, {D49F883C-6486-400a-8C22-1A9EF48577E4}\HID_DEVICE
;%VHidDevice%  = VHidDevice.Inst,  HID\MyVirtualHidDevice

[Vendor.NTamd64]
%VHidMini%    = VHidMini.Inst, ACPI\ITE8708
%VHidDevice%  = VHidDevice.Inst,  HID\ITEirDevice


[ControlFlags]
ExcludeFromSelect  = HID\ITEirDevice

;===============================================================
;   VHidMini (Root Enumerated Hid Device) install section
;===============================================================
[VHidMini.Inst]
CopyFiles = CopyFilesSYS_98, CopyFilesDLL
AddReg    = VHidMini_98me.AddReg

[VHidMini.Inst.NT]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[VHidMini.Inst.NT.HW]
AddReg = VHidMini_Parameters.AddReg 

[VHidMini.Inst.NT.Services]
AddService = vhidmini,0x00000002,vhidmini_Service_Inst,

[CopyFilesSYS]
ITEhidCIR.sys
;HidClass.sys
;HidParse.sys


[CopyFilesSYS_98]
ITEhidCIR.sys
HidClass.sys
HidParse.sys

[CopyFilesDLL]
;Hid.dll

[VHidMini_Parameters.AddReg]
HKR,,"ReadFromRegistry",%REG_DWORD%, 0x00000001
HKR,,"KindOfIc",%REG_DWORD%, 2	;1=IT8712, 2=IT8752
HKR,,"RCprotocal",%REG_DWORD%, 1	;1=RC6, 2=NEC
HKR,,"RCcustomerID",%REG_DWORD%, 0x800F
HKR,,"ReportMappingTable",%REG_BINARY%, \
  0x01,0x04,0x00,0x1E,  \;1
  0x02,0x04,0x00,0x1F,  \;2
  0x03,0x04,0x00,0x20,  \;3
  0x04,0x04,0x00,0x21,  \;4
  0x05,0x04,0x00,0x22,  \;5
  0x06,0x04,0x00,0x23,  \;6
  0x07,0x04,0x00,0x24,  \;7
  0x08,0x04,0x00,0x25,  \;8
  0x09,0x04,0x00,0x26,  \;9
  0x00,0x04,0x00,0x27,  \;0
  0x0B,0x04,0x00,0x28,  \;return
  0x0A,0x04,0x00,0x29,  \;escape
  0x1D,0x04,0x02,0x25,  \;* (Shift+8)
  0x1C,0x04,0x02,0x20,  \;# (Shift+3)
  \
  0x1F,0x04,0x00,0x51,  \;down arrow
  0x1E,0x04,0x00,0x52,  \;up arrow
  0x21,0x04,0x00,0x4f,  \;right arrow
  0x20,0x04,0x00,0x50,  \;left arrow
  0x22,0x04,0x00,0x28,  \;return
  \
  0x4E,0x01,0x08,0x02,  \;AC Print
  0x0F,0x01,0x09,0x02,  \;AC Properties (Details)
  0x23,0x01,0x24,0x02,  \;AC Back
  \
  0x16,0x01,0xb0,0x00,  \;AC Media play
  0x18,0x01,0xb1,0x00,  \;AC Media pause
  0x17,0x01,0xb2,0x00,  \;AC Media record
  0x14,0x01,0xb3,0x00,  \;AC FF
  0x15,0x01,0xb4,0x00,  \;AC RW
  0x1A,0x01,0xb5,0x00,  \;AC Media next track
  0x1B,0x01,0xb6,0x00,  \;AC Media previous track
  0x19,0x01,0xb7,0x00,  \;AC Media Stop
  0x6E,0x01,0xcd,0x00,  \;AC Media play/pause
  \
  0x10,0x01,0xe9,0x00,  \;AC volume up
  0x11,0x01,0xea,0x00,  \;AC volume down
  0x0E,0x01,0xe2,0x00,  \;AC volume mute
  \
  0x12,0x01,0x9c,0x00,  \;AC channel up
  0x13,0x01,0x9d,0x00,  \;AC channel down
  \
  0x0C,0x03,0x81,0x00,  \;Suspend
  0x2A,0x03,0x81,0x00,  \;Discrete Power Off
  \
  0x0D,0x02,0x0D,0x00,  \;eHome launch
  0x4A,0x02,0x4A,0x00,  \;My videos
  0x49,0x02,0x49,0x00,  \;My pictures
  0x25,0x02,0x25,0x00,  \;eHome jump/Live TV
  0x46,0x02,0x46,0x00,  \;My TV
  0x47,0x02,0x47,0x00,  \;My Music
  0x24,0x02,0x24,0x00,  \;DVD Menu
  0x48,0x02,0x48,0x00,  \;Recorded TV
  0x26,0x02,0x26,0x00,  \;?? 
  \
  0x5A,0x02,0x5A,0x00,  \;TELETEXT
  0x5B,0x02,0x5B,0x00,  \;Red
  0x5C,0x02,0x5C,0x00,  \;Green
  0x5D,0x02,0x5D,0x00,  \;Yellow
  0x5E,0x02,0x5E,0x00,  \;Blue
  \
  0x81,0x02,0x80,0x00,  \;OEM 1
  0x82,0x02,0x81,0x00,  \;OEM 2
  0x83,0x02,0x82,0x00,  \;OEM 3
  0x84,0x02,0x80,0x00,  \;OEM 1 (new)
  0x86,0x02,0x81,0x00   \;OEM 2 (new)

[VHidMini_98me.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"ITEhidCIR.sys"

[vhidmini_Service_Inst]
DisplayName    = %VHidMini%
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\ITEhidCIR.sys 

;===============================================================
;   VHidDevice (Virtual Hid Device) install section
; - Only a Null service is installed.
;===============================================================
[VHidDevice.Inst]

[VHidDevice.Inst.NT]

[VHidDevice.Inst.NT.Services]
AddService = ,0x00000002,   ; NULL Service


;================================================================
[Strings] 
;  *******Localizable Strings******* 
VENDOR         = "ITE Tech. Inc." 
VHidMini       = "ITECIR Hid Driver" 
VHidDevice     = "Hid CIR Device" 
DISK_NAME      = "ITECIR Hid Driver Install Disk"
;  *******Non Localizable Strings******* 

SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

REG_EXPAND_SZ          = 0x00020000 
REG_DWORD              = 0x00010001 
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000

