;====================================================================================
; Digital Camera (SN9C3010, SN9C2068, SN9C2069) INF (for Windows 98/ME/2000/XP)
; Copyright(c) 2004
; File version: 1.3.3.0
; Last modified: 2004-12-17
;====================================================================================

[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%SX%
CatalogFile.NT=sntu301.cat
DriverVer = 12/17/2004,2.3.1.0

[Manufacturer]
%SXTIMfg%=SN

[SN]
; =====
; 300
; =====
%SUI300.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8150&MI_01	; SN9C3010A/B , Mass Storage (Interface 0) + Video Mode (Interface 1)
%SUI300.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8152&MI_01	; SN9C3010A/B , Mass Storage (Interface 0) + Video Mode (Interface 1)
%SUI300.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8154&MI_01	; SN9C3010A/B , Mass Storage (Interface 0) + Video Mode (Interface 1)
%SUI300.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8156&MI_01	; SN9C3010A/B , Mass Storage (Interface 0) + Video Mode (Interface 1)

; =====
; 305
; =====
;%SUI305.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8111		; Mass Storage Only
%SUI305.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8112		; Video Mode
%SUI305.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8113&MI_01	; Mass Storage (Interface 0) + Video Mode (Interface 1)
%SUI305.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8114&MI_00	; Video Mode (Interface 0) + Audio Mode (Interface 1)
%SUI305.DeviceDesc%=SX.USBDCam,USB\VID_0c45&PID_8115&MI_01	; Mass Storage (Interface 0) + Video Mode (Interface 1) + Audio Mode (Interface 2)
; ==============
; 300 Usb Device
; ==============
%USBDevice.DeviceDesc%=Usb300.Dev,USB\VID_0C45&PID_8150&MI_00 		; Sonix Turn Key (PC Mode)
%USBDevice.DeviceDesc%=Usb300.Dev,USB\VID_0C45&PID_8152&MI_00 		; Sonix Turn Key (PC Mode)
%USBDevice.DeviceDesc%=Usb300.Dev,USB\VID_0C45&PID_8154&MI_00 		; Sonix Turn Key (PC Mode)
%USBDevice.DeviceDesc%=Usb300.Dev,USB\VID_0C45&PID_8156&MI_00 		; Sonix Turn Key (PC Mode)

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames]
1 = %SrcDiskId%,,,

[SourceDisksFiles] ; files for Windows 98/ME
sntu301.sys = 1,.\WIN98,
dsntu301.ax = 1,,
vsntu301.dll = 1,,
dsntu301.exe = 1,,
usb301.sys = 1,.\WIN98,

[SourceDisksFiles.x86] ; files for Windows 2000/XP
sntu301.sys = 1
dsntu301.ax = 1
vsntu301.dll = 1
dsntu301.exe = 1
usb301.sys = 1

[DestinationDirs]
DefaultDestDir=11,               ; LDID_SYS
SX.USBDCam.CopyMsDrivers=10,system32\drivers
SX.USBDCam.CopyDrivers=10,system32\drivers
SN.CopyVfwExt=11,
SN.CopyUninstall = 10,
USBDevice.CopyDriver=10,System32\Drivers

;==============================================================================
; 300 Usb Device
;==============================================================================

[Usb300.Dev]
CopyFiles=USBDevice.CopyDriver
AddReg=USBDevice.AddReg

[Usb300.Dev.NT]
CopyFiles=USBDevice.CopyDriver
AddReg=USBDevice.AddReg

[Usb300.Dev.NT.Services]
Addservice = SNUSB300,0x00000002,Usb300.AddService

[Usb300.AddService]
DisplayName    = %USB_SERVICE_DISPLAY_NAME%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\usb301.sys
LoadOrderGroup = Base

