;
; Copyright (c) 2005-2007
;


[Version]
Signature="$CHICAGO$"
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
CatalogFile.NT=cam1690.cat
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Generic%
DriverVer=07/13/2007,1.0.2.0  ; See DDK for detail

[SourceDisksNames]
1=%SourceDiskName%,,,

[SourceDisksFiles]
cam1690.sys = 1
cam1690.ax = 1
cam1690.dll = 1
;STI
USD1690.dll = 1
stic1690.exe = 1
gdiplus.dll = 1
stid1690.exe = 1

[ControlFlags]
; All PnP devices should be excluded from manual AddDevice Applet list
ExcludeFromSelect=*

[Manufacturer]
%GenericMfg%=Generic,NT,NTx86.6.0,NTx64.6.0,NTAMD64.6.0

[DestinationDirs]
DefaultDestDir = 11
USBDCam.Files.Ext = 10,System32\Drivers

;For XPx64
Plugin.NTx64.Files = 10,SysWow64
CoInstall.NTx64.CopyFiles = 10,SysWow64

;For Vistax64
Plugin.NTAMD64.Files = 10,SysWow64
CoInstall.NTAMD64.CopyFiles = 10,SysWow64

;STI
STI.CopyFiles = 11
APP.CopyFiles = 10

[Generic.NTx64.6.0]
%USB\VID_17A1&PID_0128.DeviceDesc%=USBDCam.NTx64.6.0,USB\VID_17A1&PID_0128

[Generic.NTAMD64.6.0]
%USB\VID_17A1&PID_0128.DeviceDesc%=USBDCam.NTAMD64.6.0,USB\VID_17A1&PID_0128

[Generic.NTx86.6.0]
%USB\VID_17A1&PID_0128.DeviceDesc%=USBDCam.NTx86.6.0,USB\VID_17A1&PID_0128

[Generic.NT]
%USB\VID_17A1&PID_0128.DeviceDesc%=USBDCam.XP,USB\VID_17A1&PID_0128

[Generic]
%USB\VID_17A1&PID_0128.DeviceDesc%=USBDCam,USB\VID_17A1&PID_0128

[USBDCam]
Include   = ks.inf, kscaptur.inf
Needs     = KS.Registration,KSCAPTUR.Registration
AddReg    = USBDCam.AddReg, USBDCam.Prop.AddReg, USBDCam.STI.AddReg, USBDCam.TWAIN.AddReg
;CopyFiles = USBDCam.Files.Ext, Plugin.Files, APP.CopyFiles, STI.CopyFiles

; WIA
;SubClass=StillImage
;DeviceType=3
;DeviceSubType=0x1
;Capabilities=0x00000031
;DeviceData=USBDCam.DeviceData
;ICMProfiles="sRGB Color Space Profile.icm"

;STI
SubClass=StillImage
DeviceType=2
DeviceSubType=0x1
Capabilities=1
Events=USBDCam.STI.Events
DeviceData=USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;PortSelect=NO

[USBDCam.NT]
Include   = ks.inf, kscaptur.inf
Needs     = KS.Registration,KSCAPTUR.Registration.NT
AddReg    = USBDCam.NT.AddReg, USBDCam.STI.AddReg, USBDCam.TWAIN.AddReg
CopyFiles = USBDCam.Files.Ext, Plugin.Files, APP.CopyFiles, STI.CopyFiles

; WIA
;SubClass=StillImage
;DeviceType=3
;DeviceSubType=0x1
;Capabilities=0x00000031
;DeviceData=USBDCam.DeviceData
;ICMProfiles="sRGB Color Space Profile.icm"

;STI
SubClass=StillImage
DeviceType=2
DeviceSubType=0x1
Capabilities=1
Events=USBDCam.STI.Events
DeviceData=USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;PortSelect=NO

