;---------------------------------------------------------------------
; Apfiltr.inf
;
; Alps Pointing-device Driver for Windows 2000/XP Installation
; Copyright(C) 1999-2005 Alps Electric Co., Ltd.
;---------------------------------------------------------------------

[Version]
Signature	= "$Windows NT$"
Provider	= %Provider%
Class		= Mouse
ClassGUID	= {4D36E96F-E325-11CE-BFC1-08002BE10318}
CatalogFile	= Apfiltr.cat
DriverVer	= 01/08/2006, 5.5.1301.4
;LayoutFile	= layout.inf


[DestinationDirs]
DefaultDestDir		= 12			; DIRID_DRIVERS
MouFilter_CopyFilesDll	= 11			; System32
MouFilter_CopyFilesHome	= 16422, %Apoint_Path%	; \Program Files\Apoint


; Manufacturer Sections
; ---------------------------------------------------------
[Manufacturer]
%Mfg.Desc%		= CompanyMfg
 
[CompanyMfg]
%Apoint.DeviceDesc%	= MouFilter_Inst,*PNP0F13,*PNP0F03,*PNP0F0E,*PNP0F0b,*PNP0F12

; -------------- PS/2 Mouse
[MouFilter_Inst]
Include		= msmouse.inf
Needs		= PS2_Inst
CopyFiles	= MouFilter_CopyFiles, MouFilter_CopyFilesDll, MouFilter_CopyFilesHome
AddReg		= MouFilter_Inst.AddReg

[MouFilter_Inst.Services]
AddService	= ApfiltrService,, filter_Service_Inst	; *, (Filter Driver)
Include		= msmouse.inf
Needs		= PS2_Inst.Services

[MouFilter_Inst.HW]
AddReg		= MouFilter_Inst.HW.AddReg, MouFilter_Inst.AddReg
Include		= msmouse.inf
Needs		= PS2_Inst.HW


;--------------- Files Copy Section
[MouFilter_CopyFiles]
Apfiltr.sys				; *

[MouFilter_CopyFilesDll]
Vxdif.dll

[MouFilter_CopyFilesHome]
Apoint.exe
Ezcapt.exe
Logo.bmp
Gesture.bmp
ApntEx.exe
Apoint.dll
EzLaunch.dll
Elprop.dll
EzAuto.dll
ApointSP.pop
ApointJP.pop
ApointGR.pop
ApointFR.pop
ApointUS.pop
ApointCT.pop
ApointCS.pop
ApointIT.pop
ApointKR.pop
Uninstap.exe

[MouFilter_Inst.HW.AddReg]                                        
HKR,,"UpperFilters",0x00010000,"ApfiltrService"


[MouFilter_Inst.AddReg]                            ; Add registry entries here
HKCR,CLSID\{7F5B8FA4-BEEC-11cf-9BD7-B76592786C03}\InProcServer32,,0,%16422%\%Apoint_Path%\Apoint.dll
HKCR,CLSID\{7F5B8FA4-BEEC-11cf-9BD7-B76592786C03}\InProcServer32,ThreadingModel,0,Apartment
HKLM,"Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\Alps 1Apoint Page",,0,{7F5B8FA4-BEEC-11cf-9BD7-B76592786C03}

;// Auto Run Apoint.exe
HKLM,"Software\Microsoft\Windows\CurrentVersion\Run",	"Apoint",0,%16422%\%Apoint_Path%\Apoint.exe

