;===========================================================
;            Device INF File for A12U16KN Scanners  
;           Copyright (c)   2002-2003   Scanner  Inc.    
;                        Windows                 
;===========================================================

[Version]
;LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Provider%
DriverVer=03/02/2003,1.0.0.2
CatalogFile=A2NUsd.cat

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir=11                               ; system folder
CopyTWAINFiles=10,TWAIN_32\%TWAINDir%           ; \windows\twain_32\XXXXX
STI.CopyMiniDrvFiles=11                         ; system(98)\system32(2k)   
WIA.CopyMiniDrvFiles=11                         ; system32
CopyWDMFiles=10,system32\drivers                ; \windows\system32\drivers
CopyFWFiles=10,system32\drivers                 ; \windows\system32\drivers
CopyCoInstaller=11                              ; system32

;==================================
;             MODELS
;==================================
[Manufacturer]
%Mfg%=Models,NTamd64


[Models.NTamd64]
;WIA Model 
%A2NUSD.USB.XPWIA.DeviceDesc%=A2NUSD.USB.XPWIA,USB\VID_055F&PID_021A


;==================================
;         Win XP 64
;==================================

[A2NUSD.USB.XPWIA]
SubClass                =StillImage
DeviceType              =1
DeviceSubType           =0x1
Capabilities            =0x33

ICMProfiles="sRGB Color Space Profile.icm"

Events=A2NUSD.USB.XPWIA.Events
DeviceData=A2NUSD.USB.XPWIA.DeviceData
AddReg=A2NUSD.USB.XPWIA.AddReg

CopyFiles=CopyWDMFiles,CopyFWFiles,WIA.CopyMiniDrvFiles,CopyTWAINFiles,CopyCoInstaller

;UninstallSection=A2NUSD.USB.XPWIA.Uninstall


[A2NUSD.USB.XPWIA.Services]
Addservice = GT680x,0x00000002,A2NUSD.USB.XPWIA.AddService

[A2NUSD.USB.XPWIA.AddService]
DisplayName    = %AddServiceName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\Gt680x.sys
LoadOrderGroup = Bases

[A2NUSD.USB.XPWIA.CoInstallers]
CopyFiles=CopyCoInstaller
AddReg=CoInstallers.AddReg

[CoInstallers.AddReg]
HKR,,CoInstallers32,0x00010000,"MKCoInstaller.dll,MKCoInstaller"
;HKR,,Compatible,No

[A2NUSD.USB.XPWIA.DeviceData]
PollTimeout=0x00000bb8,1
TServer=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
TwainDS=%WIA.DataSourceName%

ScanButton=%ScanEventGuid%
CopyButton=%CopyEventGuid%
FaxButton=%FaxEventGuid%
EmailButton=%EmailEventGuid%
PanelButton=%PanelEventGuid%
PanelGuid=%PanelGuid%

Resolution=%ResolutionStr%
SpicallPath=%10%\TWAIN_32\%TWAINDir%\%SpicallName%
MaxXResolution=1200 
MaxYResolution=2400 
HasKey=1 
MaxScanWidth=8320 
MaxScanHeight=11680 
DefaultXResolution=300 
DefaultYResolution=300 
SupportLineArt=1 

[A2NUSD.USB.XPWIA.Events]
ScanButton=%ScanButton.Desc%,%ScanEventGuid%,Panel
CopyButton=%CopyButton.Desc%,%CopyEventGuid%,Panel
FaxButton=%FaxButton.Desc%,%FaxEventGuid%,Panel
EmailButton=%EmailButton.Desc%,%EmailEventGuid%,Panel
PanelButton=%PanelButton.Desc%,%PanelEventGuid%,Panel

[A2NUSD.USB.XPWIA.AddReg]
HKR,,DeviceType,1,1
HKR,,HardwareConfig,1,4
HKR,,DevLoader,0,*NTKERN
HKR,,NTMPDriver,0,Gt680x.sys

HKR,,USDClass,,%WIA.MiniDriverGuid%
HKCR,CLSID\%WIA.MiniDriverGuid% ,,,"WIA.MiniDriverDesc"
HKCR,CLSID\%WIA.MiniDriverGuid%\InProcServer32,,,%11%\A2NMinidrv.dll
HKCR,CLSID\%WIA.MiniDriverGuid%\InProcServer32,ThreadingModel,,"Both"


