;---------------------------------------------------------------------------
; V0100DEV.INF -- Creative Camera Model Number VF0100 installation
; Copyright (c) 2004 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
Signature=  "$CHICAGO$"
LayoutFile= Layout.inf,Layout1.inf,Layout2.inf
Class=      Image
ClassGUID=  {6BDD1FC6-810F-11D0-BEC7-08002BE2092F}
CatalogFile=V0100Dev.cat
Provider=   %szMfg%
DriverVer=  07/26/2004,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative

[DestinationDirs]
DefaultDestDir=11
CtlCam.CopyKernelDrivers=10,system32\drivers
CtlCam.CopyKernelDrivers.SYS=10,system32\drivers
CtlCam.CopyUserDrivers=11
CtlCam.CopyUserDrivers.SYS=11
CtlCam.W2K.CopyWinFiles=10
CtlCam.CopyWinFiles=10
CtlCam.CopyTwainFiles=10,twain_32\Creative\VF0100
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

[Creative]
%szDeviceDesc%    =CtlCam.Device,USB\VID_041E&PID_4029
%szDeviceDesc%    =CtlCam.Device,USB\VID_041E&PID_403f

[CtlCam.Device]
DriverVer=     07/26/2004,%szVersion%
Include=       Ks.inf,Kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
AddReg=        CtlCam.Basic.AddReg,CtlCam.Custom.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg,CtlCam.TWAIN.AddReg,VM.HWConfig.AddReg,VM.USBDCam.DefaultSettings
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyKernelDrivers.SYS,CtlCam.CopyUserDrivers,CtlCam.CopyUserDrivers.SYS,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopyVfwDriver
VendorSetup=   %szInsPlugIn%,NonCoInstSetupEP
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  1
DeviceData=    CtlCam.DeviceData
Events=        CtlCam.StiEvents
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.Device.NT]
Include=       Ks.inf,Kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        CtlCam.Basic.AddReg,CtlCam.Custom.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.AddReg.NT,CtlCam.STI.AddReg.NT,CtlCam.TWAIN.AddReg,VM.HWConfig.AddReg,VM.USBDCam.DefaultSettings
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  1
DeviceData=    CtlCam.DeviceData
Events=        CtlCam.StiEvents
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.DeviceData]
TwainDS=%szTwainDSDesc%

[CtlCam.StiEvents]         ; Creative
; ** For STI driver registration only. If there is a WIA driver, do not use this method. **
NewPicture= %szStiEventNewPic%,%szSTIEventNewPic.GUID%,%szStiAppName%
LaunchApp=  %szStiEventLaunchApp%,%szSTIEventLaunch.GUID%,%szStiAppName%

[CtlCam.STI.AddReg.NT]     ; Creative
; ** Fix WinXP resource string replacement problem **
HKR,Events\NewPicture,,0,%szStiEventNewPic%
HKR,Events\NewPicture,GUID,0,%szSTIEventNewPic.GUID%
HKR,Events\NewPicture,LaunchApplications,0,%szStiAppName%
HKR,Events\LaunchApp,,0,%szStiEventLaunchApp%
HKR,Events\LaunchApp,GUID,0,%szSTIEventLaunch.GUID%
HKR,Events\LaunchApp,LaunchApplications,0,%szStiAppName%

[CtlCam.Device.NT.CoInstallers]
AddReg=     CtlCam.CoInst.AddReg
CopyFiles=  CTL.CopyCoInstFile

[CtlCam.CoInst.AddReg]     ; Creative
HKR,,CoInstallers32,0x00010000,"%szInsPlugIn%,CoInstallerEntryPoint"

[CtlCam.Uns.AddReg]        ; Creative
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"

[CtlCam.Uns.AddReg.NT]     ; Creative
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext NT -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"

[CtlCam.Basic.AddReg]      ; Creative
; ** Driver package version **
HKLM,%szConfigRegistry%,"Version",0,%szVersion%

; ** Device driver **
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
;;HKR,,PageOutWhenUnopened,3,00
;;HKR,,PowerDownWhenUnopened,3,01
;;HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,CreateFileName,,"USB"
HKR,,CtProductName,,%szProductName%

; ** For add/remove programs applet **
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKCR,CLSID\%szSTIDevice.GUID%,,,%szStillImageDesc%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,,,%11%\%szStiDriver%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,ThreadingModel,,"Apartment"

[CtlCam.Custom.AddReg]

[CtlCam.Vfw.AddReg]     ; Creative
; ** For Video For Window driver in Windows 98 and ME **
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwBaseFileName%.drv"

[CtlCam.Vfw.AddReg.NT]  ; Creative
; ** For Video For Window driver in Windows NT **
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwBaseFileName%.dll"

