; touchkit.inf
;
; Installation file (.inf) for the Touchkit device.
;
; (c) Copyright 2005 Inc. 
;

[Version]
Signature="$Windows NT$"
Provider=%TOUCHKIT%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=touchkit.cat
DriverVer=07/29/2005, 4.0.2.1929
[SourceDisksNames]
1 = %DiskId1%,,
[DestinationDirs]
DefaultDestDir   = 12
;
; Driver information
;

[Manufacturer]
%TOUCHKIT%   = TouchkitMfg ;

[TouchkitMfg]
%SERTOUCH_PNP%       = sertouch_Inst, SERENUM\EGX5800
%USB_UNIV_TOUCH%     = usb_univ_Inst, USB\VID_0EEF&PID_0001
%USB_PROF_TOUCH%     = usb_univ_Inst, USB\VID_0EEF&PID_0002
%PS2_TOUCH%	     = egxps2_Inst, *PNP0F13
%EGX_BUS%	     = egxbus_Inst, *PNPFAKE	

;
; General installation section
;
; ======= Serial Touchscreen Section ====================
[sertouch_Inst]
AddReg=sertouch_AddReg
; Copy the driver over
CopyFiles=SerCopyFiles_Drivers


[sertouch_AddReg]
;
; File sections
;

[SerCopyFiles_Drivers]
sertouch.sys

;
; Service Installation
;
[sertouch_Inst.HW]
AddReg = sertouch_Inst_AddReg


[sertouch_Inst.Services]
AddService = sertouch, 0x00000002 , sertouch_Service_Inst, sertouch_EventLog_Inst
; Install mouclass.sys from msmouse.inf
Include=msmouse.inf
Needs=MouClass.Services


