; US002.inf
; Copyright (c) 2001 Tsinghua Unisplendour.

[Version]
Signature="$CHICAGO$"
Class=IMAGE
provider=%PANDP%
LayoutFile=layout.inf,Layout1.inf,Layout2.inf

[Manufacturer]
%PandPMfg%=PandP

[PandP]
%BULKUSB.DeviceDesc%=BULKUSB.Dev, USB\VID_0A53&PID_301A

[PreCopySection]
HKR,,NoSetupUI,,1

[DestinationDirs]
BULKUSB.Files.Win = 10
BULKUSB.Files.Ext = 10,System32\Drivers
BULKUSB.Files.Inf = 10,INF
BULKUSB.Files.Twain = 10,TWAIN_32\UniScan
BULKUSB.Files.Dll = 11

[BULKUSB.Dev]
CopyFiles=BULKUSB.Files.Win, BULKUSB.Files.Ext, BULKUSB.Files.Inf, BULKUSB.Files.Twain, BULKUSB.Files.Dll
AddReg=BULKUSB.AddReg

[BULKUSB.Dev.NT]
CopyFiles=BULKUSB.Files.Win, BULKUSB.Files.Ext, BULKUSB.Files.Inf, BULKUSB.Files.Twain, BULKUSB.Files.Dll
AddReg=BULKUSB.AddReg

[BULKUSB.Dev.NT.Services]
Addservice = usbscan, 0x00000002, UsbScan.AddService

[UsbScan.AddService]
DisplayName    = %UsbScan.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 2                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\usbscan.sys
LoadOrderGroup = Base

[BULKUSB.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbscan.sys
HKLM,"System\Currentcontrolset\Services\BulkUsb\Parameters","MaximumTransferSize",0x10001,4096
HKLM,"System\Currentcontrolset\Services\BulkUsb\Parameters","DebugLevel",0x10001,2

[BULKUSB.Files.Win]

[BULKUSB.Files.Ext]
usbscan.sys

[BULKUSB.Files.Twain]
S280Card.ds

[BULKUSB.Files.Dll]
S280Scan.DLL

[SourceDisksFiles]
BULKUSB.Files.Win = 1                                                                                                  
BULKUSB.Files.Ext = 1
BULKUSB.Files.Inf = 1                                                                                                            
BULKUSB.Files.Dll = 1
BULKUSB.Files.Twain = 1

[Strings]
PANDP="Tsinghua Unisplendour"
PandPMfg="Tsinghua Unisplendour"
BULKUSB.DeviceDesc="Uniscan S280"
BULKUSB.SvcDesc="Uniscan S280"