[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Provider%
; redundant but needed to pass Windows 10 infverif test
CatalogFile=HPWia_IT310x64.CAT
CatalogFile.NTX86=HPWia_IT310x32.CAT
CatalogFile.NTAMD64=HPWia_IT310x64.CAT

DriverVer=05/11/2017, 45.0.4062.0	
;====================================================

[DestinationDirs]
; By default, files will be copied to \windows\system.
DefaultDestDir=11
32on64_CopyFiles=16425

[ControlFlags]
; Remove comment from this line if all devices are PnP.
ExcludeFromSelect=*

[Manufacturer]
%Mfg%=Models,NTamd64.6.0,NTamd64.6.1,NTamd64.6.2,NTamd64.6.3,NTamd64.5.2,NT.5.1,NTx86.6.0,NTx86.6.1,NTx86.6.2,NTx86.6.3
; Windows 2K is not supported
[Models]
;; ; No support for Windows 2000

; Windows XP


[Models.NT.5.1]
"HP Ink Tank 310 series (USB)" = DMR.USB.5.1, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTx86.6.0]
"HP Ink Tank 310 series (USB)" = DMR.USB.6.0, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTx86.6.1]
"HP Ink Tank 310 series (USB)" = DMR.USB.6, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTx86.6.2]
"HP Ink Tank 310 series (USB)" = DMR.USB.6, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTx86.6.3]
"HP Ink Tank 310 series (USB)" = DMR.USB.6, usb\Vid_03F0&Pid_1053&mi_00
; Windows x64 Server 2003
[Models.NTamd64.5.2]
"HP Ink Tank 310 series (USB)" = DMR.USB.5.2, usb\Vid_03F0&Pid_1053&mi_00

; Windows x64
[Models.NTamd64.6.0]
"HP Ink Tank 310 series (USB)" = DMR.USB.6.0, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTamd64.6.1]
"HP Ink Tank 310 series (USB)" = DMR.USB.6, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTamd64.6.2]
"HP Ink Tank 310 series (USB)" = DMR.USB.6, usb\Vid_03F0&Pid_1053&mi_00
[Models.NTamd64.6.3]
"HP Ink Tank 310 series (USB)" = DMR.USB.6, usb\Vid_03F0&Pid_1053&mi_00

; *****************************************************************************************
;           Windows XP (Whistler) and later (WIA)
; *****************************************************************************************

[DMR.Usb.5.1]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x30
DeviceSubType=0x2
FeatureScore=00
Events=DMR.Events
DeviceData=DMR.DeviceData.WIA
AddReg=DMR.UsbReg,DMR.WIAReg
CopyFiles=DMR.CpyFiles.WIA
RegisterDlls=DMR.RegisterDlls.WIA
ICMProfiles="sRGB Color Space Profile.icm"
CopyINF=HPRestStub.inf,null.inf


[DMR.Usb.6.0]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x30
DeviceSubType=0x2
FeatureScore=00

Events=DMR.Events
DeviceData=DMR.DeviceData.WIA
AddReg=DMR.UsbReg,DMR.WIAReg
CopyFiles=DMR.CpyFiles.WIA2
RegisterDlls=DMR.RegisterDlls.WIA2
ICMProfiles="sRGB Color Space Profile.icm"
CopyINF=HPRestStub.inf,null.inf


[DMR.Usb.6]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceSubType=0x2

FeatureScore=00

Events=DMR.Events
DeviceData=DMR.DeviceData.WIA
AddReg=DMR.UsbReg,DMR.WIAReg
CopyFiles=DMR.CpyFiles.WIA2
RegisterDlls=DMR.RegisterDlls.WIA2
ICMProfiles="sRGB Color Space Profile.icm"
CopyINF=HPRestStub.inf,null.inf


;; [DMR.Usb.NTWIA.HW]