[sertouch_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\sertouch.sys
AddReg = sertouch_Inst.HW.AddReg



[sertouch_EventLog_Inst]
AddReg = sertouch_EventLog_AddReg


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


[sertouch_Inst_AddReg]
HKR,,"BeepMode",0x00010003,0x00000001        ;Set last argument to 0x00000000 =  Off Beep
                                             ;Set last argumentto 0x00000001 =  Beep when touched
                                             ;Set last argumentto 0x00000002 =  Beep when released
                                             
HKR,,"BeepFrequency",0x00010003,0x00000064   ;Beep Frequency    0x00000064~0x00000FA0
HKR,,"BeepDuration",0x00010003,0x00000019    ;Beep duration     0x00000019~0x000001F4
HKR,,"MouseMode",0x00010003,0x00000000
                          ; you can set last argument for MouseMode follow :
                          ; 0x80000000   make driver to report right button.
                          ; 0x40000000   enable auto right button feature.
                          ; 0x20000000   disable driver to report mouse event.
                          ; 0x10000000   Set this flag to make driver to by pass the software filter to get more fast response.
                          ; 0x00000000   Default value of mouse emulation mode.
                          ; 0x00000001   set the mouse emulation mode to be "Click on Touch".
                          ; 0x00000002   set the mouse emulation mode to be "Click on Release".
                          ; 0x00000003   set the mouse emulation mode to be "Click On Touch No Move".
                          ; 0x00000004	  set the mouse emulation mode to be "click On Release No Move".

HKR,,"ConstDuration",0x00010003,0x0000012C  ;constant touch parameter which define the touch duration 
                                            ;in milli-second for auto right click.(0x0000012C~0x00000384)
					      
HKR,,"ConstRange",0x00010003,0x00000008     ;constant touch parameter which define the touch range for
                                            ; auto right click.(0x00000008~0x00000080)
                                                                 
;HKR,,"EdgeInfo",0x00000001,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x00,0xFB,0xFF,0xFF,0x00,0xFB,0xFF,0xFF,0x01,0x00,0x00,0x00
;--------------------------/      lLeft        /       lRight      /        lTop       /        lBottom    /      lOffsetX     /      lOffsetY     /        ulMode     /
;====================================================================
;================= USB Touchscreen Section ==========================
;====================================================================
[usb_univ_Inst]
AddReg=xtouch_AddReg
; Copy the driver over
CopyFiles=XCopyFiles_Drivers


[xtouch_AddReg]
;
; File sections
;

[XCopyFiles_Drivers]
xtouch.sys

;
; Service Installation
;
[usb_univ_Inst.Services]
AddService = xtouch, 0x00000002 , xtouch_Service_Inst, xtouch_EventLog_Inst
; Install mouclass.sys from msmouse.inf
Include=msmouse.inf
Needs=MouClass.Services


[usb_univ_Inst.HW]
AddReg=usb_AddReg


[xtouch_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\xtouch.sys


[xtouch_EventLog_Inst]
AddReg = xtouch_EventLog_AddReg

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


[usb_AddReg]
HKR,,"BeepMode",0x00010003,0x00000001        ;Set last argument to 0x00000000 =  Off Beep
                                             ;Set last argumentto 0x00000001 =  Beep when touched
                                             ;Set last argumentto 0x00000002 =  Beep when released
                                             
HKR,,"BeepFrequency",0x00010003,0x00000064   ;Beep Frequency    0x00000064~0x00000FA0
HKR,,"BeepDuration",0x00010003,0x00000019    ;Beep duration     0x00000019~0x000001F4
HKR,,"MouseMode",0x00010003,0x00000000
                          ; you can set last argument for MouseMode follow :
                          ; 0x80000000   make driver to report right button.
                          ; 0x40000000   enable auto right button feature.
                          ; 0x20000000   disable driver to report mouse event.
                          ; 0x10000000   Set this flag to make driver to by pass the software filter to get more fast response.
                          ; 0x00000000   Default value of mouse emulation mode.
                          ; 0x00000001   set the mouse emulation mode to be "Click on Touch".
                          ; 0x00000002   set the mouse emulation mode to be "Click on Release".
                          ; 0x00000003   set the mouse emulation mode to be "Click On Touch No Move".
                          ; 0x00000004	  set the mouse emulation mode to be "click On Release No Move".

HKR,,"ConstDuration",0x00010003,0x0000012C  ;constant touch parameter which define the touch duration 
                                            ;in milli-second for auto right click.(0x0000012C~0x00000384)
					      
HKR,,"ConstRange",0x00010003,0x00000008     ;constant touch parameter which define the touch range for
                                            ; auto right click.(0x00000008~0x00000080)
                                                                 
;HKR,,"EdgeInfo",0x00000001,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x00,0xFB,0xFF,0xFF,0x00,0xFB,0xFF,0xFF,0x01,0x00,0x00,0x00
;--------------------------/      lLeft        /       lRight      /        lTop       /        lBottom    /      lOffsetX     /      lOffsetY     /        ulMode     /
;====================================================================
; PS2 Installation Section
;====================================================================

[egxps2_Inst]
; perform port related actions from msmouse.inf
Include=msmouse.inf
Needs=PS2_Inst
AddReg=egxps2.AddReg
CopyFiles=egxps2.Copyfiles


[egxps2.AddReg]


;
; File sections
;

[egxps2.CopyFiles]
egxfilter.sys

;
; Service Installation
;

[egxps2_Inst.Services]
; Install the port driver and mouclass from msmouse.inf
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = egxfilter,, egxfilter_Service_Inst


[egxfilter_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\egxfilter.sys


;[egxfilter_EventLog_Inst]
;AddReg = egxfilter_EventLog_AddReg


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


[egxps2_Inst.HW]
; Add the device upper filter
Include=msmouse.inf
Needs=PS2_Inst.HW
AddReg = egxfilter.HW.AddReg


[egxfilter.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"egxfilter"
HKR,,"BeepMode",0x00010003,0x00000001        ;Set last argument to 0x00000000 =  Off Beep
                                             ;Set last argumentto 0x00000001 =  Beep when touched
                                             ;Set last argumentto 0x00000002 =  Beep when released
                                             
HKR,,"BeepFrequency",0x00010003,0x00000064   ;Beep Frequency    0x00000064~0x00000FA0
HKR,,"BeepDuration",0x00010003,0x00000019    ;Beep duration     0x00000019~0x000001F4
HKR,,"MouseMode",0x00010003,0x00000000
                          ; you can set last argument for MouseMode follow :
                          ; 0x80000000   make driver to report right button.
                          ; 0x40000000   enable auto right button feature.
                          ; 0x20000000   disable driver to report mouse event.
                          ; 0x10000000   Set this flag to make driver to by pass the software filter to get more fast response.
                          ; 0x00000000   Default value of mouse emulation mode.
                          ; 0x00000001   set the mouse emulation mode to be "Click on Touch".
                          ; 0x00000002   set the mouse emulation mode to be "Click on Release".
                          ; 0x00000003   set the mouse emulation mode to be "Click On Touch No Move".
                          ; 0x00000004	  set the mouse emulation mode to be "click On Release No Move".

HKR,,"ConstDuration",0x00010003,0x0000012C    ;constant touch parameter which define the touch duration 
                                              ;in milli-second for auto right click.(0x0000012C~0x00000384)
					      
HKR,,"ConstRange",0x00010003,0x00000008       ;constant touch parameter which define the touch range for
                                              ; auto right click.(0x00000008~0x00000080)
                                                                 
;HKR,,"EdgeInfo",0x00000001,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x00,0xFB,0xFF,0xFF,0x00,0xFB,0xFF,0xFF,0x01,0x00,0x00,0x00
;--------------------------/      lLeft        /       lRight      /        lTop       /        lBottom    /      lOffsetX     /      lOffsetY     /        ulMode     /
;====================================================================
; Touch BUS Installation                                            
;====================================================================
[egxbus_Inst]
CopyFiles=egxbus.CopyFiles, DllCopyFiles
AddReg=egxbus.AddReg
[egxbus.CopyFiles]
egxfilter.sys,,,2

[DllCopyFiles]
xtouch32ex.dll,,,0x60
[egxbus.Services]
AddService = egxfilter,  ,egxbus_Service_Inst

[egxbus_Service_Inst]
DisplayName    = %PS2_TOUCH%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
ServiceBinary  = %12%\egxfilter.sys

[egxbus.HW]
; Add the device upper filter
AddReg = egxbus.HW.AddReg
; run the directives need by the port driver

[egxbus.HW.AddReg]
HKR,,"UpperFilters",0x00010008, egxfilter

[egxbus.AddReg]
HKLM,%RUNONCEKEYNAME%, AutoSearch,, \
"rundll32 xtouch32ex.dll, SearchSerialTouch COM1COM2"
;
; Source file information
;
[SourceDisksFiles]
; Files for disk Touchkit Touchscreen Controller. Installation Disk #1 (Mouse)
xtouch.sys = 1,,
sertouch.sys = 1,,
egxfilter.sys = 1,,
xtouch32ex.dll = 1,,

[Strings]

;
; Non-Localizable Strings
;

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = "System\CurrentControlSet\Services"

;
; Localizable Strings
;
SERTOUCH_PNP 	= "Serial Touchscreen Controller(Professional)"
USB_UNIV_TOUCH  = "USB Touchscreen Controller(Universal)"
USB_PROF_TOUCH  = "USB Touchscreen Controller(Professional)"
PS2_TOUCH	= "Touchkit Filter"
EGX_BUS		= "TouchScreen Enumerator"
RUNONCEKEYNAME = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
DiskId1 = "Touchkit. Driver Installation Disk(TouchScreen)"
TOUCHKIT = "Touchkit"