[USBDevice.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usb301.sys

[USBDevice.CopyDriver]
usb301.sys


;==============================================================================
; PC Camera Mode
;==============================================================================

[SX.USBDCam]
DriverVer = 12/17/2004,2.3.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.Uninst.AddReg,SX.USBDCam.Intf.AddReg
CopyFiles=  SX.USBDCam.CopyMsDrivers,SX.USBDCam.CopyDrivers,SN.CopyVfwExt,SN.CopyUninstall 
SubClass=   StillImage
DeviceType =    3
DeviceSubType = 0x1
Capabilities =  0x11
;Events=SNUSD.Events
ICMProfiles="sRGB Color Space Profile.icm"

[SX.USBDCam.NT]
DriverVer = 12/17/2004,2.3.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.Uninst.AddReg,SX.USBDCam.Intf.AddReg
CopyFiles=  SX.USBDCam.CopyDrivers,SN.CopyVfwExt,SN.CopyUninstall 
SubClass=   StillImage
DeviceType =    3
DeviceSubType = 0x1
Capabilities =  0x11
DeviceData =    SN.USBDCam.DeviceData
;Events=SNUSD.Events
ICMProfiles="sRGB Color Space Profile.icm"

[SN.USBDCam.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
UI DLL=sti.dll

[SX.USBDCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,sntu301.sys
HKR,,PageOutWhenUnopened,3,00
HKR,,OkToHibernate,3,01  
HKR,,HardwareConfig,1,1
;HKR,,USDClass,,"{B1CB3B36-47DD-4cb4-ACE5-753F92E79951}"
;HKCR,CLSID\{B1CB3B36-47DD-4cb4-ACE5-753F92E79951},,,"STI Camera USD"
;HKCR,CLSID\{B1CB3B36-47DD-4cb4-ACE5-753F92E79951}\InProcServer32,,,%11%\dsntu301.dll
;HKCR,CLSID\{B1CB3B36-47DD-4cb4-ACE5-753F92E79951}\InProcServer32,ThreadingModel,,"Apartment"
HKR,,CreateFileName,,"USB"
HKR,,USDClass,,{0527d1d0-88c2-11d2-82c7-00c04f8ec183}
HKCR,CLSID\{E1CB7E87-92F3-4126-9B17-3256793136C0},,,%PlugIn_CustomCameraProp%
HKCR,CLSID\{E1CB7E87-92F3-4126-9B17-3256793136C0}\InprocServer32,,,dsntu301.ax
HKCR,CLSID\{E1CB7E87-92F3-4126-9B17-3256793136C0}\InprocServer32,ThreadingModel,,Both
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{E1CB7E87-92F3-4126-9B17-3256793136C0},,,%PlugIn_CustomCameraProp%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{E1CB7E87-92F3-4126-9B17-3256793136C0},IID,1,87,7E,CB,E1, F3,92, 26,41, 0x9B, 0x17, 0x32, 0x56, 0x79, 031, 0x36, 0xC0
HKCR,CLSID\{075E7491-1C09-4a28-A5C0-B792B18BC9E6},,,%PropPage_CustomCameraProp%
HKCR,CLSID\{075E7491-1C09-4a28-A5C0-B792B18BC9E6}\InprocServer32,,,dsntu301.ax
HKCR,CLSID\{075E7491-1C09-4a28-A5C0-B792B18BC9E6}\InprocServer32,ThreadingModel,,Both
HKLM,System\CurrentControlSet\Control\MediaSets\{E1CB7E87-92F3-4126-9B17-3256793136C0}\PropertyPages\{075E7491-1C09-4a28-A5C0-B792B18BC9E6},,,%PropPage_CustomCameraProp%

[SX.USBCam.Uninst.AddReg]

[SX.USBDCam.CopyMsDrivers]
stream.sys

[SX.USBDCam.CopyDrivers]
sntu301.sys

[SN.CopyVfwExt]
dsntu301.ax
vsntu301.dll

[SN.CopyUninstall]
dsntu301.exe

[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]
; SUI300 device name
HKLM,"%SUI300DefaultPath%","DeviceName",0x00000000,"%SUI300.DeviceDesc%"


; =================
; SUI300 VID, PID
; =================
HKLM,"%SUI300DefaultPath%\300VP","VP00",0x00010001,205881680  ;VID : 0x0c45, PID : 0x8150 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP01",0x00010001,205881681  ;VID : 0x0c45, PID : 0x8151 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP02",0x00010001,205881682  ;VID : 0x0c45, PID : 0x8152 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP03",0x00010001,205881683  ;VID : 0x0c45, PID : 0x8153 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP04",0x00010001,205881684  ;VID : 0x0c45, PID : 0x8154 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP05",0x00010001,205881685  ;VID : 0x0c45, PID : 0x8155 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP06",0x00010001,205881686  ;VID : 0x0c45, PID : 0x8156 (TurnKey)
HKLM,"%SUI300DefaultPath%\300VP","VP07",0x00010001,205881687  ;VID : 0x0c45, PID : 0x8157 (TurnKey)

; ===============
; SUI305 VID, PID
; ===============
HKLM,"%SUI300DefaultPath%\305VP","VP00",0x00010001,205881617  ;VID : 0x0c45, PID : 0x8111 (TurnKey)
; Interface 0
HKLM,"%SUI300DefaultPath%\305VPI0","VP00",0x00010001,205881618  ;VID : 0x0c45, PID : 0x8112 (TurnKey)
HKLM,"%SUI300DefaultPath%\305VPI0","VP01",0x00010001,205881620  ;VID : 0x0c45, PID : 0x8114 (TurnKey)
; Interface 1
HKLM,"%SUI300DefaultPath%\305VPI1","VP00",0x00010001,205881619  ;VID : 0x0c45, PID : 0x8113 (TurnKey)
HKLM,"%SUI300DefaultPath%\305VPI1","VP01",0x00010001,205881621  ;VID : 0x0c45, PID : 0x8115 (TurnKey)
; Customer VID, PID

;
; OV2610 default settings
;
HKLM,"%DefaultSettingPath%\OV2610",Brightness,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",Contrast,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",Gamma,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",Hue,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",Saturation,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",Sharpness,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",USBBandWidthAuto,0x00010001,1
HKLM,"%DefaultSettingPath%\OV2610",USBBandWidth,0x00010001,7
HKLM,"%DefaultSettingPath%\OV2610",WhiteBalanceAuto,0x00010001,1
HKLM,"%DefaultSettingPath%\OV2610",WhiteBalance,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",ExposureAuto,0x00010001,1
HKLM,"%DefaultSettingPath%\OV2610",Exposure,0x00010001,50
HKLM,"%DefaultSettingPath%\OV2610",Flicker,0x00010001,60
HKLM,"%DefaultSettingPath%\OV2610",Mirror,0x00010001,0
HKLM,"%DefaultSettingPath%\OV2610",VerticalFlip,0x00010001,0
HKLM,"%DefaultSettingPath%\OV2610",BacklightCompensation,0x00010001,0
HKLM,"%DefaultSettingPath%\OV2610",RGain,0x00010001,0
HKLM,"%DefaultSettingPath%\OV2610",BGain,0x00010001,0
HKLM,"%DefaultSettingPath%\OV2610",GGain,0x00010001,0
HKLM,"%DefaultSettingPath%\OV2610",SnapShotImageSize,0x00010001,5 ;default image size = VGA (5)
HKLM,"%DefaultSettingPath%\OV2610",ImageFormatControl,0x00010001,15877 ; 0x3e05; bit0-7 : Default Image Size = (RGB24, VGA), bit8-20 : Image format enable mask

[SX.USBDCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%SUI300.DeviceDesc%
HKR,,ExtensionDLL,,%SN.ExtensionDLL%

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

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

;==============================================================================
; String Table
;==============================================================================
[Strings]
SrcDiskId = "Digital Camera Installation Disk"
KSCATEGORY_CAPTURE ="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
ProxyVCap.CLSID ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
SERVICE_DISPLAY_NAME = "sntu300S"
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 3
SERVICE_ERROR_NORMAL = 1
PropPage_CustomCameraProp ="Custom Camera Property Page"
PlugIn_CustomCameraProp = "WDM Custom ICustomCamera Interface handler"
SN.ExtensionDLL = "vsntu301.dll"  ;"vsntu300"
;SnapShotChanged = "SnapShot Changed Event"
SUI300DefaultPath = "System\Sonix\PCCAM\sntu300"
DefaultSettingPath = "System\Sonix\PCCAM\sntu300\DefaultSettings"
UninstallRegistryPath = "Software\Microsoft\Windows\CurrentVersion\Uninstall\sntu300"
USB_SERVICE_DISPLAY_NAME= "SNUSB300"

;----------------
; Localizable
;----------------
SX = "Sonix"
SXTIMfg = "Sonix"
USBDevice.DeviceDesc = "USB Device (Digital Camera)"
SUI300.DeviceDesc = "USB PC Camera (300 Series)"
SUI305.DeviceDesc = "USB PC Camera (305 Series)"