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

[Version]
Signature	= "$Windows NT$"
Provider	= %Provider%
Class		= Mouse
ClassGUID	= {4D36E96F-E325-11CE-BFC1-08002BE10318}
CatalogFile	= Apfiltr.cat
DriverVer	= 03/21/2008, 7.0.2015.103
DriverPackageDisplayName	= "Alps Pointing-device"

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

; Manufacturer Sections
; ---------------------------------------------------------
[Manufacturer]
%Mfg.Desc%		= CompanyMfg,NT.6,NTamd64

[CompanyMfg.NTamd64] 	; for 64Bit OS (not supporting)

; Not supporting Windows 2000,XP,64-bit OS

[CompanyMfg.NT.6]    ; for Vista 32-bit
%Apoint.DeviceDesc%	= MouFilter_InstVista.NT,*AUI1101,ACPI\AUI1101,*PNP0F13,ACPI\PNP0F13

[CompanyMfg]		; for 2000, XP
%Apoint.DeviceDesc%	= MouFilter_Inst2KXP.NT,*AUI1101,ACPI\AUI1101,*PNP0F13,ACPI\PNP0F13

; Install Sections for PS/2 mouse (for Vista)
; ---------------------------------------------------------

[MouFilter_InstVista.NT]
Include		= msmouse.inf
Needs		= PS2_Inst
CopyFiles	= MouFilter_CopyFiles, MouFilter_CopyFilesDll,MouFilter_CopyFilesHome_VistaHelp
AddReg		= MouFilter_Inst.AddReg,MouFilter_Inst_Vista.AddReg

[MouFilter_InstVista.NT.Services]
AddService	= ApfiltrService,, filter_Service_Inst
Include		= msmouse.inf
Needs		= PS2_Inst.Services

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

[MouFilter_InstVista.NT.Wdf]
KmdfService	= ApfiltrService, MouFilter_Inst_wdfsect

[MouFilter_InstVista.NT.CoInstallers]
AddReg		= MouFilter_CoInstaller_AddReg

; Install Sections for PS/2 mouse (for 2K/XP)
; ---------------------------------------------------------
[MouFilter_Inst2KXP.NT]
Include		= msmouse.inf
Needs		= PS2_Inst
CopyFiles	= MouFilter_CopyFiles, MouFilter_CopyFilesDll,MouFilter_CopyFilesHome_2KXPHelp
AddReg		= MouFilter_Inst.AddReg,MouFilter_Inst_2KXP.AddReg

[MouFilter_Inst2KXP.NT.Services]
AddService	= ApfiltrService,, filter_Service_Inst
Include		= msmouse.inf
Needs		= PS2_Inst.Services

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

[MouFilter_Inst2KXP.NT.Wdf]
KmdfService	= ApfiltrService, MouFilter_Inst_wdfsect

[MouFilter_Inst2KXP.NT.CoInstallers]
AddReg		= MouFilter_CoInstaller_AddReg

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

[MouFilter_CopyFilesDll]
Vxdif.dll

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

[MouFilter_Inst.AddReg]
HKCR,CLSID\%APOINT_GUID%\InProcServer32,,				0x00000000, %16422%\%Apoint_Path%\Apoint.dll
HKCR,CLSID\%APOINT_GUID%\InProcServer32,ThreadingModel,	0x00000000, Apartment
HKLM,%SHELLPROP%\Alps 1Apoint Page,,					0x00000000, %APOINT_GUID%

HKLM,%UNINST%,		"UninstallString",		0x00000000, %16422%\%Apoint_Path%\Uninstap.exe ADDREMOVE
HKLM,%UNINST%,		"DisplayName",			0x00000000, "ALPS Touch Pad Driver"
HKLM,%UNINST%,		"DisplayIcon",			0x00000000, %16422%\%Apoint_Path%\Apoint.exe
HKLM,%UNINST%,		"Publisher",			0x00000000, %Mfg.Desc%

