; EloMTApr.INF
; Copyright (c) 2014 Elo Touch Solutions.

[version]
signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%ELO%
DriverVer=01/03/2014,6.2.0.1
CatalogFile.NTAMD64 = EloMTApr64.cat

[SourceDisksNames.amd64]
1=%EloMTDisk%,,,\amd64

[SourceDisksFiles]
EloMTApr.sys = 1
hidkmdf.sys  = 1
wdfcoinstaller01009.dll = 1

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir            =11     ;LDID_SYS
EloMTAprInst.NT.Copy      =12     ;LDID_DRIVERS
EloMTAprInst.Win7.NT.Copy =12     ;LDID_DRIVERS
EloTouchInst_CoInstaller_CopyFiles = 11

; Drivers
;----------------------------------------------------------
[Manufacturer]
%Elo%=Elo, NTamd64, NTamd64.6.1

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;For Windows XP
[Elo.NTamd64]
%EloTouchUsbPID71.DeviceDesc%   =EloMTAprInst, USB\VID_04e7&PID_0071
%EloTouchUsbPID73.DeviceDesc%   =EloMTAprInst, USB\VID_04e7&PID_0073
%EloTouchUsbPID74.DeviceDesc%   =EloMTAprInst, USB\VID_04e7&PID_0074

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;For Windows 7
[Elo.NTamd64.6.1]
%EloTouchUsbPID71.DeviceDesc%   =EloMTAprInst.Win7, USB\VID_04e7&PID_0071
%EloTouchUsbPID73.DeviceDesc%   =EloMTAprInst.Win7, USB\VID_04e7&PID_0073
%EloTouchUsbPID74.DeviceDesc%   =EloMTAprInst.Win7, USB\VID_04e7&PID_0074

;===============================================================
;  EloMTAprInst for XP
;===============================================================

[EloMTAprInst.NT]
CopyFiles =EloMTAprInst.NT.Copy

[EloMTAprInst.NT.Copy]
EloMTApr.sys
hidkmdf.sys

[EloMTAprInst.NT.HW]
AddReg =EloMTAprInst.NT.HW.AddReg

[EloMTAprInst.NT.Services]
AddService =EloMTApr,0x00000002,EloMTAprServiceInst,EloEventLogInst
AddService =hidkmdf,, hidkmdf_Service_Inst

[EloMTAprInst.NT.HW.AddReg]
HKR,,"UpperFilters",0x00010000,hidkmdf

[hidkmdf_Service_Inst]
DisplayName    = %hidkmdf.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\hidkmdf.sys
LoadOrderGroup = PNP Filter

;===============================================================
;  EloMTAprInst for Win7
;===============================================================

[EloMTAprInst.Win7.NT]
CopyFiles =EloMTAprInst.Win7.NT.Copy

[EloMTAprInst.Win7.NT.Copy]
EloMTApr.sys

[EloMTAprInst.Win7.NT.HW]
AddReg =EloMTAprInst.Win7.NT.HW.AddReg

[EloMTAprInst.Win7.NT.Services]
AddService =EloMTApr,0x00000002,EloMTAprServiceInst,EloEventLogInst

[EloMTAprInst.Win7.NT.HW.AddReg]
HKR,,"UpperFilters",0x00010000,mshidkmdf

;===============================================================
;   Sections common to all OS versions
;===============================================================

[EloEventLogInst]
AddReg  =EloEventLogAddReg

[EloEventLogAddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\EloMTApr.sys"
HKR,,TypesSupported,0x00010001,7

; -------------- Elo Touch Driver install section
[EloMTAprServiceInst]
DisplayName    = %EloMTApr.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ;
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\EloMTApr.sys
LoadOrderGroup = Extended Base

;================================================================
;--- WDF Coinstaller installation ------
;

[EloMTAprInst.NT.CoInstallers]
AddReg=EloTouchInst_CoInstaller_AddReg
CopyFiles=EloTouchInst_CoInstaller_CopyFiles

[EloTouchInst_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01009.dll,WdfCoInstaller"

[EloTouchInst_CoInstaller_CopyFiles]
wdfcoinstaller01009.dll

[EloMTAprInst.NT.Wdf]
KmdfService = EloMTApr, EloWdfInstalll
[EloWdfInstalll]
KmdfLibraryVersion = 1.9

[Strings]

MS="Microsoft"
Elo="Elo Touch Solutions"
EloMTDisk="Elo Install Disk"

EloTouchUsbPID71.DeviceDesc="Elo Touch Solutions PulseTouch Touchscreen" ; 0x71 7000D
EloTouchUsbPID73.DeviceDesc="Elo Touch Solutions PulseTouch Touchscreen" ; 0x73 7000G/7002
EloTouchUsbPID74.DeviceDesc="Elo Touch Solutions PulseTouch Touchscreen" ; 0x74 7001/7002"
EloMTApr.SVCDESC           ="Elo Touch Solutions PulseTouch Service"
hidkmdf.SVCDESC            ="HID Class Shim for KMDF"


;  *******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