[CtlCam.UpdateIni]
system.ini,drivers32,,"VIDC.I420=msh263.drv",0                       ; Creative
system.ini,drivers,,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",0   ; Creative

[CtlCam.Device.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface

[CtlCam.Device.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface

[CtlCam.Interface]
AddReg=CtlCam.Intf.AddReg

[CtlCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVidCap.CLSID%
HKR,,ExtensionDLL,,%szExtPageFile%
HKR,,FriendlyName,,%szDeviceDesc%

[CtlCam.Device.NT.Services]
AddService=%szVidServiceName%,0x00000002,CtlCam.ServiceInstall

[CtlCam.ServiceInstall]
DisplayName=%szDeviceDesc%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\%szVideoDriver%

[CtlCam.TWAIN.AddReg]
HKLM,%szTWAINSetting%,DeviceName,,%szTwainDSDesc%
HKLM,%szTWAINSetting%,DSName,,%szTwainDSDesc%

;************************************
;*     Hardware Configuration       *
;************************************
[VM.HWConfig.Addreg]
;****
; 1
;****

HKR,%PB0330%,CMD,          		0x00001,FF,20,00,00, F0,01,03,00,F0,02,10,30

HKR,%PB0330%,Initial,			0X00001,00,00,01,cc,00,08,00,cc,00,10,0a,cc,00,02,00,cc,00,03,02,cc,\
						00,04,80,cc,00,05,01,cc,00,06,e0,cc,00,01,01,cc,00,12,05,cc,\
						00,12,07,cc,00,98,00,cc,00,9a,00,cc,01,1a,00,cc,01,1c,00,cc,\
						00,02,00,dd,00,12,05,cc,01,00,06,bb,02,00,11,bb,03,01,e5,bb,\
						04,02,85,bb,06,00,03,bb,07,30,02,bb,20,11,00,bb,2f,f7,b0,bb,\
						30,00,04,bb,31,00,00,bb,34,01,00,bb,35,00,60,bb,3d,06,8f,bb,\
						40,01,e0,bb,58,00,78,bb,62,04,11,bb,01,01,37,cc,00,12,05,cc,\
						00,87,10,cc,01,00,0d,cc,01,89,06,cc,01,ad,00,cc,01,c5,03,cc,\
						01,cb,13,cc,02,50,08,cc,03,01,08,cc,01,a8,60,cc,01,8d,6c,cc

HKR,%PB0330%,InitialScale,		0X00001,00,00,01,cc,00,08,00,cc,00,10,0a,cc,00,02,10,cc,00,03,02,cc,\
						00,04,80,cc,00,05,01,cc,00,06,e0,cc,00,01,01,cc,00,12,05,cc,\
						00,12,07,cc,00,98,00,cc,00,9a,00,cc,01,1a,00,cc,01,1c,00,cc,\
						00,02,00,dd,00,12,05,cc,01,00,06,bb,02,00,11,bb,03,01,e7,bb,\
						04,02,87,bb,06,00,03,bb,07,30,02,bb,20,11,00,bb,2f,f7,b0,bb,\
						30,00,04,bb,31,00,00,bb,34,01,00,bb,35,00,60,bb,3d,06,8f,bb,\
						40,01,e0,bb,58,00,78,bb,62,04,11,bb,00,87,10,cc,01,01,37,cc,\
						00,12,05,cc,01,00,0d,cc,01,89,06,cc,01,ad,00,cc,01,c5,03,cc,\
						01,cb,13,cc,02,50,08,cc,03,01,08,cc,01,a8,60,cc,01,8d,6c,cc

HKR,%PB0330%\AE,50HZ,			0X00001,00,19,00,cc,05,00,5c,bb,09,01,aa,bb,10,00,01,bb,01,1d,60,cc,\
						01,90,00,cc,01,91,07,cc,01,92,c4,cc,01,95,00,cc,01,96,00,cc,\
						01,97,47,cc,01,8c,10,cc,01,8f,20,cc,01,a9,14,cc,01,aa,24,cc,\
						00,1d,5c,cc,00,1e,90,cc,00,1f,c8,cc,00,20,ff,cc

HKR,%PB0330%\AE,50HZScale,		0X00001,00,19,00,cc,05,00,66,bb,09,02,b2,bb,10,00,02,bb,01,1d,60,cc,\
						01,90,00,cc,01,91,07,cc,01,92,8c,cc,01,95,00,cc,01,96,00,cc,\
						01,97,8a,cc,01,8c,10,cc,01,8f,20,cc,01,a9,14,cc,01,aa,24,cc,\
						00,1d,d7,cc,00,1e,f0,cc,00,1f,f8,cc,00,20,ff,cc

HKR,%PB0330%\AE,60HZ,			0X00001,00,19,00,cc,05,00,35,bb,09,01,74,bb,10,00,01,bb,01,1d,60,cc,\
						01,90,00,cc,01,91,07,cc,01,92,fe,cc,01,95,00,cc,01,96,00,cc,\
						01,97,3e,cc,01,8c,10,cc,01,8f,20,cc,01,a9,14,cc,01,aa,24,cc,\
						00,1d,35,cc,00,1e,50,cc,00,1f,90,cc,00,20,d0,cc

HKR,%PB0330%\AE,60HZScale,		0X00001,00,19,00,cc,05,00,35,bb,09,02,6c,bb,10,00,02,bb,01,1d,60,cc,\
						01,90,00,cc,01,91,07,cc,01,92,c0,cc,01,95,00,cc,01,96,00,cc,\
						01,97,7c,cc,01,8c,10,cc,01,8f,20,cc,01,a9,14,cc,01,aa,24,cc,\
						00,1d,35,cc,00,1e,50,cc,00,1f,90,cc,00,20,d0,cc

HKR,%PB0330%\AE,NoFliker,		0X00001,00,19,00,cc,05,00,09,bb,09,02,40,bb,10,00,02,bb,01,1d,60,cc,\
						01,90,00,cc,01,91,07,cc,01,92,f0,cc,01,95,00,cc,01,96,00,cc,\
						01,97,01,cc,01,8c,10,cc,01,8f,20,cc,01,a9,00,cc,01,aa,00,cc,\
						00,1d,09,cc,00,1e,40,cc,00,1f,90,cc,00,20,e0,cc

HKR,%PB0330%\AE,NoFlikerScale,		0X00001,00,19,00,cc,05,00,35,bb,09,01,80,bb,10,00,01,bb,01,1d,60,cc,\
						01,90,00,cc,01,91,07,cc,01,92,f0,cc,01,95,00,cc,01,96,00,cc,\
						01,97,01,cc,01,8c,10,cc,01,8f,20,cc,01,a9,00,cc,01,aa,00,cc,\
						00,1d,35,cc,00,1e,60,cc,00,1f,90,cc,00,20,e0,cc

;****************************
;** Default Setting 
;****************************

[VM.USBDCam.DefaultSettings]
;-----------------
; Current Settings
;-----------------
;Standard property
HKR,Settings,TASCGain,0x10001,0
HKR,Settings,AVRFil,0x10001,0
HKR,Settings,MidFil,0x10001,0
HKR,Settings,VideoFMT,0x10001,0
HKR,Settings,TestMode,0x10001,0
HKR,Settings,Brightness,0x10001,20
HKR,Settings,Contrast,0x10001,15
HKR,Settings,Hue,0x10001,18
HKR,Settings,Saturation,0x10001,50
HKR,Settings,Sharpness,0x10001,3
HKR,Settings,WhiteBalance,0x10001,1
HKR,Settings,BackLight,0x10001,0
HKR,Settings,ColorEnable,0x10001,1

;Custom property
HKR,Settings,FrameRate,0x10001,7
HKR,Settings,Exposure,0x10001,5
HKR,Settings,Gain,0x10001,128
HKR,Settings,Mirror,0x10001,0
HKR,Settings,BandWidth,0x10001,7
HKR,Settings,Flicker,0x10001,2
HKR,Settings,Register,0x10001,0
HKR,Settings,SerialNo,0x10001,1
HKR,Settings,Default,0x10001,1

;Added by Hunter
HKR,Settings,ExposureAuto,0x10001,1
HKR,Settings,WhiteBalanceAuto,0x10001,1
HKR,Settings,GainAuto,0x10001,1
HKR,Settings,Vertical,0x10001,0
HKR,Settings,BandWidthAuto,0x10001,1
HKR,Settings,Rgain,0x10001,64
HKR,Settings,Ggain,0x10001,64
HKR,Settings,Bgain,0x10001,64
HKR,Settings,SharpT,1,1

;Sensor specified settings

HKR,%PB0330%\Settings,Gamma,		0x00001,03
HKR,%PB0330%\Settings,GammaT,		0x00001,04,16,30,4e,68,81,98,ac,be,cd,da,e4,ed,f5,fb,ff,0c,16,1b,1c,\
						19,18,15,12,10,0d,0b,09,08,06,05,03
HKR,%PB0330%\Settings,MatrixT,		0x00001,50,f8,f8,f8,50,f8,f8,f8,50
HKR,%PB0330%\Settings,RJMatrixT,	0x00001,50,f8,f8,f8,50,f8,f8,f8,50

; ----------------------------- FILES ---------------------------------

[CTL.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
V0100Vid.sys

[CtlCam.CopyKernelDrivers.SYS]   ; Required in Win98
stream.sys     ; from Microsoft
usbcamd.sys    ; from Microsoft

[CtlCam.CopyUserDrivers]
V0100Sti.dll,,,COPYFLG_FORCE_FILE_IN_USE
V0100Hwx.dll   ; from Creative
V0100Pin.dll   ; from Creative
V0100Pin.crl   ; from Creative
V0100Ext.ax    ; from Creative
V0100Ext.crl   ; from Creative
V0100Srv.exe   ; from Creative
CtCamMgr.dll   ; from Creative

[CtlCam.CopyUserDrivers.SYS]
Msh263.drv     ; from Microsoft

[CtlCam.CopyTwainFiles]
V0100Twn.ds
CtTwain.bff
CtTwain.crl
CtTwain.dll
gdiplus.dll
HookWnd.dll

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe   ; from Creative
V0100Cfg.exe   ; from Creative
VF0100.uns     ; from Creative

[CtlCam.CopyWinFiles]
CtDrvIns.exe   ; from Creative
V0100Cfg.exe   ; from Creative
VF0100.uns     ; from Creative
Vfwupd.exe

[CtlCam.CopyVfwDriver]
V0100Vfw.drv   ; from Creative

[CtlCam.W2K.CopyVfwDriver]
V0100Vfw.dll   ; from Creative

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
V0100Vid.sys=1,,
V0100Twn.ds=1,,
CtTwain.bff=1,,
CtTwain.crl=1,,
CtTwain.dll=1,,
gdiplus.dll=1,,
HookWnd.dll=1,,
V0100Hwx.dll=1,,
VfwUpd.exe=1,,
V0100Ext.ax=1,,
V0100Ext.crl=1,,
V0100Srv.exe=1,,
V0100Vfw.drv=1,,
V0100Vfw.dll=1,,
V0100Pin.dll=1,,
V0100Pin.crl=1,,
CtDrvIns.exe=1,,
CtCamMgr.dll=1,,
V0100Cfg.exe=1,,
VF0100.uns=1,,
V0100sti.dll=1,,
;-----------------------  STRINGS DEFINITION ---------------------------------

[Strings]
;--------------------------------
; System related. Do not change.
;--------------------------------
; ** Note: only register value is case sensitive, key is not. **
ProxyVidCap.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
SERVICE_AUTO_START=2

MSMediaInterfaces       ="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaSets             ="System\CurrentControlSet\Control\MediaSets"
MSMMDriverDesc          ="SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc"
MSMMDrivers             ="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32"
MSRunOnce               ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSUninstall             ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSRun                   ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSMediaResourcesMSVideo ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSDefStreamConfig.GUID  ="{71F96467-78F3-11d0-A18C-00A0C9118956}"
MSDefCameraCtrl.GUID    ="{71F96465-78F3-11d0-A18C-00A0C9118956}"
MSDefVideoProcAmp.GUID  ="{71F96464-78F3-11d0-A18C-00A0C9118956}"


;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg                   ="Creative Labs"
szDeviceDesc            ="Creative WebCam Vista Pro"
szProductName           ="Creative WebCam Vista Pro" 
szConfigRegistry        ="Software\Creative Tech\Web Cameras\VF0100"

szVfwKey                ="VF0100VFW"
szVfwDeviceDesc         ="Creative WebCam Vista Pro (VFW)"
szTwainDSDesc           ="Creative WebCam Vista Pro"
szUninstall             ="Creative VF0100"
szUninstallDisplay      ="Creative WebCam Vista Pro Driver"
szStillImageDesc        ="VF0100 Still Image USD"
szStiAppName            ="WebCam Center"
szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"
szTWAINSetting    	="Software\Creative Tech\Web Cameras\VF0100\TWAIN"

szDiskName              ="Creative WebCam Vista Pro Driver Disk"
szVidServiceName        ="V0100VID"
szDeviceSetup           ="Creative WebCam Vista Pro Setup"

; File names
szInsPlugIn             ="V0100Pin.dll"
szInsPlugInRes          ="V0100Pin.crl"
szExtPageFile           ="V0100Ext.ax"
szUNSScript             ="Vf0100.uns"
szVfwBaseFileName       ="V0100Vfw"
szVideoDriver           ="V0100Vid.sys"
szStiDriver             ="V0100Sti.dll"

szSTIDevice.GUID  	="{0123601B-9892-4f43-96F5-F50CC6FDC740}"
szSTIEventNewPic.GUID   ="{931E60BC-D42D-4e0f-90CC-2E7B008B6040}"
szSTIEventLaunch.GUID   ="{462C7FA0-2375-42b8-AB35-2C579AD3BB08}"

;---------------------------------------
; Vendor definable - hardware dependent
;---------------------------------------
PB0330="ChipConfig\SupportSensor\PB0330"

;----------------------
; Version information
;----------------------
szVersion         ="1.00.05.0726"   ; Vendor build 04-07-26