;// Set HKLM\Software\Alps\Apoint
HKLM,%SetApoint%,	"HomeDirectory",		0x00020000, "%16422%\%Apoint_Path%"
HKLM,%SetApoint%,	"ProductVer",			0x00020000, %ProductVersion%
HKLM,%SetApoint%,	"EnableMultiUser",		0x00010001, 0x00000002
HKLM,%SetApoint%,	"SupportLanguage",		0x00010001, 0x000001ff
HKLM,%SetApoint%,	"SupportFunctionTab",		0x00010001, 0x000001BB	;When ALPS-Motion tab display sets 0x1BF
HKLM,%SetApoint%,	"Install_Flag",			0x00010001, 0x00000001
HKLM,%SetApoint%,	"Support_USB_Button_Swap",	0x00010001, 0x00000001
HKLM,%SetApoint%,	"Lang_CH_Singapore",		0x00010001, 0x00000002
HKLM,%SetApoint%,	"Lang_CH_Macau",		0x00010001, 0x00000003
HKLM,%SetApoint%,	"Lang_CH_HongKong",		0x00010001, 0x00000003
HKLM,%SetApoint%,	"TouchPadDisableFunc",		0x00010001, 0x00000001
HKLM,%SetApoint%,	"TouchPadOnOffLocked",		0x00010001, 0x00000000
HKLM,%SetApoint%,	"TouchPadOnOffContext",		0x00010001, 0x00000000
HKLM,%SetApoint%,	"OEM_ID",			0x00010001, 0x0000000D

;// Set HKLM\Software\Alps\Apoint\Button
HKLM,%SetSelectDev%,"SelectDevice",		0x00010001, 0x0000003F

;// Set HKLM\Software\Alps\Apoint\Button
HKLM,%SetButton%,	"ButtonFunction",	0x00010001, 0xCD5485EF
HKLM,%SetButton%,	"DoubleClkSpeed",	0x00010001, 0x00000008
HKLM,%SetButton%,	"EnableWheel",		0x00010001, 0x00000003
HKLM,%SetButton%,	"USB_Button_Swap",	0x00010001, 0x00000000
HKLM,%SetButton%,	"ShowScroll",		0x00010001, 0x00000001

;// Set HKLM\Software\Alps\Apoint\Motion
;HKLM,%SetMotion%,	"HorizSensitivity",	0x00010001, 0x00000015
;HKLM,%SetMotion%,	"VertSensitivity",	0x00010001, 0x00000015
;HKLM,%SetMotion%,	"Acceleration",		0x00010001, 0x00000002
;HKLM,%SetMotion%,	"SnapTo",		0x00010001, 0x00000000
;HKLM,%SetMotion%,	"TrailEnable",		0x00010001, 0x00000000
;HKLM,%SetMotion%,	"MouseTrails",		0x00010001, 0x00000003

;// Set HKLM\Software\Alps\Apoint\Orientation
HKLM,%SetOrientation%,	"Rotation",		0x00010001, 0x00000000

;// Set HKLM\Software\Alps\Apoint\Tapping
HKLM,%SetTapping%,	"Tapping",		0x00010001, 0x00000001
HKLM,%SetTapping%,	"TapSettings",		0x00010001, 0x00000009
HKLM,%SetTapping%,	"TapTyping",		0x00010001, 0x00000000
HKLM,%SetTapping%,	"TapTypingDelay",	0x00010001, 0x00000002
HKLM,%SetTapping%,	"AutoRelease",		0x00010001, 0x00000001
HKLM,%SetTapping%,	"TypingDetect",		0x00010001, 0x00000001

;// Set HKLM\Software\Alps\Apoint\Gesture
HKLM,%SetGesture%,	"EasyX",		0x00010001, 0x00000000
HKLM,%SetGesture%,	"EnableFB",		0x00010001, 0x00000001
HKLM,%SetGesture%,	"EnableWheel",		0x00010001, 0x00000003
HKLM,%SetGesture%,	"LockAreaSet",		0x00010001, 0x00000001
HKLM,%SetGesture%,	"CornerTapOffsetX",	0x00010001, 0x00000096
HKLM,%SetGesture%,	"CornerTapOffsetY",	0x00010001, 0x00000096
HKLM,%SetGesture%,	"PadScrollLines",	0x00000000, 3
HKLM,%SetGesture%,	"GPScrollCancelEnable",	0x00010001,0x00000001
HKLM,%SetGesture%,	"GPScrollCancelFlag",	0x00010001,0x00000003

; Set HKLM\Software\Alps\Stick
HKLM,%SetStick%,	"SPTapping",		0x00010001, 0x00000001
HKLM,%SetStick%,	"SPTapSettings",	0x00010001, 0x00000001
HKLM,%SetStick%,	"SPTapTyping",		0x00010001, 0x00000000
HKLM,%SetStick%,	"SPTapTypingDelay",	0x00010001, 0x00000002
HKLM,%SetStick%,	"SPFunction",		0x00010001, 0x00548500
HKLM,%SetStick%,	"SPScroll",		0x00010001, 0x00000002
HKLM,%SetStick%,	"SPScrollLines",	0x00000000, 3