; Auto Run Apoint.exe
HKLM,%RUN%,			"Apoint",				0x00000000, %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,	0x0ffdffff
HKLM,%SetApoint%,	"SupportFunctionTab",		0x00010001,	0x000003BB
HKLM,%SetApoint%,	"Install_Flag",				0x00010001,	0x00000001
;HKLM,%SetApoint%,	"TouchSensitivity",			0x00010001,	0x00000009
;HKLM,%SetApoint%,	"EnableTouchSensitivity",	0x00010001,	0x00000001
;HKLM,%SetApoint%,	"EnableAreaSwitch",			0x00010001,	0x00000001
HKLM,%SetApoint%,	"Support_USB_Button_Swap",	0x00010001,	0x00000001
HKLM,%SetApoint%,	"SeparateResourceFlag",		0x00010001,	0x00000001
HKLM,%SetApoint%,	"UseEzWheelEx",				0x00010001,	0x00000001
HKLM,%SetApoint%,	"ScrMethod",				0x00010001,	0x00000000
HKLM,%SetApoint%,	"Lang_CH_HongKong",		0x00010001,	0x00000003
HKLM,%SetApoint%,	"ApMsgFwd_Flags", 		0x00010001,0x000000FF
HKLM,%SetApoint%,		"HidFindLaunchSW",	0x00010001, 0x00000001	; TouchPad at USB Mouse connexted
HKLM,%SetApoint%,	"TouchPadOnOffLocked",		0x00010001, 0x00000001
HKLM,%SetApoint%,	"TouchPadOnOffContext",		0x00010001, 0x00000000

; 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
;HKLM,%SetButton%,	"Scroll_HV",			0x00010001, 0x00000000

; 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, 0x00000002

; Set HKLM\Software\Alps\Apoint\Gesture
HKLM,%SetGesture%,	"EasyX",				0x00010001, 0x00000000
HKLM,%SetGesture%,	"EnableFB",				0x00010001, 0x00000000
HKLM,%SetGesture%,	"EnableWheel",			0x00010001, 0x00000003
HKLM,%SetGesture%,	"LockAreaSet",			0x00010001, 0x00000000
HKLM,%SetGesture%,	"CornerTapOffsetX",		0x00010001, 0x00000050
HKLM,%SetGesture%,	"CornerTapOffsetY",		0x00010001, 0x0000003C
HKLM,%SetGesture%,	"PadScrollLines",		0,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",		0,3
HKLM,%SetStick%,	"SpTypingSound",		0x00000000, ""

; Set HKLM\Software\Alps\Other
HKLM,%SetOther%,	"TrayIcon",				0x00020000,	TRUE
HKLM,%SetOther%,	"UseSound",				0x00010001,	0x00000000
HKLM,%SetOther%,	"UseIMECap",			0x00010001,	0x00000000

; Set HKLM\Software\Alps\USBMouse
HKLM,%SetUSBMouse%,		"USBMouse",						0x00010001, 0x00000000

; Set HKLM\Software\Alps\USBMouse\Exceptions
HKLM,%SetUSBMouseExcept%, "USB_0",						0x00010001, 0x056A1000
HKLM,%SetUSBMouseExcept%, "USB_1",						0x00010001, 0x056A1008

; 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%,	"PP11FrameClass",			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,	""
HKLM,%SetExceptions%,	"WinCalWnd",				0x00020000, ""

; Set HKLM\Software\Alps\LimitOffofScrollbar
HKLM,%SetLimitOffofScrollbar%,	"XLMAIN",			0x00010001,0x00000001

