[Version]
Signature="$CHICAGO$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%VENDOR%
CatalogFile=HWDrawing.cat
LayoutFile=layout.inf
DriverVer=08/02/2011,3.2.0.0

[SourceDisksFiles]
HWDrawing.sys = 99


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

[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]
%VHWDrawing%    = VHWDrawing.Inst, {D49F883C-6486-0918-1304-1A9EF48577E4}\HID_DEVICE
%VHWHidDevice%  = VHWHidDevice.Inst,  HID\JWVirtualHidDevice

; For XP and later
[Vendor.NTx86]
%VHWDrawing%    = VHWDrawing.Inst, {D49F883C-6486-0918-1304-1A9EF48577E4}\HID_DEVICE
%VHWHidDevice%  = VHWHidDevice.Inst,  HID\JWVirtualHidDevice

[Vendor.NTia64]
%VHWDrawing%    = VHWDrawing.Inst, {D49F883C-6486-0918-1304-1A9EF48577E4}\HID_DEVICE
%VHWHidDevice%  = VHWHidDevice.Inst,  HID\JWVirtualHidDevice

[Vendor.NTamd64]
%VHWDrawing%    = VHWDrawing.Inst, {D49F883C-6486-0918-1304-1A9EF48577E4}\HID_DEVICE
%VHWHidDevice%  = VHWHidDevice.Inst,  HID\JWVirtualHidDevice


[ControlFlags]
ExcludeFromSelect  = HID\JWVirtualHidDevice

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

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

[VHWDrawing.Inst.NT.HW]
AddReg = VHWDrawing_Parameters.AddReg 

[VHWDrawing.Inst.NT.Services]
AddService = VHWDrawing,0x00000002,VHWDrawing_Service_Inst,

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


[CopyFilesSYS_98]
HWDrawing.sys
HidClass.sys
HidParse.sys

[CopyFilesDLL]
;Hid.dll

[VHWDrawing_Parameters.AddReg]
HKR,,"ReadFromRegistry",%REG_DWORD%, 0x00000001
HKR,,"MyReportDescriptor",%REG_BINARY%, 05, 0d, 09, 02, a1, 01, 85, 01, 09, 20, a1, 00, 09, 42, 09, 44, 09, 3c, 09, 45, 15, 00, 25, 01, 75, 01, 95, 04, 81, 02, 95, 01,81, 03, 09, 32, 81, 02, 95, 02, 81, 03, 05, 01, 09, 30, 75, 10, 95, 01, a4, 55, 0d, 65, 33, 35, 00, 46, 3a, 20, 26, de, 27, 81, 02, 09, 31, 46, 2c, 18, 26, fe, 1c, 81, 02, b4, 05, 0d, 09, 30, 26, 00, 04, 81, 02, 75, 10, 95, 01, c0, c0, 05, 01, 09, 02, a1, 01, 85, 02, 09, 01, a1, 00, 05, 09, 19, 01, 29, 02, 15, 00,25, 01, 75, 01, 95, 02, 81, 02, 95, 06, 81, 03, 05, 01, 09, 30, 09, 31, 15, 81, 25, 7f, 75, 08, 95, 02, 81, 06, c0, c0, 05, 0D, 09, 08, A1, 01, 85, 03, 09, 01, A1, 01, 05, 01, 09, 3B, 15, 00, 25, 7f, 75, 08, 95, 0A, 91, 06, C0, C0



[VHWDrawing_98me.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"HWDrawing.sys"

[VHWDrawing_Service_Inst]
DisplayName    = %VHWDrawing%
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\HWDrawing.sys 

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

[VHWHidDevice.Inst.NT]

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


;================================================================
[Strings] 
;  *******Localizable Strings******* 
VENDOR         = "Hanwang Technology Co., LTD" 
VHWDrawing       = "HanWang Drawing Tablet" 
VHWHidDevice     = "HanWang Drawing Hid Device " 
DISK_NAME      = "HanWang Virtual Hid 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
