;
; t_mouse.inf
; Copyright (c) 2012 Pixart Imaging Inc.
;
[Version]
Signature	= "$Windows NT$"
Class		= HIDClass
ClassGUID	= {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}
Provider	= %strProvider%
CatalogFile	= t_mouse.cat
DriverVer	= 12/19/2012, 0001.0002.2012.1219

[SourceDisksNames.x86]
1 = %strDiskName%,,,		;; Disk 1

[SourceDisksNames.amd64]
1 = %strDiskName%,,,		;; Disk 1

[SourceDisksFiles.x86]
t_mouse.sys = 1,\ia32		;; Disk 1
TiltWheelMouse.exe = 1		;; Disk 1
mousecpl.dll = 1		;; Disk 1

[SourceDisksFiles.amd64]
t_mouse.sys = 1,\amd64		;; Disk 1
TiltWheelMouse.exe = 1		;; Disk 1
mousecpl.dll = 1		;; Disk 1

[DestinationDirs]
DefaultDestDir = 10, system32\drivers		;; 10=windows directory
secCopyFilesSystem32 = 11			;; 11=System32 directory

[Manufacturer]
%strManufacturer% = DeviceList,NTx86.5.1,NTx86.6.0,NTAMD64

[DeviceList]
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2521
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2520
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2521

[DeviceList.NTx86.5.1]
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2551
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2520
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2521

[DeviceList.NTx86.6.0]
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2551
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2520
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2521

[DeviceList.NTAMD64]
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2551
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2520
%strDeviceHID% = secInstall, USB\Vid_093a&Pid_2521

[ControlFlags]
ExcludeFromSelect	= *


;------------------------------------------------------------------------------
;  Windows NT Sections
;------------------------------------------------------------------------------
[secInstall.NT]
CopyFiles	= secCopyFiles, secCopyFilesSystem32 
Include		= INPUT.inf
Needs		= HID_Inst.NT
RegisterDlls 	= secRegDlls

[secCopyFiles]
t_mouse.sys

[secCopyFilesSystem32]
TiltWheelMouse.exe
mousecpl.dll

[secInstall.NT.HW]
AddReg	= secAddReg

[secAddReg]
;;0x00010008 = (FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND)
HKR,,LowerFilters, 0x00010008, %strServiceName%	
HKLM,%strRun%,"MouseDriver",,"TiltWheelMouse.exe"

[secRegDlls]
11,,mousecpl.dll,1			;; 11=System32 directory

[secInstall.NT.Services]
AddService	= %strServiceName%,,secAddService
Include		= INPUT.inf
Needs		= HID_Inst.NT.Services

[secAddService]
DisplayName	= %strDeviceHID%
ServiceType	= 1				;; SERVICE_KERNEL_DRIVER
StartType	= 3				;; SERVICE_DEMAND_START
ErrorControl	= 2				;; SERVICE_ERROR_NORMAL
ServiceBinary	= %12%\t_mouse.sys		;; 12=Drivers directory


;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------

[Strings]
strProvider	= "PXI"
strManufacturer	= "PXI Customer"
strDiskName	= "USB Mouse"
strDeviceHID	= "HID-compliand device"
strServiceName	= "t_mouse.sys"
strRun		= "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
