;==========================================================================
; PC Camera (SN9C101 + SN9C102) INF (for Windows 98/ME/2000/XP)
; Copyright(c) 2003
; File version: 1.1.6.0
; Last modified: 2005-04-26
;==========================================================================

[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%SX%
CatalogFile.NT=snpstd.cat
DriverVer = 04/26/2005,4.15.1.0

[SourceDisksNames]
1 = %SrcDiskId%,,,

[SourceDisksFiles]
snpstd.sys = 1,,
snpstd.ds = 1,,
snpstd.ini = 1,,
snpstd.src = 1,,
dsnpstd.ax = 1,,
vsnpstd.dll = 1,,
dsnpstd.dll = 1,,
vsnpstd.exe = 1,,
dsnpstd.exe = 1,,
usnpstd.exe = 1,,
csnpstd.dll = 1,,
SnxDSC.ini = 1,,
TwainUI.dll = 1,,

; parameter files
p106std.reg = 1,,
p202std.reg = 1,,
t511std.reg = 1,,
t513std.reg = 1,,
h713std.reg = 1,,
h71rstd.reg = 1,,
m034std.reg = 1,,
m036std.reg = 1,,
cvf1std.reg = 1,,
o763std.reg = 1,,
m033std.reg = 1,,
o76cstd.reg = 1,,
o665std.reg = 1,,
t51dstd.reg = 1,,

[DestinationDirs]
DefaultDestDir=11,               ; LDID_SYS
SX.USBDCam.CopyMsWdmDrivers=10,system32\drivers
SX.USBDCam.CopyDrivers=10,system32\drivers
SX.USBDCam.copytwain=10,twain_32\snpstd
SX.USBDCam.copytwainIni=10
SN.CopySTDFiles=11
SN.CopyVfwExt=11
SN.CopySnapViewer = 10
SN.CopyUninstall = 10
SN.CopyParam = 17
CoInstaller_CopyFiles = 11

[Manufacturer]
%SXTIMfg%=SN

[SN]
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_603f	; SN9C101 + CISVF10
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_602a	; SN9C101 + HV7131 D/E
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_602d	; SN9C101 + HV7131 R
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6028	; SN9C102 + PAS202 
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6029	; SN9C102 + PAS106 
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6009	; SN9C101 + PAS106 
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6030	; SN9C102 + MI0343 MI0360 MI0330
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6024	; SN9C102 + TAS5130
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6025	; SN9C102 + TAS5130
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6005	; SN9C101 + TAS5110
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_602c	; SN9C102 + OV7630
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6019	; SN9C101 + OV7630
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6011	; SN9C101 + OV6650
%UsbDeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_6007	; SN9C101 + TAS5110D

[SX.USBDCam]
DriverVer = 04/26/2005,4.15.1.0
Include=    ks.inf,kscaptur.inf,ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
AddReg=     SX.USBDCam.AddReg,SX.USBCam.default.AddReg,SX.USBCam.Uninstall.AddReg,SX.USBDCam.Intf.AddReg,SX.USBDCam.RegisterParam
CopyFiles=  SX.USBDCam.CopyMsWdmDrivers,SX.USBDCam.CopyDrivers,SN.CopyVfwExt,SX.USBDCam.copytwain,SX.USBDCam.copytwainIni,SN.CopySTDFiles,SN.CopySnapViewer,SN.CopyUninstall,SN.CopyParam
SubClass=   StillImage
DeviceType= 2
DeviceSubType=0x1
Capabilities=1
Events=SNUSD.Events
DeviceData=SN.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

[SX.USBDCam.NT]
DriverVer = 04/26/2005,4.15.1.0
Include=    ks.inf,kscaptur.inf,ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation
AddReg=     SX.USBDCam.AddReg,SX.USBCam.default.AddReg,SX.USBCam.Uninstall.AddReg,SX.USBDCam.Intf.AddReg
CopyFiles=  SX.USBDCam.CopyDrivers,SN.CopyVfwExt,SX.USBDCam.copytwain,SX.USBDCam.copytwainIni,SN.CopySTDFiles,SN.CopySnapViewer,SN.CopyUninstall,SN.CopyParam
SubClass=   StillImage
DeviceType= 3 ; 2003-01-17
DeviceSubType=0x1
Capabilities=1
Events=SNUSD.Events
DeviceData=SN.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

[SX.USBDCam.NT.CoInstallers]
CopyFiles = CoInstaller_CopyFiles
AddReg = CoInstaller_AddReg

[CoInstaller_CopyFiles]
csnpstd.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"csnpstd.dll, CoInstaller"

[RegisterParam]
ParamFile=p106std.reg,p202std.reg,t511std.reg,t513std.reg,h713std.reg,h71rstd.reg,m034std.reg,m036std.reg,cvf1std.reg,o763std.reg,m033std.reg,o76cstd.reg,o665std.reg,t51dstd.reg

[SX.USBDCam.RegisterParam]
HKLM,%RunOncePath%,"snpstd-2",,"rundll32.exe %11%\csnpstd.dll,LoadRegAndReboot p106std.reg,p202std.reg,t511std.reg,t513std.reg,h713std.reg,h71rstd.reg,m034std.reg,m036std.reg,cvf1std.reg,o763std.reg,m033std.reg,o76cstd.reg,o665std.reg,t51dstd.reg"

[SX.USBDCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,snpstd.sys
HKR,,PageOutWhenUnopened,3,00
HKR,,OkToHibernate,3,01 

HKR,,HardwareConfig,1,1
HKR,,USDClass,,{E50915BC-EB0D-4cfe-A39E-CD4CB7C6928F}
HKCR,CLSID\{E50915BC-EB0D-4cfe-A39E-CD4CB7C6928F},,,"STI Camera USD"
HKCR,CLSID\{E50915BC-EB0D-4cfe-A39E-CD4CB7C6928F}\InProcServer32,,,%11%\dsnpstd.dll
HKCR,CLSID\{E50915BC-EB0D-4cfe-A39E-CD4CB7C6928F}\InProcServer32,ThreadingModel,,"Apartment"
HKR,,CreateFileName,,"USB"

;Auto start and Snapshot control
;HKR,Settings,STICapability,0x00010001,1 ; bit0: auto-start enable/disable
;HKR,Settings,SnapshotCapability,0x00010001,3 ; bit0: snapshot enable/disable; bit1: snapshot notification enable/disable

HKCR,CLSID\{08EE40DF-DF8B-40cf-81B2-8E40E7D40C27},,,%PlugIn_CustomCameraProp%
HKCR,CLSID\{08EE40DF-DF8B-40cf-81B2-8E40E7D40C27}\InprocServer32,,,dsnpstd.ax
HKCR,CLSID\{08EE40DF-DF8B-40cf-81B2-8E40E7D40C27}\InprocServer32,ThreadingModel,,Both
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{08EE40DF-DF8B-40cf-81B2-8E40E7D40C27},,,%PlugIn_CustomCameraProp%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{08EE40DF-DF8B-40cf-81B2-8E40E7D40C27},IID,1,DF,40,EE,08, 8B,DF, cf,40, 0x81, 0xB2, 0x8E, 0x40, 0xE7, 0D4, 0x0C, 0x27
HKCR,CLSID\{78BF286D-4F7D-4d2e-AD16-7CFBCDF710FE},,,%PropPage_CustomCameraProp%
HKCR,CLSID\{78BF286D-4F7D-4d2e-AD16-7CFBCDF710FE}\InprocServer32,,,dsnpstd.ax
HKCR,CLSID\{78BF286D-4F7D-4d2e-AD16-7CFBCDF710FE}\InprocServer32,ThreadingModel,,Both
HKLM,System\CurrentControlSet\Control\MediaSets\{08EE40DF-DF8B-40cf-81B2-8E40E7D40C27}\PropertyPages\{78BF286D-4F7D-4d2e-AD16-7CFBCDF710FE},,,%PropPage_CustomCameraProp%

HKLM,%RunOncePath%,"snpstd",,"rundll32.exe %11%\csnpstd.dll,DoShellExecute %10%\vsnpstd.exe"
HKLM,%RunPath%,"snpstd",,"%10%\vsnpstd.exe"

[SX.USBCam.Uninstall.AddReg]
;HKLM,"%UninstallRegistryPath%","DisplayName",0x00000000,"%UsbDeviceDesc%"
;HKLM,"%UninstallRegistryPath%","UninstallString",0x00000000,"%10%\usnpstd.exe"

[SN.DeviceData]
TwainDS="%UsbDeviceDesc%"

[SNUSD.Events]
SnapShotChanged="%SnapShotChanged%",{D632C7C5-CC62-4327-8C6B-56A02B23BAAF},*

[SX.USBDCam.CopyMsWdmDrivers]
stream.sys

[SX.USBDCam.CopyDrivers]
snpstd.sys

[SX.USBDCam.copytwain]
snpstd.ds
SnxDSC.ini
TwainUI.dll

[SX.USBDCam.copytwainIni]
snpstd.ini
snpstd.src

[SN.CopySTDFiles]
dsnpstd.dll
csnpstd.dll

[SN.CopyVfwExt]
dsnpstd.ax
vsnpstd.dll,,,4

[SN.CopySnapViewer]
vsnpstd.exe

[SN.CopyUninstall]
usnpstd.exe

[SN.CopyParam]
p106std.reg
p202std.reg
t511std.reg
t513std.reg
h713std.reg
h71rstd.reg
m034std.reg
m036std.reg
cvf1std.reg
o763std.reg
m033std.reg
o76cstd.reg
o665std.reg
t51dstd.reg

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

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

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

[SX.USBCam.default.AddReg]
; VID&PID

; SUI101 device name
HKLM,"%SUI102DefaultPath%","DeviceName",0x00000000,"%UsbDeviceDesc%"

;
; PAS106 default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters


;
; PAS202 default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters

;
; HYNIX7131 D/E default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters

;
; HYNIX7131 /R default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters

;
; TAS5110 default settings
;

;
; TAS5130 default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters

;
; Micron 0343 default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters

;
; Micron 0360 default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters

;
; CI SVF10 default settings
;
; Default Color parameters
;Default AE parameters
;Default driver parameters


[SX.USBDCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%UsbDeviceDesc%
HKR,,ExtensionDLL,,%SN.ExtensionDLL%
HKR,PageAliases,"{71F96464-78F3-11d0-A18C-00A0C9118956}",1,6D,28,BF,78, 7D,4F, 2E,4D, 0xAD, 0x16, 0x7C, 0xFB, 0xCD, 0xF7, 0x10, 0xFE
HKR,PageAliases,"{71F96465-78F3-11d0-A18C-00A0C9118956}",1,6D,28,BF,78, 7D,4F, 2E,4D, 0xAD, 0x16, 0x7C, 0xFB, 0xCD, 0xF7, 0x10, 0xFE

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

[SX.USBDCam.ServiceInstall]
DisplayName   = %UsbDeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\snpstd.sys

[Strings]
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
SERVICE_KERNEL_DRIVER=1
; PnP should use demand start
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

;----------------
; Localizable
;----------------
CameraClassName="Camera device"
SX="Sonix"
SXTIMfg=""
UsbDeviceDesc ="USB PC Camera (SN9C102)"
SN.ExtensionDLL="vsnpstd"
SUI102DefaultPath = "System\Sonix\PCCAM\snpstd"
DefaultSettingPath = "System\Sonix\PCCAM\snpstd\DefaultSettings"
RunOncePath = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
RunPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
UninstallRegistryPath = "Software\Microsoft\Windows\CurrentVersion\Uninstall\snpstd"
SnapShotChanged="SnapShot Changed Event"
PropPage_CustomCameraProp="Custom Camera Property Page"
PlugIn_CustomCameraProp= "WDM Custom ICustomCamera Interface handler"
SrcDiskId = "PCCam Installation Disk"