HKLM,%WIARegistryEntry%,MiniDrvName,,"A2NMiniDrv.dll"
HKLM,%WIARegistryEntry%,SpicallPath,,%10%\TWAIN_32\%TWAINDir%\A2Nspi.dll


[A2NUSD.USB.XPWIA.Uninstall]
DelReg=A2NUSD.USB.XPWIA.AddReg
DelFiles=CopyWDMFiles,CopyFWFiles,WIA.CopyMiniDrvFiles,CopyTWAINFiles,CopyCoInstaller




;======================================================================
;   Common Copy file section 
;======================================================================
[CopyFWFiles]
A2NFw.usb 

[CopyWDMFiles]
Gt680x.sys

[CopyTWAINFiles]
A2NInfo.ini
A2Nspi.dll

[WIA.CopyMiniDrvFiles]
A2NMinidrv.dll
A2NMinidrv.ini

[STI.CopyMiniDrvFiles]
A2Nusd.dll

[CopyCoInstaller]
MKCoInstaller.dll

[SourceDisksNames]
56=%DiskName%,,

[SourceDisksFiles]
GT680x.sys=56
A2NFw.usb=56
A2NUsd.dll=56
A2NInfo.ini=56
A2Nspi.dll=56
A2NMinidrv.dll=56
MKCoInstaller.dll=56
A2NMinidrv.ini=56



;======================================================================
;   Common string section 
;======================================================================

[Strings]
ResolutionStr="50, 100, 200, 300, 600, 1200"
TWAINDir="A12U16KN"
SpicallName="A2NSpi.dll"

Provider="Scanner"
Mfg="Scanner"
DiskName="Install"

;=========== 98/me/2k sti mode =============
A2NUSD.USB.STI.DeviceDesc="BearPaw 2448TA Plus"
STI.DataSourceName="BearPaw 2448TA Plus"
STI.SpecialInfo="A12U16KN USB Scanner Installation"

TriggerEventName="Key Pressed"
TriggerEventGuid="{DCD7F409-BC73-49cc-8EF7-E778C87D2520}"
TriggerEventApp="BearPaw 2448TA Plus Scanner"
STI.MiniDriverDesc="BearPaw 2448TA Plus Still Image Mini Driver"
STI.MiniDriverGuid="{1D9EF5B9-5BD3-4918-A123-453017B5D4EC}"


;=========== XP wia mode ==================
A2NUSD.USB.XPWIA.DeviceDesc="BearPaw 2448TA Plus WIA Scanner"
WIA.DataSourceName="BearPaw 2448TA Plus WIA Scanner"
WIA.SpecialInfo="A12U16KN USB WIA Scanner Installation"

WIA.MiniDriverDesc="BearPaw 2448TA Plus WIA Mini Driver"
WIA.MiniDriverGuid="{49900023-E53F-4bab-8659-BAEE04FBC211}"

ScanButton.Desc="Scan Button"
CopyButton.Desc="Copy Button"
FaxButton.Desc="Fax Button"
EmailButton.Desc="Email Button"
PanelButton.Desc="Panel Button"

PanelGuid="{37745268-6AA8-4611-9EB3-BEEFCE1C75EB}"
ScanEventGuid="{41132014-680C-4bab-96C4-DF3F9FE66CAF}"
CopyEventGuid="{531E8DFF-BFD9-4249-B371-327ED0DE8A98}"
EmailEventGuid="{5407C6A0-9887-4279-B35E-F15DB0039B23}"
FaxEventGuid="{69900071-C8D5-42e6-921C-F81BF70D3720}"
PanelEventGuid="{FD05DB0B-439D-4fa5-AF7C-FDC318D9F747}"

WIARegistryEntry="SOFTWARE\Mustek Systems\WIA A2D"


;================================================================
;                      Common section
;================================================================
;TWAINDir="A12U16KN"
DiskLabel="Install"
AddServiceName="BearPaw 2448TA Plus Usb Scanner"


