[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
CatalogFile=qiancaihid.cat
LayoutFile=layout.inf
DriverVer=09/26/2009,1.0.1808.0

;
;   Layout.inf (etc.) list all files shipped with the operating system so the 
;   source description sections are only needed if other files are needed.
;   
;   In order to use IHV drivers, the SourceDisksNames section must list the 
;   disk(s) containing the drivers and the SourceDisksFiles section must list 
;   which disk number each file to be copied is found on.
;   Disk number 99 is used to avoid a conflict with the disk numbers defined 
;   in layout.inf
;
;   Files used in a driver installation need to be digitally signed otherwise 
;   installation may fail.  See documentation elsewhere in the DDK regarding 
;   driver signing.

[SourceDisksFiles]
HidKeyboard.sys = 99


[SourceDisksNames.x86]
99 = %DISK_NAME%,,,\x86

[SourceDisksNames.ia64]
99 = %DISK_NAME%,,,\ia64

[SourceDisksNames.amd64]
99 = %DISK_NAME%,,,\amd64


[DestinationDirs]
CopyFilesSYS = 12     ; should it be 10 to take care of 98 stuff??????
CopyFilesDLL = 11     ; %SystemRoot%\system or system32 - 98 or Win2000
CopyFilesSYS_98 = 10, system32/drivers

[Manufacturer]
%VENDOR%=Vendor, NTx86, NTia64, NTamd64

; For Win2K
[Vendor]
%QianCaiHid%    = QianCaiHid.Inst, {D49F883C-6486-400a-8C22-1A9EF48577E4}\QIANCAIHID_DEVICE
%VHidDevice%  = VHidDevice.Inst,  HID\QianCaiHidDevice

; For XP and later
[Vendor.NTx86]
%QianCaiHid%    = QianCaiHid.Inst, {D49F883C-6486-400a-8C22-1A9EF48577E4}\QIANCAIHID_DEVICE
%VHidDevice%  = VHidDevice.Inst,  HID\QianCaiHidDevice

[Vendor.NTia64]
%QianCaiHid%    = QianCaiHid.Inst, {D49F883C-6486-400a-8C22-1A9EF48577E4}\QIANCAIHID_DEVICE
%VHidDevice%  = VHidDevice.Inst,  HID\QianCaiHidDevice

[Vendor.NTamd64]
%QianCaiHid%    = QianCaiHid.Inst, {D49F883C-6486-400a-8C22-1A9EF48577E4}\QIANCAIHID_DEVICE
%VHidDevice%  = VHidDevice.Inst,  HID\QianCaiHidDevice


[ControlFlags]
ExcludeFromSelect  = HID\QianCaiHidDevice

;===============================================================
;   QianCaiHid (Root Enumerated Hid Device) install section
;===============================================================
[QianCaiHid.Inst]
CopyFiles = CopyFilesSYS_98, CopyFilesDLL
AddReg    = QianCaiHid_98me.AddReg

[QianCaiHid.Inst.NT]
CopyFiles = CopyFilesSYS, CopyFilesDLL

[QianCaiHid.Inst.NT.HW]
AddReg = QianCaiHid_Parameters.AddReg 

[QianCaiHid.Inst.NT.Services]
AddService = QianCaiHid,0x00000002,QianCaiHid_Service_Inst,

[CopyFilesSYS]
HidKeyboard.sys
;HidClass.sys
;HidParse.sys


[CopyFilesSYS_98]
HidKeyboard.sys
;HidClass.sys
;HidParse.sys

[CopyFilesDLL]
;Hid.dll

[QianCaiHid_Parameters.AddReg]

[QianCaiHid_98me.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"HidKeyboard.sys"

[QianCaiHid_Service_Inst]
DisplayName    = %VHidDevice%
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\HidKeyboard.sys 

;===============================================================
;   VHidDevice (Virtual Hid Device) install section
; - Only a Null service is installed.
;===============================================================
[VHidDevice.Inst]

[VHidDevice.Inst.NT]

[VHidDevice.Inst.NT.Services]
AddService = ,0x00000002,   ; NULL Service


;================================================================
[Strings] 
;  *******Localizable Strings******* 
VENDOR         = "QianCai, Inc." 
QianCaiHid       = "QianCai USB Handwriter Device" 
VHidDevice     = "QianCai Handwriter Device" 
DISK_NAME      = "QianCai USB Handwriter Device Install Disk"
;  *******Non Localizable Strings******* 

SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

REG_EXPAND_SZ          = 0x00020000 
REG_DWORD              = 0x00010001 
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000
