; GzTpUsb.inf
; Installation file (.inf) for the GUNZE Touch Panel device.
; (c) Copyright 2009 GUNZE Limited

[Version]
Signature="$Windows NT$"
Provider=%GUNZE%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=GzTpUsb.cat
DriverVer=08/08/2009,2.6.0.0

[DestinationDirs]
DefaultDestDir   = 12

; Driver information
[Manufacturer]
%GUNZE%   = GUNZE.Mfg

[GUNZE.Mfg]
%GUNZE.DeviceDesc0% = GzTpUsb, HID\VID_0637&PID_0004

; General installation section
[GzTpUsb]
; perform port related actions from msmouse.inf
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT
AddReg=GzTpUsb.AddReg
; Copy the driver over
CopyFiles=GzTpUsb.CopyFiles

[GzTpUsb.AddReg]
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, TouchMode, 0x00010001, 0
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Liftoff, 0x00010001, 0
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Max XPixels, 0x00010001, 1024
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Max YPixels, 0x00010001, 768
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, CalTimeout, 0x00010001, 10
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, CalNum, 0x00010001, 4
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4a4, 0x00010001, 0x00001fa3
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4b4, 0x00010001, 0xfffffea3
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4c4, 0x00010001, 0x00000066
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4d4, 0x00010001, 0x00028000
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4e4, 0x00010001, 0x0000006f
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4f4, 0x00010001, 0x00001934
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4g4, 0x00010001, 0x0000008e
HKLM, System\\CurrentControlSet\\Services\\GzTpParam\\1, Cal4h4, 0x00010001, 0xfff6c000

; File sections
[GzTpUsb.CopyFiles]
GzTpUsb.sys

; Service Installation
[GzTpUsb.Services]
AddService = GzTpUsb,  , GzTpUsb_Service_Inst, GzTpUsb_EventLog_Inst
; Install the port driver and mouclass from msmouse.inf
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT.Services

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

[GzTpUsb_EventLog_Inst]
AddReg = GzTpUsb_EventLog_AddReg

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

[GzTpUsb.HW]
; Add the device upper filter
AddReg = GzTpUsb.HW.AddReg
; run the directives need by the port driver
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT.HW

[GzTpUsb.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"GzTpUsb"

; Source file information
[SourceDisksNames.x86]
1 = %DiskId1%,,,""

[SourceDisksFiles]
; Files for disk GUNZE Limited Installation Disk #1 (Mouse)
GzTpUsb.sys = 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
GUNZE.DeviceDesc0 = "GUNZE USB Touch Panel"
DiskId1 = "GUNZE Limited Installation Disk #1 (Mouse)"
GUNZE = "GUNZE Limited"