; Set HKLM\Software\Alps\Other
HKLM,%SetOther%,	"TrayIcon",		0x00020000, TRUE
HKLM,%SetOther%,	"UseSound",		0x00010001, 0x00000000
HKLM,%SetOther%,	"UseIMECap",		0x00010001, 0x00000000
HKLM,%SetOther%,	"TrayIconAnimate",	0x00010001, 0x012E0003
HKLM,%SetOther%,	"TrayIconDefTouchImage",0x00010001, 0x00000001
HKLM,%SetOther%,	"ShowTPdisable",	0x00010001, 0x00000000

; Set HKLM\Software\Alps\Easy Launcher
HKLM,%SetLauncher%,	"ComIndex",		0x00010001, 0x00000004
HKLM,%SetLauncher%,	"Option",		0x00010001, 0x00000126
HKLM,%SetLauncher%,	"C01",			0x00020000, "MINIMIZE"
HKLM,%SetLauncher%,	"C02",			0x00020000, "CLOSE"
HKLM,%SetLauncher%,	"C03",			0x00020000, "START"
HKLM,%SetLauncher%,	"C04",			0x00020000, "EXIT"
HKLM,%SetLauncher%,	"I01",			0x00020000, "MINIMIZE"
HKLM,%SetLauncher%,	"I02",			0x00020000, "CLOSE"
HKLM,%SetLauncher%,	"I03",			0x00020000, "START"
HKLM,%SetLauncher%,	"I04",			0x00020000, "EXIT"
HKLM,%SetLauncher%,	"T01",			0x00020000, ""
HKLM,%SetLauncher%,	"T02",			0x00020000, ""
HKLM,%SetLauncher%,	"T03",			0x00020000, ""
HKLM,%SetLauncher%,	"T04",			0x00020000, ""

; Set HKLM\Software\Alps\Apoint\EasyCapture
HKLM,%SetCapture%,	"PenColor",		0x00010001, 0x00000000
HKLM,%SetCapture%,	"PenWidth",		0x00010001, 0x00000002
HKLM,%SetCapture%,	"CanvasWidth",		0x00010001, 0x000000B4
HKLM,%SetCapture%,	"CanvasHeight",		0x00010001, 0x00000078
HKLM,%SetCapture%,	"PastCmd",		0x00010001, 0x00000000
HKLM,%SetCapture%,	"HoldImage",		0x00010001, 0x00000000

; Set HKLM\Software\Alps\Exceptions
HKLM,%SetExceptions%,	"PP97FrameClass",		0x00020000, ""
HKLM,%SetExceptions%,	"PP9FrameClass",		0x00020000, ""
HKLM,%SetExceptions%,	"PP10FrameClass",		0x00020000, ""
HKLM,%SetExceptions%,	"OpusApp",			0x00020000, ""
HKLM,%SetExceptions%,	"XLMAIN",			0x00020000, ""
HKLM,%SetExceptions%,	"IEFrame",			0x00020000, ""
HKLM,%SetExceptions%,	"MSPhotoEditor32MainClass",	0x00020000, ""
HKLM,%SetExceptions%,	"CabinetWClass",		0x00020000, ""
HKLM,%SetExceptions%,	"ShImgVW:CPreviewWnd",		0x00020000, ""

; Sound (EventLabels)
HKCU,"AppEvents\EventLabels\Apoint_Tapping",,0,"Tapping"
HKCU,"AppEvents\EventLabels\Apoint_Typing",,0,"Typing (with Touch Pad tap enabled)"
HKCU,"AppEvents\EventLabels\Apoint_EzLaunch",,0,"Easy Launcher On"

