;
; Installation inf file for DiBcom Infrared receiver driver
; Copyright 2005, DiBcom SA

[Version]
Signature   = "$CHICAGO$"
Class       = HIDClass
ClassGuid   = {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider    = %Dibcom%
DriverVer   = 02/06/2007,2.0.1.0
CatalogFile = modrc.cat

;=====================================================================
[SourceDisksNames]
1 = %INSTALLATION_DISK%,,,,,

[SourceDisksFiles]
modrc.sys    = 1,,
ModrcCoInstall.dll = 1,,

[DestinationDirs]
MODRC_CopyFilesSys = 12,
MODRC_CopyFilesCoInst = 11,

[ControlFlags]
ExcludeFromSelect = *

;=====================================================================
[Manufacturer]
%MfgName% = DIBCOM,NTamd64

[DIBCOM]
%MODRC_DeviceDesc% = MODRC, HID\VID_1044&PID_7002&FN_01

[DIBCOM.NTamd64]
%MODRC_DeviceDesc% = MODRC, HID\VID_1044&PID_7002&FN_01

;=====================================================================
[MODRC.NT]
CopyFiles = MODRC_CopyFilesSys
AddReg    = MODRC_AddReg

[MODRC.NT.Services]
AddService = MODRC,0x00000002,MODRC_ServiceInstall,,,

[MODRC.NT.HW]
AddReg = MODRC_HW_AddReg

[MODRC.NT.CoInstallers]
CopyFiles = MODRC_CopyFilesCoInst
AddReg = MODRC_CoInstaller_AddReg

[MODRC_CopyFilesCoInst]
ModrcCoInstall.dll

[MODRC_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"ModrcCoInstall.dll,"

[MODRC_CopyFilesSys]
modrc.sys

[MODRC_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,modrc.sys

[MODRC_ServiceInstall]
DisplayName   = %MODRC_FriendlyName%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\modrc.sys

[MODRC_HW_AddReg]
HKR,,"ReportDescriptor",0x00000001,\
    \ ; Consumer Controls
        0x05,   0x0c,       \ ; Usage Page (Consumer Controls),
        0x09,   0x01,       \ ; Usage (Consumer Control),
        0xA1,   0x01,       \ ; Collection (Application),
        0x85,   0x01,       \ ;  Report Id (1)
        0x19,   0x00,       \ ;  Usage Minimum (0),
        0x2a,   0x3c, 0x02, \ ;  Usage Maximum (23c)  
        0x15,   0x00,       \ ;  Logical Minimum (0),
        0x26,   0x3c, 0x02, \ ;  Logical Maximum (23c)  
        0x95,   0x01,       \ ;  Report Count (1),
        0x75,   0x10,       \ ;  Report Size (16),
        0x81,   0x00,       \ ;  Input (Data, Array), 
        0xC0,               \ ; End Collection 
    \ ; MS Vendor controls
        0x06,   0xbc, 0xff, \ ; Usage Page (Vendor 0xffbc),
        0x09,   0x88,       \ ; Usage (88),
        0xa1,   0x01,       \ ; Collection (Application),
        0x85,   0x02,       \ ;  Report Id (2)
        0x19,   0x01,       \ ;  Usage Minimum (0x01),
        0x29,   0xff,       \ ;  Usage Maximum (0xff),
        0x15,   0x00,       \ ;  Logical Minimum (0),
        0x25,   0x01,       \ ;  Logical Maximum(1),
        0x95,   0x01,       \ ;  Report Count (1),
        0x75,   0x08,       \ ;  Report Size (8),
        0x81,   0x00,       \ ;  Input (Data, Array), 
        0xc0,               \ ; End Collection
    \ ; Standby button
        0x05,   0x01,       \ ; Usage Page (Generic Desktop),
        0x09,   0x80,       \ ; Usage (System Control),
        0xa1,   0x01,       \ ; Collection (Application),
        0x85,   0x03,       \ ;  Report Id (3)
        0x19,   0x81,       \ ;  Usage Minimum (0x81),
        0x29,   0x83,       \ ;  Usage Maximum (0x83),
        0x25,   0x01,       \ ;  Logical Maximum(1),
        0x75,   0x01,       \ ;  Report Size (1),
        0x95,   0x03,       \ ;  Report Count (3),
        0x81,   0x02,       \ ;  Input
        0x75,   0x01,       \ ;  Report Size (1),   
        0x95,   0x05,       \ ;  Report Count (5),
        0x81,   0x01,       \ ;  Input (Constant),
        0xC0,               \ ; End Collection
    \ ; Keyboard
        0x05,   0x01,       \ ; Usage Page (Generic Desktop),
        0x09,   0x06,       \ ; Usage (Keyboard),
        0xA1,   0x01,       \ ; Collection (Application),
        0x85,   0x04,       \ ;  Report Id (4)
        0x05,   0x07,       \ ;  usage page key codes
        0x19,   0xe0,       \ ;  usage min left control
        0x29,   0xe7,       \ ;  usage max keyboard right gui
        0x75,   0x01,       \ ;  report size 1
        0x95,   0x08,       \ ;  report count 8
        0x81,   0x02,       \ ;  input (Variable)
        0x19,   0x00,       \ ;  usage min 0
        0x29,   0x90,       \ ;  usage max 91
        0x26,   0xff, 0x00, \ ;  logical max 0xff
        0x75,   0x08,       \ ;  report size 8
        0x95,   0x01,       \ ;  report count 1
        0x81,   0x00,       \ ;  Input (Data, Array),
        0xC0                \ ; End Collection

HKR,,"ReportDataSize",0x00010001,0x00000003

HKR,,"ReportMappingTable",0x00000001,\
     0x01,0x86,0x6B,0x17, 0x07, 0x04,0x00,0x1e,  \ ; 1
     0x01,0x86,0x6B,0x0A, 0x07, 0x04,0x00,0x1f,  \ ; 2
     0x01,0x86,0x6B,0x0C, 0x07, 0x04,0x00,0x20,  \ ; 3
     0x01,0x86,0x6B,0x54, 0x07, 0x04,0x00,0x21,  \ ; 4
     0x01,0x86,0x6B,0x55, 0x07, 0x04,0x00,0x22,  \ ; 5
     0x01,0x86,0x6B,0x56, 0x07, 0x04,0x00,0x23,  \ ; 6
     0x01,0x86,0x6B,0x57, 0x07, 0x04,0x00,0x24,  \ ; 7
     0x01,0x86,0x6B,0x58, 0x07, 0x04,0x00,0x25,  \ ; 8
     0x01,0x86,0x6B,0x59, 0x07, 0x04,0x00,0x26,  \ ; 9
     0x01,0x86,0x6B,0x18, 0x07, 0x04,0x00,0x27,  \ ; 0
     0x01,0x02,0xFD,0x55, 0x0B, 0x04,0x00,0x29,  \ ; escape
    \
     0x01,0x86,0x6B,0x0D, 0x07, 0x04,0x00,0x51,  \ ; down arrow
     0x01,0x86,0x6B,0x5B, 0x07, 0x04,0x00,0x52,  \ ; up arrow
     0x01,0x86,0x6B,0x1A, 0x07, 0x04,0x00,0x4f,  \ ; right arrow
     0x01,0x86,0x6B,0x1B, 0x07, 0x04,0x00,0x50,  \ ; left arrow
     0x01,0x86,0x6B,0x5A, 0x07, 0x04,0x00,0x28,  \ ; return
    \
     0x01,0x01,0xFE,0x0A, 0x07, 0x04,0x04,0x28,  \ ; Full screen
     0x01,0x01,0xDE,0x4A, 0x04, 0x01,0x09,0x02,  \ ; AC Properties (Details)
     0x01,0x86,0x6B,0x0E, 0x07, 0x04,0x00,0x2A,  \ ; Menu Back
    \
     0x01,0x01,0xDE,0x04, 0x04, 0x01,0xb0,0x00,  \ ; AC Media play
     0x01,0x01,0xDE,0x4E, 0x04, 0x01,0xb1,0x00,  \ ; AC Media pause
     0x01,0x01,0xDE,0x4F, 0x04, 0x01,0xb2,0x00,  \ ; AC Media record
     0x01,0x01,0xDE,0x53, 0x04, 0x01,0xb3,0x00,  \ ; AC FF
     0x01,0x01,0xDE,0x4B, 0x04, 0x01,0xb4,0x00,  \ ; AC RW
     0x01,0x01,0xDE,0x12, 0x04, 0x01,0xb5,0x00,  \ ; AC Media next track
     0x01,0x01,0xDE,0x50, 0x04, 0x01,0xb6,0x00,  \ ; AC Media previous track
     0x01,0x01,0xDE,0x56, 0x04, 0x01,0xb7,0x00,  \ ; AC Media Stop
    \
     0x01,0x86,0x6B,0x07, 0x07, 0x04,0x00,0x43,  \ ; AC volume up;F10
     0x01,0x86,0x6B,0x04, 0x07, 0x04,0x00,0x42,  \ ; AC volume down;F9
     0x01,0x86,0x6B,0x05, 0x07, 0x04,0x00,0x41,  \ ; AC volume mute;F8
    \
     0x01,0x01,0xFE,0x1A, 0x07, 0x04,0x00,0x3F,  \ ; MTS
     0x01,0x86,0x6B,0x01, 0x07, 0x04,0x00,0x4B,  \ ; AC channel up
     0x01,0x86,0x6B,0x06, 0x07, 0x04,0x00,0x4E,  \ ; AC channel down
    \
     0x01,0x01,0xFE,0x05, 0x07, 0x04,0x00,0x3B,  \ ; Time shift
     0x01,0x86,0x6B,0x1C, 0x07, 0x04,0x01,0x08,  \ ; My videos
     0x01,0x86,0x6B,0x1E, 0x07, 0x04,0x03,0x16,  \ ; Snapshot
     0x01,0x86,0x6B,0x1D, 0x07, 0x04,0x01,0x04,  \ ; My FM
     0x01,0x86,0x6B,0x1F, 0x07, 0x04,0x01,0x17,  \ ; My TV
     0x01,0x02,0xFC,0x5D, 0x07, 0x04,0x01,0x10,  \ ; My Music
     0x01,0x02,0xFC,0x59, 0x07, 0x04,0x01,0x19,  \ ; DVD Menu
     0x01,0x01,0xFE,0x1F, 0x07, 0x04,0x01,0x15,  \ ; Recorded TV
     0x01,0x86,0x6B,0x02, 0x07, 0x04,0x05,0x13,  \ ; Power
     0x01,0x86,0x6B,0x12, 0x07, 0x04,0x01,0x0A,  \ ; EPG
     0x01,0x86,0x6B,0x19, 0x07, 0x04,0x01,0x0F,  \ ; Last channel
     0x01,0x01,0xDE,0xFF, 0x04, 0x02,0x83,0x00   \ ; OEM 4

HKR,,"KeyEmulationMask",0x00000001,\
     0xFF,0x00,0x00                                ; No Event

HKR,,"SkipRepeatCounter",0x00010001,0x00000002

;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VEN_1932&DEV_0064&SUBSYS_00000000&REV_01&FN_01" ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VEN_1932&DEV_1E32&SUBSYS_00001932&REV_01&FN_01" ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VEN_1932&DEV_1E34&SUBSYS_00001932&REV_01&FN_01" ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VEN_1932&DEV_1E3C&SUBSYS_00001932&REV_01&FN_01" ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E14&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E16&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E78&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E7A&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E8C&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E96&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1E98&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1EBC&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1EBE&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1EF0&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, HID\VID_10B8&PID_1EFC&FN_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_0BC7&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_0067&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_0E89&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_0ED9&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_0EED&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E15&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E79&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_0066&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E14&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E16&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E78&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E7A&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E8C&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E90&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E96&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1E98&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1EBC&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1EBE&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1EF0&MI_01"                        ; For Media Center compatibility only
;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Remote Controls","",0x00000000,"%MODRC_DeviceDesc% = MODRC, USB\VID_10B8&PID_1EFC&MI_01"                        ; For Media Center compatibility only


;=====================================================================
[Strings]
Dibcom             = "DiBcom S.A."
MfgName            = "DiBcom"
MODRC_DeviceDesc   = "Gigabyte U8000 Infrared Receiver"
MODRC_FriendlyName = "DiBcom Infrared Receiver"
INSTALLATION_DISK  = "DVB-T USB2.0 Adapter Installation Disk"

SERVICE_KERNEL_DRIVER = 0x1
SERVICE_DEMAND_START  = 0x3
SERVICE_ERROR_NORMAL  = 0x1