; 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,0x00000001
HKR,,"HorizSensitivity",		0x00010001,0x0000002C
HKR,,"VertSensitivity",			0x00010001,0x00000023
HKR,,"Rotation",				0x00010001,0x00000000
HKR,,"EasyScroll",				0x00010001,0x7A980014
HKR,,"AutoTime",				0x00010001,0x000001F4
HKR,,"LockAreaSet",				0x00010001,0x00000000
HKR,,"XOffset",					0x00010001,0x00000080
HKR,,"YOffset",					0x00010001,0x00000080
HKR,,"XResolution",				0x00010001,0x00000420
HKR,,"YResolution",				0x00010001,0x00000320
HKR,,"EasyX",					0x00010001,0x00008000
HKR,,"CornerTapOffsetX",		0x00010001,0x00000050
HKR,,"CornerTapOffsetY",		0x00010001,0x0000003C
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,0x00000000
HKR,,"EnableFB_Type",					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
;HKR,,"EnableAreaSwitch",				0x00010001,0x00000001
HKR,,"EnableTouchSensitivity",			0x00010001,0x00000001
;HKR,,"TouchSensitivity",				0x00010001,0x0000000B
HKR,,"ZThresholdMode",					0x00010001,0x00000003
HKR,,"EnableRawMode",					0x00010001,0x00000003
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,0x00000006
HKR,,"SeparateSPButton",				0x00010001,0x00000001
HKR,,"ResendCmdSet",					0x00010001,0x00000001
HKR,,"GP_Raw_CountToLeave",				0x00010001,0x00000001
HKR,,"ZThresholdConversionBase",		0x00010001,0x0000001C
HKR,,"ZThresholdConversionParam",		0x00010001,0x00000006
HKR,,"VariableAccTable_Enable",			0x00010001,0x00000001
HKR,,"VariableAccTable_Index",			0x00010001,0x00000001
HKR,,"PegasusMonitorModeFlags",			0x00010001,0x00000018
HKR,,"Enable_ForceCompensation",			0x00010001,0x00000001 ;
HKR,,"MuShortening",				0x00010001,0x00000001
HKR,,"DisableKbdLineDuringInit",		0x00010001, 0x00000001
HKR,,"TPOnOffStatus",					0x00010001, 0x00000001
HKR,,"TPOnOffStatus_EnableAtPowerOn",	0x00010001, 0x00000001
HKR,,"MouseResendExpired",				0x00010001, 0x00000001

HKLM,%SetParamsDef%,EnableWheel,		0x00010001, 0x00000003
HKLM,%SetParamsDef%,EnableFB,			0x00010001, 0x00000000
HKLM,%SetParamsDef%,LockAreaSet,		0x00010001, 0x00000000
HKLM,%SetParamsDef%,CornerTapOffsetX,		0x00010001,0x00000050
HKLM,%SetParamsDef%,CornerTapOffsetY,		0x00010001,0x0000003C
HKLM,%SetParamsMin%,CornerTapOffsetX,		0x00010001,0x00000032
HKLM,%SetParamsMin%,CornerTapOffsetY,		0x00010001,0x00000032
HKLM,%SetParamsMax%,CornerTapOffsetX,		0x00010001,0x00000096
HKLM,%SetParamsMax%,CornerTapOffsetY,		0x00010001,0x00000096


[MouFilter_CoInstaller_AddReg]
HKLM,"System\CurrentControlSet\Control\SafeBoot\Minimal\Wdf01000.sys",,,"Driver"
HKLM,"System\CurrentControlSet\Control\SafeBoot\Network\Wdf01000.sys",,,"Driver"

;-------------- Service information installation

[filter_Service_Inst]
DisplayName		= %Filter.SvcDesc%
ServiceType		= 1
StartType		= 3
ErrorControl	= 0
LoadOrderGroup	= Pointer Port
ServiceBinary	= %12%\Apfiltr.sys

[MouFilter_Inst_wdfsect]
KmdfLibraryVersion = 1.5

;-------------- Source file information

[SourceDisksNames]
1 = %DiskID%,,,

[SourceDisksFiles]
Apfiltr.sys 	= 1,,
Vxdif.dll		= 1,,

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

Provider			= "Alps"	
Filter.SvcDesc		= "Alps Pointing-device Filter Driver"
Mfg.Desc			= "Alps Electric"
Apoint.DeviceDesc 	= "Alps Pointing-device"

; Alps internals
Apoint_Path			= "Apoint2K"
DiskID				= "Alps Pointing-device Driver for Windows 2000/XP/Vista 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"
SetLimitOffofScrollBar	= "Software\Alps\Apoint\LimitOffofScrollbar"
SetParamsDef		= "Software\Alps\Apoint\Params\Default"
SetButton			= "Software\Alps\Apoint\Button"
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"
SetLang				= "Software\Alps\Apoint\Language"
SetParamsMin		= "Software\Alps\Apoint\Params\Min"
SetParamsMax		= "Software\Alps\Apoint\Params\Max"
SetUSBMouse			= "Software\Alps\Apoint\USBMouse"
SetUSBMouseExcept	= "Software\Alps\Apoint\USBMouse\Exceptions"

APOINT_GUID			= "{7F5B8FA4-BEEC-11cf-9BD7-B76592786C03}"
SHELLPROP			= "Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers"
RUN					= "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
UNINST				= "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9F72EF8B-AEC9-4CA5-B483-143980AFD6FD}"

ProductVersion		= "Version 7.0.2015.103"
