;
; LEWScan6.inf - installation file for the WSD Scan Driver
;
;  
;
; Manufacturer: Lenovo Limited(D2)
;

[Version]
;catalog file statement will be needed for running the DTM INF test
CatalogFile=LEWScan6.cat
Signature="$WINDOWS NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%MFG%
DriverVer=02/06/2012,4.22.22.0

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%MFG%=Lenovo, NTamd64

[Lenovo.NTamd64]
; DisplayName                   Section               DeviceId
; -----------                   -------               --------


;Lenovo M9530
%WSDScanDriver.DeviceDesc% =    WSDScanDriver.Device, UMB\WSDSCAN\LenovoM9530 


[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
LEWScan6.dll=3426
LEWSErr6.dll=3426
wsLang6.dll=3426
LEWSprop6.dll=3426
ebUADlg6.dll=3426

[DestinationDirs]
DefaultDestDir = 11,LEewscan
WSDScanDriver.CopyFiles = 11,LEewscan ;Seperate installable path for Lenovo MFC

[WSDScanDriver.Device]
Include=sti.inf
Needs=STI.WSDSection
SubClass=StillImage
DeviceType=1                                   ; scanner device
DeviceSubType=0x1
Capabilities=0x31                              ; STI_GENCAP_NOTIFICATIONS (bit 0) | STI_GENCAP_WIA (bit 4) | bit 5
DeviceData=WSDScanDriver.DeviceData
Events=WSDScanDriver.Events
AddReg=WSDScanDriver.AddReg
CopyFiles=WSDScanDriver.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"

[WSDScanDriver.CopyFiles]
LEWScan6.dll
LEWSErr6.dll
wsLang6.dll
LEWSprop6.dll
ebUADlg6.dll

[WSDScanDriver.DeviceData]
Server=local                                  ; the WIA mini-driver runs on the same machine as the client application
UI Class ID = {8F860412-4223-4dae-83B8-C344DBBEB90D}

[WSDScanDriver.AddReg]
; Registry settings for the WIA mini-driver component:
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{CD8F80AC-C67E-4ad9-87F7-F069C2938ABE}"
HKCR,CLSID\{CD8F80AC-C67E-4ad9-87F7-F069C2938ABE},,,"M9530 WIA Driver"
HKCR,CLSID\{CD8F80AC-C67E-4ad9-87F7-F069C2938ABE}\InProcServer32,,,%11%\LEewscan\LEWScan6.dll
HKCR,CLSID\{CD8F80AC-C67E-4ad9-87F7-F069C2938ABE}\InProcServer32,ThreadingModel,,Both
; Registry settings for the WSD scan proxy component:


; added for Error Handler 
HKCR,CLSID\{8F860412-4223-4dae-83B8-C344DBBEB90D},,,"M9530 WIA Driver UI Extension"
HKCR,CLSID\{8F860412-4223-4dae-83B8-C344DBBEB90D}\shellex\ErrorHandler\{2CF2C3B5-B6C2-41c3-B041-B6125009F334}


HKCR,CLSID\{2CF2C3B5-B6C2-41c3-B041-B6125009F334},,,"M9530 WIA Error Handler"
HKCR,CLSID\{2CF2C3B5-B6C2-41c3-B041-B6125009F334}\InProcServer32,,,%11%\LEewscan\LEWSErr6.dll
HKCR,CLSID\{2CF2C3B5-B6C2-41c3-B041-B6125009F334}\InProcServer32,ThreadingModel,,Both

;end of addition for Error Handler 

;added for property sheet

HKCR,CLSID\{8F860412-4223-4dae-83B8-C344DBBEB90D},,,"M9530 WIA Driver UI Extension"
HKCR,CLSID\{8F860412-4223-4dae-83B8-C344DBBEB90D}\shellex\PropertySheetHandlers\{264E7B5F-6E3F-4d5c-B58C-B40EFE42C249}
HKCR,CLSID\{8F860412-4223-4dae-83B8-C344DBBEB90D}\shellex\WiaDialogExtensionHandlers\{264E7B5F-6E3F-4d5c-B58C-B40EFE42C249}

HKCR,CLSID\{264E7B5F-6E3F-4d5c-B58C-B40EFE42C249},,,"shell extension Scnui"
HKCR,CLSID\{264E7B5F-6E3F-4d5c-B58C-B40EFE42C249}\InProcServer32,,,%11%\LEewscan\LEWSprop6.dll
HKCR,CLSID\{264E7B5F-6E3F-4d5c-B58C-B40EFE42C249}\InProcServer32,ThreadingModel,,Apartment

; end of Propertysheet 

[WSDScanDriver.Events]
ScanEvent=%ScanEvent.Desc%,{A6C5A715-8C6E-11d2-977A-0000F87A926F},*
;ScanToPrintEvent=%ScanToPrintEvent.Desc%,{B441f425-8C6e-11D2-977A-0000F87A926F},*
;ScanToFaxEvent=%ScanToFaxEvent.Desc%,{C00EB793-8C6E-11D2-977A-0000F87A926F},*
;ScanToOCREvent=%ScanToOCREvent.Desc%,{9D095B89-37D6-4877-AFED-62A297DC6DBE},*
;ScanToEmailEvent=%ScanToEmailEvent.Desc%,{C686DCEE-54F2-419E-9A27-2FC7F2E98F9E},*

[WSDScanDriver.Device.HW]
Include=sti.inf
Needs=STI.WSDSectionHW

[WSDScanDriver.Device.Services]
Include=sti.inf
Needs=STI.WSDSection.Services

[Strings]
MFG="Lenovo Limited"
WSDScanDriver.DeviceDesc="M9530 WIA Driver"
ScanEvent.Desc="Scan"
;ScanToPrintEvent.Desc="Scan To Print"
;ScanToFaxEvent.Desc="Scan To Fax"
;ScanToOCREvent.Desc="Scan To OCR"
;ScanToEmailEvent.Desc="Scan To E-mail"