; Sound (Apps)
HKCU,"AppEvents\Schemes\Apps\Apoint",,0,"Alps Pointing Device Driver"
HKCU,"AppEvents\Schemes\Apps\Apoint\Apoint_Tapping\.current",,0,
HKCU,"AppEvents\Schemes\Apps\Apoint\Apoint_Typing\.current",,0,
HKCU,"AppEvents\Schemes\Apps\Apoint\Apoint_EzLaunch\.current",,0,

; Set Parameters (Drivers)
HKR,,"DoubleClkSpeed",			0x00010001, 0x00000008
HKR,,"Tapping",				0x00010001, 0x00000001
HKR,,"TapSettings",			0x00010001, 0x00000009
HKR,,"Controls",			0x00010001, 0x00000003
HKR,,"Swap",				0x00010001, 0x00000000
HKR,,"M_Assign",			0x00010001, 0x00000003
HKR,,"Acceleration",			0x00010001, 0x00000004
HKR,,"HorizSensitivity",		0x00010001, 0x00000020
HKR,,"VertSensitivity",			0x00010001, 0x00000020
HKR,,"Rotation",			0x00010001, 0x00000000
HKR,,"EasyScroll",			0x00010001, 0x7A980014
HKR,,"AutoTime",			0x00010001, 0x000001F4
HKR,,"LockAreaSet",			0x00010001, 0x00000001
HKR,,"XOffset",				0x00010001, 0x00000080
HKR,,"YOffset",				0x00010001, 0x00000080
HKR,,"XResolution",			0x00010001, 0x00000420
HKR,,"YResolution",			0x00010001, 0x00000320
HKR,,"EasyX",				0x00010001, 0x00000000
HKR,,"CornerTapOffsetX",		0x00010001, 0x00000096
HKR,,"CornerTapOffsetY",		0x00010001, 0x00000096
HKR,,"EnableWheel",			0x00010001, 0x00000003
HKR,,"RightBtnEmulation",		0x00010001, 0x00000000
HKR,,"ButtonFunction",			0x00010001, 0xCD5485EF
HKR,,"MouseSynchIn100nsForMultiDevice",	0x00010001, 0x00000000
HKR,,"LR_Timelag",			0x00010001, 0x0000000A
HKR,,"TapTyping",			0x00010001, 0x00000000
HKR,,"TapTypingDelay",			0x00010001, 0x00000002
HKR,,"AutoRelease",			0x00010001, 0x00000001
HKR,,"EnableFB",			0x00010001, 0x00000001
HKR,,"SelectDevice",			0x00010001, 0x0000003F
HKR,,"SPTapping",			0x00010001, 0x00000001
HKR,,"SPTapSettings",			0x00010001, 0x00000001
HKR,,"SPFunction",			0x00010001, 0x00548500
HKR,,"SPScroll",			0x00010001, 0x00000002
HKR,,"ScrollCancelThreshold_X",		0x00010001, 0x00000005
HKR,,"ScrollCancelThreshold_Y",		0x00010001, 0x00000005
HKR,,"PM_Resume",			0x00010001, 0x00000000
HKR,,"UseIMECap",			0x00010001, 0x00000000
HKR,,"DragLock_TR_Emulation",		0x00010001, 0x00000001
HKR,,"ScrollLock_Enable",		0x00010001, 0x00000001
HKR,,"ScrollLock_Period",		0x00010001, 0x00000064
HKR,,"SetToBTN3_DEV",			0x00010001, 0x00000001		; Ceter Button=1/Both Button=0
HKR,,"EnableTouchSensitivity",		0x00010001, 0x00000001
HKR,,"ZThresholdMode",			0x00010001, 0x00000003		; for TouchSensitivity
HKR,,"EnableRawMode",			0x00010001, 0x00000001		; W=ON, P=OFF
HKR,,"SP_ReviseBallisticCurve_Enable",	0x00010001, 0x00000001
HKR,,"SP_ReviseBallisticCurve_Pram_1",	0x00010001, 0x070000C7
HKR,,"SP_ReviseBallisticCurve_Pram_2",	0x00010001, 0x13000019
HKR,,"SP_ReviseBallisticCurve_Pram_3",	0x00010001, 0xFF000019
HKR,,"SP_BrakeCursor_Enable",		0x00010001, 0x00000001
HKR,,"SP_BrakeCursor_DeltaTime",	0x00010001, 0x00000020
HKR,,"SP_BrakeCursor_Buffer_N",		0x00010001, 0x00000003
HKR,,"SP_BrakeCursor_Threshold_Min",	0x00010001, 0x00000003
HKR,,"SP_BrakeCursor_Threshold_Max",	0x00010001, 0x00000020
HKR,,"SP_BrakeCursor_Percent",		0x00010001, 0x00000019
HKR,,"SP_NoSpeedAccThreshold",		0x00010001, 0x00000001
HKR,,"DataModeSwitchTime",		0x00010001, 0x00000064
HKR,,"WatchDog_Flag",			0x00010001, 0x00000001
;HKR,,"KBCSyncSolution",		0x00010001, 0x00000003	; Synchronize=ON, Simultaneous=1, EventName="\Device\8042PRTCTRL"
HKR,,"SeparateSPButton",		0x00010001, 0x00000001
HKR,,"MouseResendExpired",		0x00010001, 0x00000001
HKR,,"ResendCmdSet",			0x00010001, 0x00000001
HKR,,"OfficeScrollSrc",			0x00010001, 0x00000001

