; egxpen.INF
;
;Installation file (.inf) for the Touchkit HID digitizer device.
;
; Copyright (c) 2007 Inc. 

[version]
signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%eGalax%
CatalogFile=egxpen.cat
DriverVer=01/15/2007, 1.0.0.0115
[SourceDisksNames]
1 = %DiskId1%,,

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir              =11     ;LDID_SYS
egxPenInst.NT.Copy          =12     ;LDID_DRIVERS

; Drivers
;----------------------------------------------------------
[Manufacturer]
%eGalax%=eGalax

[eGalax]
%SERTOUCH_PNP%    =egxPenInst,SERENUM\EGX5803
%SERIAL_PNP%	  =egxpenInst,SERENUM\EGX5900
%LEGACY_SERIAL%   =egxpenInst,SERENUM\EGX5800
%PS2_PNP%    	  =egxPenInst,SERENUM\EGX5902
%SERIAL_LEGACY%	  =egxpenInst,SERENUM\EGX5901




[egxPenInst.NT]
;Include=layout.inf
;Needs=SourceDisksFiles
CopyFiles                   =egxPenInst.NT.Copy

[egxPenInst.NT.Copy]
egxpen.sys

[egxPenInst.NT.HW]
AddReg                      =SerialInst.NT.HW.AddReg,egx.NT.HW.AddReg

[egxPenInst.NT.Services]
AddService                  =egxpen,0x00000002,egxPenServiceInst,egxEventLogInst
;AddService                  =Serial,,SerialServiceInst, SerialEventLogInst

[egxEventLogInst]
AddReg                      =egxEventLogAddReg

[egx.NT.HW.AddReg]
HKR,,"NoOutOfRange",0x00010001,1
; The following registry value can be used to specify the characteristics
; of the touch panel and the controller which will override default values
; in the driver.  The registry value represents the binary form of the
; following structure:
; struct _DIGI_DATA {
;   USHORT wXMax;               //Logical X Max (0x3fff for 14-bit resolution)
;   USHORT wYMax;               //Logical Y Max (0x3fff for 14-bit resolution)
;   USHORT wXDim;               //Physical dimension of X (in 100th inches)
;   USHORT wYDim;               //Physical dimension of Y (in 100th inches)
;   ULONG  dwSamplingRate;      //Sampling rate setting
; };
;
; DigiData: wXMax=0x3fff (14-bit)
;           wYMax=0x3fff (14-bit)
;           wXDim=0x1770 (6.000 in)
;           wYDim=0x0e29 (3.625 in)
;           dwSamplingRate=3 (120 samples/sec)
HKR,,"DigiData",0x00000001,ff,3f,ff,3f,70,17,29,0e,03,00,00,00
;HKR,,"DigiData",0x00000001,00,08,00,08,70,17,29,0e,03,00,00,00

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

; -------------- eGalax Pen Driver install section
[egxPenServiceInst]
DisplayName    = %egxPen.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ;
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\egxpen.sys
LoadOrderGroup = Extended Base

[SerialInst.NT.HW.AddReg]
;HKR,,"LowerFilters",0x00010000,"serial"
;HKR,,"MultiportDevice",0x00010001,0
HKR,,"SerialRelinquishPowerPolicy",0x00010001,1

;[SerialEventLogInst]
;AddReg         = SerialEventLogAddReg

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

; -------------- Serial Port Driver install sections
;[SerialServiceInst]
;DisplayName    = %Serial.SVCDESC%
;ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
;StartType      = 3               ; SERVICE_DEMAND_START
;ErrorControl   = 0               ; SERVICE_ERROR_IGNORE
;ServiceBinary  = %12%\serial.sys
;LoadOrderGroup = Extended Base


;
; Source file information
;
[SourceDisksFiles]
; Files for disk Touchkit Touchscreen Controller. Installation Disk #1 (Mouse)
egxpen.sys = 1,,
;serial.sys = 1,,

[Strings]
eGalax="eGalax, Inc."
DiskId1 = "eGalax Touch Digitizer. Driver Installation Disk(TouchScreen)"
SERTOUCH_PNP="eGalax Touch Digitizer"
SERIAL_PNP="eGalax Serial Touch Digitizer"
PS2_PNP="eGalax PS2 Touch Digitizer"
SERIAL_LEGACY="eGalax Serial Touch Digitizer"
LEGACY_SERIAL="eGalax Serial Touch Digitizer"
egxPen.SVCDESC="eGalax Touch HID Driver"
Serial.SVCDESC="Serial Port Driver"