[DMR.Usb.6.0.ntamd64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x30
DeviceSubType=0x2
FeatureScore=00

Events=DMR.Events
DeviceData=DMR.DeviceData.WIA
AddReg=DMR.UsbReg,DMR.WIAReg
CopyFiles=DMR.CpyFiles.WIA2x64,32on64_CopyFiles
RegisterDlls=DMR.RegisterDlls.WIA2x64
ICMProfiles="sRGB Color Space Profile.icm"
CopyINF=HPRestStub.inf,null.inf



[DMR.Usb.6.ntamd64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceSubType=0x2
FeatureScore=00

Events=DMR.Events
DeviceData=DMR.DeviceData.WIA
AddReg=DMR.UsbReg,DMR.WIAReg
CopyFiles=DMR.CpyFiles.WIA2x64,32on64_CopyFiles
RegisterDlls=DMR.RegisterDlls.WIA2x64
ICMProfiles="sRGB Color Space Profile.icm"
CopyINF=HPRestStub.inf,null.inf


[DMR.Usb.5.2.ntamd64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x30
DeviceSubType=0x2

FeatureScore=00

Events=DMR.Events
DeviceData=DMR.DeviceData.WIA
AddReg=DMR.UsbReg,DMR.WIAReg
CopyFiles=DMR.CpyFiles.WIAx64,32on64_CopyFiles
RegisterDlls=DMR.RegisterDlls.WIAx64
ICMProfiles="sRGB Color Space Profile.icm"
CopyINF=HPRestStub.inf,null.inf


;; [DMR.Usb.NTWIA.ntamd64.HW]


; *****************************************************************************************
;           Common sections
; *****************************************************************************************

[DMR.Usb.5.1.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[DMR.Usb.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[DMR.Usb.6.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[DMR.Usb.6.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[DMR.Usb.6.0.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[DMR.Usb.5.2.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services


[DMR.DeviceData.WIA]
TwainDS="HP Ink Tank 310 series"
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
ProductFolder="HP Ink Tank 310 series"
;tulip
TulipCLSID={613C3422-23C1-410E-85DF-6095B6A71BCE}

[DMR.Events]
; These are events that the device issues to trigger application launching.
IT310_SCANBUTTON=%BUTTON_SCAN%,{63AAABB4-F17B-44F9-8C27-F73F2D891B9E},*

[DMR.EvtReg]
; This sets up the zero based index of the buttons (as returned by Tulip::GetButtonStatusEx() )

HKR,Events\IT310_SCANBUTTON,Index,0x10001,0		;scan button must be index 0
HKR,Events\IT310_SCANBUTTON,Mask,0x10001,0x0 
HKR,Events\IT310_SCANBUTTON,FriendlyName,,%BUTTON_SCAN%



[DMR.WIAReg]
HKR,,USDClass,,"{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1}"
HKCR,CLSID\{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1},,,"Hewlett-Packard NG Minidriver"
HKCR,CLSID\{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1}\InProcServer32,,,%11%\HPWia1_IT310.dll
HKCR,CLSID\{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1}\InProcServer32,ThreadingModel,,"Both"


[DMR.WIAReg2]
HKR,,USDClass,,"{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1}"
HKCR,CLSID\{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1},,,"Hewlett-Packard NG Minidriver"
HKCR,CLSID\{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1}\InProcServer32,,,%11%\HPWia2_IT310.dll
HKCR,CLSID\{1A3B665F-A3E3-45D1-9C0C-82A862A21DA1}\InProcServer32,ThreadingModel,,"Both"

[DMR.UsbReg]
; This all depends on which kernel services you need
; Hardware configuration is not known
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,"usbscan.sys"
;tulip
HKR,DeviceData,TulipIOType,0x10001,1
HKR,DeviceData,TulipDevNameType,0x10001,3


[DMR.RegisterDlls.WIA]
11,,HPWia1_IT310.dll,1
;tulip
11,,HPScanTRDrv_IT310.dll,1

[DMR.RegisterDlls.WIA2]
11,,HPWia2_IT310.dll,1
;tulip
11,,HPScanTRDrv_IT310.dll,1

[DMR.RegisterDlls.WIAx64]
11,,HPWia1_IT310.dll,1
;tulip
11,,HPScanTRDrv_IT310.dll,1
16425,,HPScanTRDrv_IT310.dll,1

[DMR.RegisterDlls.WIA2x64]
11,,HPWia2_IT310.dll,1
;tulip
11,,HPScanTRDrv_IT310.dll,1
16425,,HPScanTRDrv_IT310.dll,1

[DMR.CpyFiles.WIA]
HPWia1_IT310.dll
;tulip
HPScanTRDrv_IT310.dll
[DMR.CpyFiles.WIAx64]

HPWia1_IT310.dll
;tulip
HPScanTRDrv_IT310.dll
 
[DMR.CpyFiles.WIA2]
HPWia2_IT310.dll
;tulip
HPScanTRDrv_IT310.dll
[DMR.CpyFiles.WIA2x64]

HPWia2_IT310.dll
;tulip
HPScanTRDrv_IT310.dll


; Copy the 32 bit Tulip driver on 64 bit to the SysWOW64 directory and register it.
[32on64_CopyFiles]

;tulip
HPScanTRDrv_IT310.dll

[SourceDisksNames]
1 = %CD%,,,
2 = %CD%,,,drivers\scanner
 
[SourceDisksNames.x86]
1 = %CD%,,,
2 = %CD%,,,drivers\scanner

; This section is redundant to pass infverif test for Windows 10
[SourceDisksFiles]
HPWia1_IT310.dll=2,x64
HPWia2_IT310.dll=2,x64
;tulip
HPScanTRDrv_IT310.dll=2,x64
 

[SourceDisksFiles.x86]
HPWia1_IT310.dll=2,x32
HPWia2_IT310.dll=2,x32
;tulip
HPScanTRDrv_IT310.dll=2,x32

[SourceDisksNames.amd64]
1 = %CD%,,,
2 = %CD%,,,drivers\scanner

[SourceDisksFiles.amd64]
HPWia1_IT310.dll=2,x64
HPWia2_IT310.dll=2,x64
;tulip
HPScanTRDrv_IT310.dll=2,x64
 
[Strings]
; Always put strings down here so they can be easily localized to
; other languages.
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Scan button press"


; English Specific
[Strings.0409]         ;English
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Scan button press"

; French Specific 
[Strings.000C] ; French
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Touche Numériser"

; Italian Specific 
[Strings.0010]  ; Italian
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Pressione del pulsante Scansione"

; German Specific 
[Strings.0007] ; German
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Taste "Scannen" gedrückt"
  

; Spanish Specific 
[Strings.000A] ; Spanish
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Pulsar el botón Escanear"
 

; Portuguese Specific 
[Strings.0016] ; Portuguese
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Pressionamento do botão Digitalizar"

; Dutch Specific 
[Strings.0013] ; Dutch
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Gedrukt op de knop Scannen"

; Russian Specific 
[Strings.0019] ; Russian
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Нажатие кнопки "Сканировать""
;need to find string

; Traditional Chinese Specific 
[Strings.0404] ; Traditional Chinese
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="按下「掃瞄」按鈕"

; Simplified Chinese Specific
[Strings.0804] ; Chinese
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="按下“扫描”按钮"

; Korean Specific 
[Strings.0012] ; Korean
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="스캔 버튼 누르기"

; Danish Specific 
[Strings.0006] ; Danish
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Du har trykket på knappen Scan til"

; Finnish Specific 
[Strings.000B] ; Finnish
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Skannaa-painikkeen painaminen"

; Norwegian Specific 
[Strings.0014] ; Norwegian
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Trykket på Skann-knappen"
; Swedish Specific 
[Strings.001D] ; Swedish
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Tryckning på knappen Skanna"

; Czech Specific 
[Strings.0005] ; Czech
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Stisknutí tlačítka Sejmout do"

; Greek Specific 
[Strings.0008] ; Greek
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Πάτημα κουμπιού 'Σάρωση'"

; Hungarian Specific 
[Strings.000E] ; Hungarian
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Beolvasás gomb megnyomása"

; Polish Specific 
[Strings.0015] ; Polish
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Naciśnięcie przycisku Skanuj"

; Turkish Specific 
[Strings.001F] ;Turkish
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="Tara düğmesine basmak"

; Japanese Specific 
[Strings.0411] ; Japanese
Provider="HP"
Mfg="HP"
CD="hp cd"
BUTTON_SCAN="[スキャン] ボタンを押す"









































