;============================================================================ 
; ETDHCF.inf Installation file (.inf) for Windows 8/8.1/10.
;
; All Rights Reserved, Copyright(C) ELAN Microelectronics Corp. 2003-2018
;============================================================================

[Version]
Signature="$Windows NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}	; HIDClassGuid
Provider=%VenderName%
CatalogFile=ETDHCF.cat
DriverVer=10/25/2018, 22.2.5.4

[SourceDisksNames]
1=%DiskName%,,

[SourceDisksFiles]
ETDHCF.sys = 1

ETDHCF_USB.sys = 1

;----------------------------------------------------------------------------
; Manufacturer Sections
;----------------------------------------------------------------------------

[Manufacturer]
%VenderName%   = ELANMfg, NTamd64, NTamd64.6.2

[ELANMfg.NTamd64]


[ELANMfg.NTamd64.6.2]
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0702&Col02			;Inventec Balos
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0703&Col02			;Inventec Hedwig
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0704&Col02			;Quanta Cockatoo
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0705&Col02			;Inventec Balos 2.0
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0706&Col02			;Wistron Brava
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0707&Col02			;Wistron Corvo
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0708&Col02			;Inventec Ashmore
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0709&Col02			;Compal Maldives
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0710&Col02			;Compal Cyprus/Mallorca
%ETDHCFDeviceDesc%	= ETDHCF_Inst, HID\VEN_ELAN&DEV_0711&Col02			;Compal Milos/Santorini

%ETDHCFDeviceDesc% 	= ETDHCF_Inst_USB, HID\VID_04F3&PID_0759&Col02			; ClickPad (XN1(Vero)) USB platform
%ETDHCFDeviceDesc% 	= ETDHCF_Inst_USB, HID\VID_04F3&PID_075A&Col02			; ClickPad (SN1(Palm)) USB platform

;----------------------------------------------------------------------------
; Install Sections
;----------------------------------------------------------------------------

[DestinationDirs]
CopyFiles_Drivers	= 12			; Driver directory
CopyFiles_CoInstaller 	= 11			; System directory
CopyFiles_USB_Drivers	= 12			; Driver directory

[CopyFiles_Drivers]
ETDHCF.sys,,,0x00000001

[CopyFiles_USB_Drivers]
ETDHCF_USB.sys,,,0x00000001

;----------------------------------------------------------------------------
[ETDHCF_Inst]
CopyFiles=CopyFiles_Drivers

AddReg=ETDHCF_Addreg

[ETDHCF_Inst.Services]
Include = input.inf
Needs = HID_Raw_Inst.NT.Services
AddService = ETDHCF,,ETDHCF_Service_Inst

[ETDHCF_AddReg.HW]
HKR,,"UpperFilters",0x00010000,"ETDHCF"

[ETDHCF_Inst.HW]
AddReg = ETDHCF_AddReg.HW

;----------------------------------------------------------------------------USB Platform
[ETDHCF_Inst_USB]
CopyFiles=CopyFiles_USB_Drivers

AddReg=ETDHCF_Addreg_USB

[ETDHCF_Inst_USB.Services]
Include = input.inf
Needs = HID_Raw_Inst.NT.Services
AddService = ETDHCF,,ETDHCF_USB_Service_Inst

[ETDHCF_AddReg_USB.HW]
HKR,,"UpperFilters",0x00010000,"ETDHCF"

[ETDHCF_Inst_USB.HW]
AddReg = ETDHCF_AddReg_USB.HW

;----------------------------------------------------------------------------

[ETDHCF_Addreg]
HKLM,%ServiceRoot%\Elantech\ETDHCF,ETDHidI2C_Report_Type,%REG_DWORD%,1		; 0 = Regular, 1 = New Design

[ETDHCF_Addreg_USB]
HKLM,%ServiceRoot%\Elantech\ETDHCF,ETDHidI2C_Report_Type,%REG_DWORD%,1		; 0 = Regular, 1 = New Design


;----------------------------------------------------------------------------
; Services Sections
;----------------------------------------------------------------------------

[ETDHCF_Service_Inst]
DisplayName	= %ETDHCF.SVCDESC%
ServiceType   	= 1			; SERVICE_KERNEL_DRIVER
StartType     	= 3			; SERVICE_DEMAND_START
ErrorControl  	= 1			; SERVICE_ERROR_NORMAL
ServiceBinary 	= %12%\ETDHCF.sys 

[ETDHCF_USB_Service_Inst]
DisplayName	= %ETDHCF.SVCDESC%
ServiceType   	= 1			; SERVICE_KERNEL_DRIVER
StartType     	= 3			; SERVICE_DEMAND_START
ErrorControl  	= 1			; SERVICE_ERROR_NORMAL
ServiceBinary 	= %12%\ETDHCF_USB.sys 

;----------------------------------------------------------------------------
; User visible strings
;----------------------------------------------------------------------------
[Strings]
ETDHCFDeviceDesc		= "ELAN HID Class Filter Driver"
ETDHCF.SVCDESC			= "ELAN HID Class Filter Service"

Publisher 			= "ELAN Microelectronic Corp."
TargetDir			= "Elantech"
DiskName  			= "ELAN HID Driver Installation Disk"
VenderName			= "ELAN HID Device"
ServiceRoot 			= "System\CurrentControlSet\Control"

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

