;=======================================================================================================================
;
;  MASUsb.inf
;
;  Version 2.0.0.0
;
;  INF file for MASTouch USB Touchscreen.
;
;  Copyright (c) 2003-2007 MASTouch Electrics CO., Ltd.
;
;=======================================================================================================================

[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%BeeTouch%
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
CatalogFile.NTAMD64=MASUsb.cat
DriverVer=04/27/2012,9.9.9.9

[SourceDisksNames]
21="MASTouch USB Touchscreen Driver Disk",,

[SourceDisksFiles]
MASUsb.sys      = 21,,

[DestinationDirs]
DefaultDestDir              = 12                    	; LDID_IOS

BeeUsbDrvCopy               = 10,System32\drivers   	; LDID_DRIVERS
BeeUsbDrvCopy.NT            = 10,System32\drivers   	; LDID_DRIVERS
BeeNTDllCopy.NT             = 10,System32              	; Windows\System32

;======================================================================================
;
;   Win98 Mouse class install sections
;
;======================================================================================

[ClassInstall]
Addreg=Class.AddReg

[Class.AddReg]
HKR,,,,%ClassName98%
HKR,,Installer,,"SetupX.Dll, Mouse_ClassInstaller"
HKR,,Icon,,"-1"

;======================================================================================
;
;   WinNT mouse class install sections
;
;======================================================================================

[ClassInstall32.NT]
AddReg=Class32.AddReg

[Class32.AddReg]
HKR,,,,%ClassNameNT%
HKR,,Icon,,"-2"
HKR,,Installer32,,"SysSetup.Dll,MouseClassInstaller"
HKR,,NoInstallClass,,"1"
HKR,,TroubleShooter-0,,"tshoot.chm,hdw_mouse.htm"

;======================================================================================
;
;   					Manufacturer Section
;
;======================================================================================

[Manufacturer]
%BeeMfg%  = BeeMfg, NTamd64               ;  MASTouch Electrics CO., Ltd.

[BeeMfg.NTamd64]
%BeeUsb.DeviceDesc0%=BeeUsb.Install, USB\Vid_0df9&Pid_0001

;======================================================================================
;
;   			  Windows 98 MASTouch USB Touchscreen Driver Install Sections
;
;======================================================================================
[BeeUsb.Install]
CopyFiles=BeeUsbDrvCopy
AddReg=BeeUsb.AddReg,BeeUsb_Absolute.AddReg
PerUserInstall = msmouse.pui

[BeeUsbDrvCopy]
hidclass.Sys
hidparse.Sys
hidusb.Sys
MASUsb.sys

[BeeUsb.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"MASUsb.sys,HidUsb.Sys"

[BeeUsb_Absolute.AddReg]
HKLM,%BeeUninstallRegPath%,"DisplayName",,%BeeUsb.SvcDesc%
HKLM,%BeeUninstallRegPath%,"UninstallString",,"%10%\%BeeUsbSetupAppDir%\Install.exe /u"
HKLM,%BeeRootRegPath98%,BeepMode,0x10001,2
HKLM,%BeeRootRegPath98%,BeepFreq,0x10001,0x03e8
HKLM,%BeeRootRegPath98%,BeepTime,0x10001,0x0020
HKLM,%BeeRootRegPath98%,MouseMode,0x10001,0x03
HKLM,%BeeRootRegPath98%,DragDelay,0x10001,0
HKLM,%BeeRootRegPath98%,DblClickRegion,%REG_DWORD%,10
HKLM,%BeeRootRegPath98%,ButtonMode,0x10001, 0
HKLM,%BeeRootRegPath98%,TopLeftOffsetX,0x10001, 0
HKLM,%BeeRootRegPath98%,TopLeftOffsetY,0x10001, 0
HKLM,%BeeRootRegPath98%,TopRightOffsetX,0x10001, 0
HKLM,%BeeRootRegPath98%,TopRightOffsetY,0x10001, 0
HKLM,%BeeRootRegPath98%,BottomLeftOffsetX,0x10001, 0
HKLM,%BeeRootRegPath98%,BottomLeftOffsetY,0x10001, 0
HKLM,%BeeRootRegPath98%,BottomRightOffsetX,0x10001, 0
HKLM,%BeeRootRegPath98%,BottomRightOffsetY,0x10001, 0
HKLM,%BeeRootRegPath98%,ScreenWidth,0x10001, 100
HKLM,%BeeRootRegPath98%,ScreenHigh,0x10001, 100
HKLM,%BeeRootRegPath98%,SwapXY,0x10001, 0
HKCU,"Control Panel\Mouse",DoubleClickHeight,%REG_SZ%,"10"
HKCU,"Control Panel\Mouse",DoubleClickWidth,%REG_SZ%,"10"
HKCU,"Control Panel\Mouse",DoubleClickSpeed,%REG_SZ%,"800"

[BeeUsbPerUser]
AddReg = BeeUsb_Absolute.AddReg

[msmouse.pui]
GUID = "BeeUsbPerUser"
DisplayName = %PUI_DESC_MSMOUSE%
Version = %PUI_VERSION%
IsInstalled = 1
StubPath = "rundll.exe %11%\setupx.dll,InstallHinfSection BeeUsbPerUser 64 %17%\BeeUsb.inf"

;===========================================================================================
;
;                        Windows 2000/XP MASTouch USB Touchscreen Driver Install Sections
;
;===========================================================================================

[BeeUsb.Install.NT]
Include=input.inf
Needs=HID_Inst.NT
Copyfiles = BeeUsbDrvCopy.NT
AddReg = BeeUsb.Install.AddReg.NT
DriverVer=09/20/2007,2.0.0.1
Include=msmouse.inf
Needs=HIDMouse

[BeeUsb.Install.NT.HW]
AddReg = BeeUsb.Install.AddReg.NT

[BeeUsb.Install.AddReg.NT]
HKR,,"LowerFilters",0x00010000,"BeeUsb"

[BeeUsb.Install.AddReg.NT]
HKLM,%BeeUninstallRegPath%,"DisplayName",,%BeeUsb.SvcDesc%
HKLM,%BeeUninstallRegPath%,"UninstallString",,"%10%\%BeeUSBSetupAppDir%\Install.exe /u"
HKLM,SYSTEM\CurrentControlSet\Services\Mouclass\Parameters, ConnectMultiplePorts, %REG_DWORD%, 0x00
HKLM,%BeeRootRegPathNT%,BeepMode,%REG_DWORD%,0x2
HKLM,%BeeRootRegPathNT%,BeepFreq,%REG_DWORD%,0x03e8
HKLM,%BeeRootRegPathNT%,BeepTime,%REG_DWORD%,0x2AF8
HKLM,%BeeRootRegPathNT%,MouseMode,%REG_DWORD%,0x03
HKLM,%BeeRootRegPathNT%,ButtonMode,%REG_DWORD%, 0
HKLM,%BeeRootRegPathNT%,DragDelay,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,DblClickRegion,%REG_DWORD%,10

HKLM,%BeeRootRegPathNT%,TopLeftOffsetX,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,TopLeftOffsetY,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,TopRightOffsetX,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,TopRightOffsetY,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,BottomLeftOffsetX,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,BottomLeftOffsetY,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,BottomRightOffsetX,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,BottomRightOffsetY,%REG_DWORD%,0
HKLM,%BeeRootRegPathNT%,ScreenWidth,%REG_DWORD%,100
HKLM,%BeeRootRegPathNT%,ScreenHigh,%REG_DWORD%,100
HKLM,%BeeRootRegPathNT%,SwapXY,%REG_DWORD%,0

HKCU,"Control Panel\Mouse",DoubleClickHeight,%REG_SZ%,"10"
HKCU,"Control Panel\Mouse",DoubleClickWidth,%REG_SZ%,"10"
HKCU,"Control Panel\Mouse",DoubleClickSpeed,%REG_SZ%,"800"

[BeeUsbDrvCopy.NT]
MASUsb.sys

[BeeNTDllCopy.NT]
hid.dll

[BeeUsb.Install.NT.Services]
AddService = HidUsb,%SPSVCINST_ASSOCSERVICE%,HID_Service_Inst
AddService = BeeUsb,,BeeUsb_Driver_Service_Inst

[BeeUsb_Driver_Service_Inst]
DisplayName     = "MASTouch USB Touchscreen"
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_IGNORE%
ServiceBinary   = %12%\MASUsb.sys
LoadOrderGroup  = extended base

[HID_Service_Inst]
DisplayName    = "Usb HID_compliant device mini driver"
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_AUTO_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\hidusb.sys
LoadOrderGroup = extended base

;=============================================================================================
;
;   					String Section
;
;=============================================================================================

[Strings]
PUI_VERSION             = "4,10,1,1"
PUI_DESC_MSMOUSE        = "MASTouch USB Interface Driver"

ClassNameNT             = "Mice and other pointing devices"
ClassName98             = "Touchmonitor"
NoMouse98               = "(No mouse)"

BeeUSBSetupAppDir       = "MASTouchUSB"
BeeUninstallRegPath     = "Software\Microsoft\Windows\CurrentVersion\Uninstall\BeeTouch"
BeeRunOnceRegPath       = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
BeeRunOnceSetupRegPath  = "Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup"
BeeRootRegPath98        = "System\CurrentControlSet\Services\BeeUsb\Parameters"
BeeRootRegPathNT        = "System\Currentcontrolset\Services\BeeUsb\Parameters"
BeeUsb.SvcDesc          = "MASTouch USB Touchscreen Driver"

BeeTouch                = "MASTouch Electrics CO., Ltd."
BeeMfg                  = "MASTouch Electrics CO., Ltd."
BeeUsb.DeviceDesc0      = "MASTouch USB Touchscreen"

SPSVCINST_TAGTOFRONT    = 0x00000001
SPSVCINST_ASSOCSERVICE  = 0x00000002
SERVICE_KERNEL_DRIVER   = 1
SERVICE_BOOT_START      = 0
SERVICE_SYSTEM_START    = 1
SERVICE_AUTO_START      = 2
SERVICE_DEMAND_START    = 3
SERVICE_ERROR_NORMAL    = 1
SERVICE_ERROR_IGNORE    = 0
REG_EXPAND_SZ           = 0x00020000
REG_DWORD               = 0x00010001
REG_SZ                  = 0x00000000

