[Version]
Signature="$Windows NT$"
Class=Keyboard
ClassGUID={4D36E96B-E325-11CE-BFC1-08002BE10318}
Provider=%ProviderName%
DriverVer=08/01/2001,1.2.0.0
CatalogFile=CNK001.cat

[Manufacturer]
%ManufacturerName%=InstallKeybDriver

[InstallKeybDriver]
%*PNP0303.DeviceDesc%    = STANDARD_Inst,*PNP0303,PS2_KEYBOARD   ;Default keyboard

[SourceDisksNames]
1="Multimedia Keyboard WinXP Driver",,0

[SourceDisksFiles]
CNK001.INI	= 1
HKNTDLL.DLL	= 1
HOTBTNV.VXD	= 1
MHOTKEY.EXE	= 1
MHOTKEY.REG	= 1
RECORD.EXE	= 1
UNINSTIT.EXE	= 1 

[DestinationDirs]
CopyToWinDir	= 10

[ControlFlags]
ExcludeFromSelect = *

;=====================================================================

[STANDARD_Inst]
CopyFiles  = CopyToWinDir	
AddReg     = STANDARD_AddReg
Reboot

[CopyToWinDir]
CNK001.INI
HKNTDLL.DLL
HOTBTNV.VXD
MHOTKEY.EXE
MHOTKEY.REG
RECORD.EXE
UNINSTIT.EXE

[STANDARD_AddReg]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,CHotKey,0,"MHOTKEY.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\CNK001,UninstallString,0,"UninstIt.exe CNK001.ini"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\CNK001,DisplayName,0,"Multimedia Keyboard Driver Uninstall"
;=====================================================================

[ClassInstall32.NT]
AddReg=keyboard_class_addreg

[keyboard_class_addreg]
HKR,,,,%KeyboardClassName%
HKR,,Icon,,"-3"
HKR,,Installer32,,"SysSetup.Dll,KeyboardClassInstaller"
HKR,,NoInstallClass,,"1"
HKR,,TroubleShooter-0,,"tshoot.chm,hdw_keyboard.htm"

;=====================================================================

[STANDARD_Inst.HW]
AddReg = STANDARD_AddReg.HW

[STANDARD_AddReg.HW]
HKR,,"KeyboardDataQueueSize",0x00010003,100
HKR,,"PollStatusIterations",0x00010003,1
;HKLM,"SYSTEM\CurrentControlSet\Services\i8042prt\Parameters","PollingIterations",0x00010003,12000
;HKLM,"SYSTEM\CurrentControlSet\Services\i8042prt\Parameters","PollingIterationsMaximum",0x00010003,12000
;HKLM,"SYSTEM\CurrentControlSet\Services\i8042prt\Parameters","ResendIterations",0x00010003,3

;=====================================================================

[STANDARD_Inst.Services]
AddService = i8042prt, 0x00000002, i8042prt_Service_Inst, i8042prt_EventLog_Inst ; Port Driver
AddService = kbdclass,, kbdclass_Service_Inst, kbdclass_EventLog_Inst            ; Class Driver

[i8042prt_Service_Inst]
DisplayName    = %i8042prt.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\i8042prt.sys
LoadOrderGroup = Keyboard Port

[i8042prt_EventLog_Inst]
AddReg = i8042prt_EventLog_AddReg

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


[kbdclass_Service_Inst]
DisplayName    = %kbdclass.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\kbdclass.sys
LoadOrderGroup = Keyboard Class

[kbdclass_EventLog_Inst]
AddReg = kbdclass_EventLog_AddReg

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


;=====================================================================

[Strings]
ProviderName 		= "Chicony"
ManufacturerName 	= "Chicony"
KeyboardClassName       = "Keyboards"
*PNP0303.DeviceDesc     = "Multimedia/Internet keyboard Driver" ; default
i8042prt.SvcDesc        = "i8042 Keyboard and PS/2 Mouse Port Driver"
kbdclass.SvcDesc        = "Keyboard Class Driver"