;; Set Standard Mouse Settings ---- 
HKCU,%SetStdMouse%,	"DoubleClickSpeed",	0x00000000,	500
HKCU,%SetStdMouse%,	"SwapMouseButtons",	0x00000000,	0

[filter_Service_Inst]
DisplayName	= %Filter.SvcDesc%	; *
ServiceType	= 1			; SERVICE_KERNEL_DRIVER
StartType	= 3			; SERVICE_DEMAND_START
ErrorControl	= 0			; SERVICE_ERROR_IGNORE
LoadOrderGroup	= Pointer Port
ServiceBinary	= %12%\Apfiltr.sys	; filter.sys

;
; Source file information
;
[SourceDisksNames]
1 = %DiskID%,,,

[SourceDisksFiles]
Apfiltr.sys 	= 1,,
Vxdif.dll	= 1,,
Apoint.exe	= 1,,
Logo.bmp	= 1,,
ApntEx.exe	= 1,,
Apoint.dll	= 1,,
EzAuto.dll	= 1,,
Ezcapt.exe	= 1,,
Gesture.bmp	= 1,,
EzLaunch.dll	= 1,,
Elprop.dll	= 1,,
ApointSP.pop	= 1,,
ApointJP.pop	= 1,,
ApointGR.pop	= 1,,
ApointFR.pop	= 1,,
ApointUS.pop	= 1,,
ApointCT.pop	= 1,,
ApointCS.pop	= 1,,
ApointIT.pop	= 1,,
ApointKR.pop	= 1,,
Uninstap.exe	= 1,,


; ------------- Localizable strings ------------------------
[Strings]

Provider		= "Alps"				; Provider
Filter.SvcDesc		= "Alps Pointing-device Filter Driver"	; *
Mfg.Desc		= "Alps Electric"			; Manufacture
Apoint.DeviceDesc 	= "Alps Pointing-device"		; Device Name

; Alps internals
Apoint_Path		= "Apoint2K"
DiskID			= "Alps Pointing-device Driver for Windows 2000/XP Setup Disk"

; Registry Strings
SetApoint		= "Software\Alps\Apoint"
SetSelectDev		= "Software\Alps\Apoint\SelectDevice"
SetLauncher		= "Software\Alps\Apoint\EasyLauncher"
SetCapture		= "Software\Alps\Apoint\EasyCapture"
SetExceptions		= "Software\Alps\Apoint\Exceptions"
SetButton		= "Software\Alps\Apoint\Button"
SetMotion		= "Software\Alps\Apoint\Motion"
SetOrientation		= "Software\Alps\Apoint\Orientation"
SetTapping		= "Software\Alps\Apoint\Tapping"
SetGesture		= "Software\Alps\Apoint\Gesture"
SetStick		= "Software\Alps\Apoint\Stick"
SetOther		= "Software\Alps\Apoint\Other"
SetStdMouse		= "Control Panel\Mouse"
ProductVersion		= "Version 5.5.1301.4"