[USBDCam.XP]
Include   = ks.inf, kscaptur.inf
Needs     = KS.Registration,KSCAPTUR.Registration.NT
AddReg    = USBDCam.AddReg, USBDCam.STI.AddReg, USBDCam.TWAIN.AddReg
CopyFiles = USBDCam.Files.Ext, Plugin.Files, APP.CopyFiles, STI.CopyFiles

; WIA
;SubClass=StillImage
;DeviceType=3
;DeviceSubType=0x1
;Capabilities=0x00000031
;DeviceData=USBDCam.DeviceData
;ICMProfiles="sRGB Color Space Profile.icm"

;STI
SubClass=StillImage
DeviceType=2
DeviceSubType=0x1
Capabilities=1
Events=USBDCam.STI.Events
DeviceData=USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;PortSelect=NO

[USBDCam.NTx86.6.0]
Include   = ks.inf, kscaptur.inf
Needs     = KS.Registration,KSCAPTUR.Registration.NT
AddReg    = USBDCam.AddReg, USBDCam.STI.AddReg, USBDCam.TWAIN.AddReg
CopyFiles = USBDCam.Files.Ext, Plugin.Files, APP.NTx86.CopyFiles, STI.CopyFiles

; WIA
;SubClass=StillImage
;DeviceType=3
;DeviceSubType=0x1
;Capabilities=0x00000031
;DeviceData=USBDCam.DeviceData
;ICMProfiles="sRGB Color Space Profile.icm"

;STI
SubClass=StillImage
DeviceType=2
DeviceSubType=0x1
Capabilities=1
Events=USBDCam.STI.Events
DeviceData=USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;PortSelect=NO

[USBDCam.NTx64.6.0]
Include   = ks.inf, kscaptur.inf
Needs     = KS.Registration,KSCAPTUR.Registration.NT
AddReg    = USBDCam.AddReg, USBDCam.STI.AddReg, USBDCam.TWAIN.AddReg
CopyFiles = USBDCam.Files.Ext, Plugin.NTx64.Files, APP.NTx64.CopyFiles, STI.CopyFiles

; WIA
;SubClass=StillImage
;DeviceType=3
;DeviceSubType=0x1
;Capabilities=0x00000031
;DeviceData=USBDCam.DeviceData
;ICMProfiles="sRGB Color Space Profile.icm"

;STI
SubClass=StillImage
DeviceType=2
DeviceSubType=0x1
Capabilities=1
Events=USBDCam.STI.Events
DeviceData=USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;PortSelect=NO

[USBDCam.NTAMD64.6.0]
Include   = ks.inf, kscaptur.inf
Needs     = KS.Registration,KSCAPTUR.Registration.NT
AddReg    = USBDCam.AddReg, USBDCam.STI.AddReg, USBDCam.TWAIN.AddReg
CopyFiles = USBDCam.Files.Ext, Plugin.NTAMD64.Files, APP.NTAMD64.CopyFiles, STI.CopyFiles

; WIA
;SubClass=StillImage
;DeviceType=3
;DeviceSubType=0x1
;Capabilities=0x00000031
;DeviceData=USBDCam.DeviceData
;ICMProfiles="sRGB Color Space Profile.icm"

;STI
SubClass=StillImage
DeviceType=2
DeviceSubType=0x1
Capabilities=1
Events=USBDCam.STI.Events
DeviceData=USBDCam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;PortSelect=NO

[USBDCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,cam1690.sys
HKR,,OkToHibernate,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,PageOutWhenUnopened,3,00
HKR,,PowerDownWhenUnopened,3,01

; WIA
;HKR,,HardwareConfig,1,1
;HKR,,USDClass,,"{0527d1d0-88c2-11d2-82c7-00c04f8ec183}"

[USBDCam.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,cam1690.sys
HKR,,OkToHibernate,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,PageOutWhenUnopened,3,00

;Class registration
HKCR,CLSID\{B323F8E0-2E68-11D0-90EA-00AA0060F86C},,,"StillImage"
HKCR,CLSID\{B323F8E0-2E68-11D0-90EA-00AA0060F86C}\InProcServer32,,,%11%\sti.dll
HKCR,CLSID\{B323F8E0-2E68-11D0-90EA-00AA0060F86C}\InProcServer32,ThreadingModel,,"Both"

; WIA
;HKR,,HardwareConfig,1,1
;HKR,,USDClass,,"{0527d1d0-88c2-11d2-82c7-00c04f8ec183}"

[USBDCam.Prop.AddReg]
HKLM,%RunOncePath%,"cam1690",,"rundll32.exe %11%\cam1690.dll,LoadDefaultConfig USB\VID_17A1&PID_0128"

;STI
[USBDCam.STI.AddReg]
HKR,,USDClass,,"{855CBA81-382D-4E25-946C-A68FAD011690}"
HKCR,CLSID\{855CBA81-382D-4E25-946C-A68FAD011690} ,,,%STI_DEVICE_NAME%
HKCR,CLSID\{855CBA81-382D-4E25-946C-A68FAD011690}\InProcServer32,,,%11%\usd1690.dll
HKCR,CLSID\{855CBA81-382D-4E25-946C-A68FAD011690}\InProcServer32,ThreadingModel,,"Both"
;Register Application
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications",%VIDEOAPP%,,"%10%\stic1690.exe /StiDevice:%1 /StiEvent:%2"
;CreatFileName
HKR,,CreateFileName,,AUTO
;AStiDog
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run","Waiting1690",,"C:\Windows\stid1690.exe"
;HKLM,"SOFTWARE\VideoCap","cam1690",0x00010001,0

[USBDCam.DeviceData]
;WIA
;Server=local
;UI Class ID={5d8ef5a3-ac13-11d2-a093-00c04f72dc3c}
;Louis add for sti
;UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
;UI DLL=sti.dll
;STI
TwainDS=%USB\VID_17A1&PID_0128.TWAINDSName%
SpecialInfo="cam1690 USBDCam"

[USBDCam.STI.Events]
; These are events that the device issues to trigger application launching.
LaunchApp=%LAUNCHAPP%,{F03B4B6C-95F0-4C40-B732-E51D96121690},%VIDEOAPP%

[USBDCam.TWAIN.AddReg]
HKLM,%TWAINSetting%,DeviceName,,%USB\VID_17A1&PID_0128.DeviceDesc%
HKLM,%TWAINSetting%,DSName,,%USB\VID_17A1&PID_0128.TWAINDSName%
HKLM,%TWAINSetting%,OEM,,%USB\VID_17A1&PID_0128.TWAINOEMPath%

[USBDCam.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,USBDCam.Interface
AddInterface=%KSCATEGORY_VIDEO%,GLOBAL,USBDCam.Interface

[USBDCam.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,USBDCam.Interface
AddInterface=%KSCATEGORY_VIDEO%,GLOBAL,USBDCam.Interface

[USBDCam.XP.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,USBDCam.Interface
AddInterface=%KSCATEGORY_VIDEO%,GLOBAL,USBDCam.Interface

[USBDCam.NTx86.6.0.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,USBDCam.Interface
AddInterface=%KSCATEGORY_VIDEO%,GLOBAL,USBDCam.Interface

[USBDCam.NTx64.6.0.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,USBDCam.Interface.NTx64.6.0
AddInterface=%KSCATEGORY_VIDEO%,GLOBAL,USBDCam.Interface.NTx64.6.0

[USBDCam.NTAMD64.6.0.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,USBDCam.Interface.NTAMD64.6.0
AddInterface=%KSCATEGORY_VIDEO%,GLOBAL,USBDCam.Interface.NTAMD64.6.0

[USBDCam.Interface]
AddReg=USBDCam.Intf.AddReg

[USBDCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%USB Camera Friendly Name%
HKR,PageAliases,"{71F96464-78F3-11d0-A18C-00A0C9118956}",1,21,E8,C2,3D, 13,47, d2,11, 0xba, 0x41, 0x0, 0xa0, 0xc9, 0xd, 0x2b, 0x5
HKR,PinFactory\1\Interfaces\{5BB95400-52BB-11d2-BA41-00A0C90D2B05},,,
HKCR,CLSID\%InterfaceGUID%\InProcServer32,,,%PluginFile%
HKCR,CLSID\%InterfaceGUID%\InProcServer32,"ThreadingModel",,"Both"
HKCR,CLSID\%PropertyPageGUID%\InProcServer32,,,%PluginFile%
HKCR,CLSID\%PropertyPageGUID%\InProcServer32,"ThreadingModel",,"Both"
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%InterfaceGUID%,,,"CAM1690 KSProxy Extension Interface Handler"
HKLM,System\CurrentControlSet\Control\MediaSets\%InterfaceGUID%\PropertyPages\%PropertyPageGUID%,,,"CAM1690 KSProxy Extension Property Page"

[USBDCam.Interface.NTx64.6.0]
AddReg=USBDCam.Intf.AddReg.NTx64.6.0

[USBDCam.Intf.AddReg.NTx64.6.0]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%USB Camera Friendly Name%
HKR,PageAliases,"{71F96464-78F3-11d0-A18C-00A0C9118956}",1,21,E8,C2,3D, 13,47, d2,11, 0xba, 0x41, 0x0, 0xa0, 0xc9, 0xd, 0x2b, 0x5
HKR,PinFactory\1\Interfaces\{5BB95400-52BB-11d2-BA41-00A0C90D2B05},,,
HKCR,Wow6432Node\CLSID\%InterfaceGUID%\InProcServer32,,0x00020000,%PluginFile_x64%
HKCR,wow6432node\CLSID\%InterfaceGUID%\InProcServer32,"ThreadingModel",,"Both"
HKCR,Wow6432Node\CLSID\%PropertyPageGUID%\InProcServer32,,0x00020000,%PluginFile_x64%
HKCR,wow6432node\CLSID\%PropertyPageGUID%\InProcServer32,"ThreadingModel",,"Both"
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%InterfaceGUID%,,,"CAM1690 KSProxy Extension Interface Handler"
HKLM,System\CurrentControlSet\Control\MediaSets\%InterfaceGUID%\PropertyPages\%PropertyPageGUID%,,,"CAM1690 KSProxy Extension Property Page"

[USBDCam.Interface.NTAMD64.6.0]
AddReg=USBDCam.Intf.AddReg.NTAMD64.6.0

[USBDCam.Intf.AddReg.NTAMD64.6.0]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%USB Camera Friendly Name%
HKR,PageAliases,"{71F96464-78F3-11d0-A18C-00A0C9118956}",1,21,E8,C2,3D, 13,47, d2,11, 0xba, 0x41, 0x0, 0xa0, 0xc9, 0xd, 0x2b, 0x5
HKR,PinFactory\1\Interfaces\{5BB95400-52BB-11d2-BA41-00A0C90D2B05},,,
HKCR,Wow6432Node\CLSID\%InterfaceGUID%\InProcServer32,,0x00020000,%PluginFile_AMD64%
HKCR,wow6432node\CLSID\%InterfaceGUID%\InProcServer32,"ThreadingModel",,"Both"
HKCR,Wow6432Node\CLSID\%PropertyPageGUID%\InProcServer32,,0x00020000,%PluginFile_AMD64%
HKCR,wow6432node\CLSID\%PropertyPageGUID%\InProcServer32,"ThreadingModel",,"Both"
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%InterfaceGUID%,,,"CAM1690 KSProxy Extension Interface Handler"
HKLM,System\CurrentControlSet\Control\MediaSets\%InterfaceGUID%\PropertyPages\%PropertyPageGUID%,,,"CAM1690 KSProxy Extension Property Page"

[USBDCam.NTx86.6.0.Services]
AddService = CAM1690,0x00000002,USBDCam.ServiceInstall

[USBDCam.NTx64.6.0.Services]
AddService = CAM1690,0x00000002,USBDCam.ServiceInstall

[USBDCam.NTAMD64.6.0.Services]
AddService = CAM1690,0x00000002,USBDCam.ServiceInstall

[USBDCam.NTx86.6.0.CoInstallers]
AddReg = CoInstall.AddReg
CopyFiles = CoInstall.CopyFiles

[USBDCam.NTx64.6.0.CoInstallers]
AddReg = CoInstall.AddReg
CopyFiles = CoInstall.CopyFiles,CoInstall.NTx64.CopyFiles

[USBDCam.NTAMD64.6.0.CoInstallers]
AddReg = CoInstall.AddReg
CopyFiles = CoInstall.CopyFiles,CoInstall.NTAMD64.CopyFiles

[USBDCam.NT.Services]
AddService = CAM1690,0x00000002,USBDCam.ServiceInstall

[USBDCam.XP.Services]
AddService = CAM1690,0x00000002,USBDCam.ServiceInstall

[USBDCam.ServiceInstall]
DisplayName   = %USB\VID_17A1&PID_0128.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\System32\Drivers\cam1690.sys

[USBDCam.NT.CoInstallers]
AddReg = CoInstall.AddReg
CopyFiles = CoInstall.CopyFiles

[USBDCam.XP.CoInstallers]
AddReg = CoInstall.AddReg
CopyFiles = CoInstall.CopyFiles

[CoInstall.AddReg]
HKR,,CoInstallers32,0x10000,"cam1690.dll,Cam1690CoInstaller"

[CoInstall.CopyFiles]
cam1690.dll

[CoInstall.NTx64.CopyFiles]
cam1690.dll

[CoInstall.NTAMD64.CopyFiles]
cam1690.dll

[USBDCam.Files.Ext]
cam1690.sys

;STI
[STI.CopyFiles]
usd1690.dll

;STI
[APP.CopyFiles]
stic1690.exe
gdiplus.dll

;STI
[APP.NTx86.CopyFiles]
stic1690.exe
gdiplus.dll
stid1690.exe

;STI
[APP.NTx64.CopyFiles]
stic1690.exe
gdiplus.dll
stid1690.exe

;STI
[APP.NTAMD64.CopyFiles]
stic1690.exe
gdiplus.dll
stid1690.exe

[Plugin.NTx64.Files]
cam1690.ax
cam1690.dll

[Plugin.NTAMD64.Files]
cam1690.ax
cam1690.dll

[Plugin.Files]
cam1690.ax
cam1690.dll

[Strings]

;----------------
; Non-Localizable
;----------------

; note: only register value is case sensitive, key is not.
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO="{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
SERVICE_KERNEL_DRIVER=1
; PnP should use demand start
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

; IHV's extension DLL
; ExtensionDLL = "???.dll"

;----------------
; Localizable
;----------------

Generic="Generic"
GenericMfg="USB Video Camera"
USB\VID_17A1&PID_0128.DeviceDesc="USB 2.0 Compliance JPEG Video Camera"
USB Camera Friendly Name = "JPEG USB Video Camera"
SourceDiskName="Installation diskette 1"
RunOncePath="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
InterfaceGUID="{4974E468-F177-4F9E-BEDE-7B5FE021875D}"
PropertyPageGUID="{F7EFF208-2E89-465F-909F-A6D8BE410E98}"
PluginFile="cam1690.ax"
PluginFile_x64="%SystemRoot%\SysWOW64\cam1690.ax"
PluginFile_AMD64="%SystemRoot%\SysWOW64\cam1690.ax"

;STI
STI_DEVICE_NAME = "cam1690 USBDCam STI USB Camera"
LAUNCHAPP = "cam1690 Launch STI Application"
VIDEOAPP = "cam1690 STI Capture Application"
TWAINSetting = "Software\USBDCam\TWAIN"
USB\VID_17A1&PID_0128.TWAINDSName = "cam1690 USBDCam STI USB Camera"
USB\VID_17A1&PID_0128.TWAINOEMPath = "cam1690 USBDCam"


