;---------------------------------------------------------------------------
; P0620DEV.INF -- Creative Camera Model Number PD0620 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=P0620.cat
Provider=   %szMfg%
DriverVer=  08/04/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\PD0620
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

[Creative]
%szDeviceDesc%=CtlCam.Device,USB\VID_041E&PID_4034
%szDeviceDesc%=CtlCam.Device,USB\VID_041E&PID_4035

[CtlCam.Device]
DriverVer=     08/04/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
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
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
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
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.DeviceData]
TwainDS=%szTwainDSDesc%
SpecialInfo="Creative"

[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=  CtlCam.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,,HardwareConfig,1,1    ;from vendor
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,,"Both"

[CtlCam.TWAIN.AddReg]
HKLM,%TWAINSetting%,DeviceName,,%szDeviceDesc%
HKLM,%TWAINSetting%,DSName,,%szTWAINDSName%
HKLM,%TWAINSetting%,OEM,,%szTWAINOEMPath%

[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%


;************************************
;*     Hardware Configuration       *
;************************************
[CtlCam.Custom.AddReg]
;****
; 1
;****
HKR,%PAS106B%,CMD,          		0x00001,FF,20,00,00, F0,01,03,00,F0,02,10,30

HKR,%PAS106B%,Initial,			0X00001,00,00,01,cc,00,02,00,cc,00,08,03,cc,00,10,0f,cc,00,03,01,cc,\
						00,04,60,cc,00,05,01,cc,00,06,20,cc,00,01,01,cc,00,12,03,cc,\
						00,12,01,cc,00,8d,08,cc,00,9a,03,cc,01,1a,00,cc,01,1c,03,cc,\
						00,9c,28,cc,00,9e,68,cc,00,02,04,aa,00,08,00,aa,00,09,05,aa,\
						00,0a,02,aa,00,0b,02,aa,00,0c,05,aa,00,0d,00,aa,00,0e,02,aa,\
						00,14,81,aa,01,01,37,cc,00,19,00,cc,01,81,03,cc,01,82,08,cc,\
						01,83,16,cc,01,84,03,cc,01,85,05,cc,01,86,14,cc,01,a8,a0,cc,\
						01,ad,00,cc,01,c5,03,cc,01,cb,13,cc,01,00,0d,cc,01,8d,80,cc,\
						01,89,06,cc,02,50,08,cc,03,01,08,cc

HKR,%PAS106B%\AE,50HZ,			0X00001,01,90,00,cc,01,91,03,cc,01,92,b1,cc,01,95,00,cc,01,96,00,cc,\
						01,97,87,cc,01,8c,0c,cc,01,8f,18,cc,00,07,b1,aa,00,05,03,aa,\
						00,04,01,aa,00,03,3b,aa,01,a9,20,cc,01,aa,26,cc,01,1d,a0,cc

HKR,%PAS106B%\AE,60HZ,			0X00001,01,90,00,cc,01,91,03,cc,01,92,88,cc,01,95,00,cc,01,96,00,cc,\
						01,97,71,cc,01,8c,0c,cc,01,8f,18,cc,00,07,88,aa,00,05,03,aa,\
						00,04,08,aa,00,03,38,aa,01,a9,20,cc,01,aa,26,cc,01,1d,a0,cc

HKR,%PAS106B%\AE,NoFliker,		0X00001,01,8c,15,cc,01,8f,30,cc,01,90,00,cc,01,91,03,cc,01,92,c0,cc,\
						01,95,00,cc,01,96,00,cc,01,97,01,cc,01,8c,0c,cc,01,8f,18,cc,\
						00,07,b0,aa,00,05,03,aa,00,04,00,aa,00,03,3b,aa,01,a9,16,cc,\
						01,aa,24,cc,01,1d,a0,cc
;****************************
;** Default Setting 
;****************************

;-----------------
; Current Settings
;-----------------
;Standard property
HKR,Settings,TASCGain,0x10001,3
HKR,Settings,AVRFil,0x10001,131
HKR,Settings,MidFil,0x10001,1
HKR,Settings,VideoFMT,0x10001,0
HKR,Settings,TestMode,0x10001,0
HKR,Settings,Brightness,0x10001,20
HKR,Settings,Contrast,0x10001,20
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,1
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
;1
HKR,%PAS106B%\Settings,Gamma,		0x00001,03
HKR,%PAS106B%\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,%PAS106B%\Settings,MatrixT,		0x00001,58,f4,f4,f4,58,f4,f4,f4,58
HKR,%PAS106B%\Settings,RJMatrixT,	0x00001,58,f4,f4,f4,58,f4,f4,f4,58

HKLM,%CustomSetting%,"BandWidth",0x10001,7
HKLM,%CustomSetting%,"Brightness",0x10001,20
HKLM,%CustomSetting%,"Contrast",0x10001,20
HKLM,%CustomSetting%,"Hue",0x10001,18
HKLM,%CustomSetting%,"Saturation",0x10001,50
HKLM,%CustomSetting%,"Sharpness",0x10001,3
HKLM,%CustomSetting%,"Gamma",0x10001,3
HKLM,%CustomSetting%,"WhiteBalance",0x10001,1
HKLM,%CustomSetting%,"BackLight",0x10001,0
HKLM,%CustomSetting%,"ColorEnable",0x10001,1
HKLM,%CustomSetting%,"FrameRate",0x10001,7
HKLM,%CustomSetting%,"Exposure",0x10001,5
HKLM,%CustomSetting%,"Gain",0x10001,128
HKLM,%CustomSetting%,"Mirror",0x10001,0
HKLM,%CustomSetting%,"Flicker",0x10001,1
HKLM,%CustomSetting%,"Default",0x10001,1
HKLM,%CustomSetting%,"ExposureAuto",0x10001,1
HKLM,%CustomSetting%,"WhiteBalanceAuto",0x10001,1
HKLM,%CustomSetting%,"GainAuto",0x10001,1
HKLM,%CustomSetting%,"BandWidthAuto",0x10001,1
HKLM,%CustomSetting%,"Vertical",0x10001,0
HKLM,%CustomSetting%,"Rgain",0x10001,64
HKLM,%CustomSetting%,"Ggain",0x10001,64
HKLM,%CustomSetting%,"Bgain",0x10001,64


;******
;******  Sensor Specified Default Settings
;******
;1
HKLM,%DefPAS106B%,"BandWidth",0x10001,7
HKLM,%DefPAS106B%,"Brightness",0x10001,20
HKLM,%DefPAS106B%,"Contrast",0x10001,20
HKLM,%DefPAS106B%,"Hue",0x10001,18
HKLM,%DefPAS106B%,"Saturation",0x10001,50
HKLM,%DefPAS106B%,"Sharpness",0x10001,3
HKLM,%DefPAS106B%,"Gamma",0x10001,3
HKLM,%DefPAS106B%,"WhiteBalance",0x10001,1
HKLM,%DefPAS106B%,"BackLight",0x10001,0
HKLM,%DefPAS106B%,"ColorEnable",0x10001,1
HKLM,%DefPAS106B%,"FrameRate",0x10001,7
HKLM,%DefPAS106B%,"Exposure",0x10001,5
HKLM,%DefPAS106B%,"Gain",0x10001,1
HKLM,%DefPAS106B%,"Mirror",0x10001,0
HKLM,%DefPAS106B%,"Flicker",0x10001,1
HKLM,%DefPAS106B%,"Default",0x10001,1
HKLM,%DefPAS106B%,"ExposureAuto",0x10001,1
HKLM,%DefPAS106B%,"WhiteBalanceAuto",0x10001,1
HKLM,%DefPAS106B%,"GainAuto",0x10001,1
HKLM,%DefPAS106B%,"BandWidthAuto",0x10001,1
HKLM,%DefPAS106B%,"Vertical",0x10001,0
HKLM,%DefPAS106B%,"Rgain",0x10001,96
HKLM,%DefPAS106B%,"Ggain",0x10001,64
HKLM,%DefPAS106B%,"Bgain",0x10001,69
; ----------------------------- FILES ---------------------------------

[CtlCam.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
P0620Vid.sys


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

[CtlCam.CopyUserDrivers]
P0620Hwx.dll
P0620Pin.dll   ; from Creative
P0620Pin.crl   ; from Creative
P0620Ext.crl   ; from Creative
P0620Ext.ax    ; from Creative
p0620sti.dll
P0620Srv.exe
CtCamMgr.dll

[CtlCam.CopyTwainFiles]
P0620Twn.ds

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe   ; from Creative
P0620Cfg.exe   ; from Creative
PD0620.uns     ; from Creative


[CtlCam.CopyWinFiles]
CtDrvIns.exe   ; from Creative
P0620Cfg.exe   ; from Creative
PD0620.uns    ; from Creative
VfwUpd.exe

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

[CtlCam.CopyVfwDriver]
P0620Vfw.drv   ; from Creative

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
P0620Vid.sys=1,,
P0620Twn.ds=1,,
P0620Hwx.dll=1,,
VfwUpd.exe=1,,
P0620Vfw.drv=1,,
P0620Vfw.dll=1,,
P0620Pin.dll=1,,
P0620Pin.crl=1,,
CtDrvIns.exe=1,,
P0620Cfg.exe=1,,
PD0620.uns=1,,
P0620Ext.ax=1,,
P0620Ext.crl=1,,
P0620Srv.exe =1,,
p0620sti.dll=1,,
CtCamMgr.dll=1,,


;-----------------------  STRINGS DEFINITION ---------------------------------

[Strings]
ProxyVidCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"

SERVICE_KERNEL_DRIVER=1
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"

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

;Custom device setting
STI_DEVICE_NAME         = "Creative STI USB"
szTWAINDSName           = "Creative WebCam Instant"
szTWAINOEMPath          = "Creative\PD0620"
TWAINSetting            = "SOFTWARE\Creative Tech\Web Cameras\PD0620\TWAIN"
PAS106B                 = "ChipConfig\SupportSensor\PAS106B"
CustomSetting           = "Software\Creative Tech\Web Cameras\PD0620\CustomSettings"
DefPAS106B              = "Software\Creative Tech\Web Cameras\PD0620\DefaultSettings\PAS106B"

szVfwKey                ="P0620VFW"
szVfwDeviceDesc         ="Creative WebCam Instant (VFW)"
szTwainDSDesc           ="Creative WebCam Instant"
szUninstall             ="Creative PD0620"
szUninstallDisplay      ="Creative WebCam Instant Driver"
szStillImageDesc        ="PD0620 Still Image USD"
szStiAppName            ="WebCam Center"
szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"
szDiskName              ="Creative WebCam Instant Driver Disk"
szVidServiceName        ="PD0620VID"
szDeviceSetup           ="WebCam Instant Setup"

; File names
szInsPlugIn             ="P0620Pin.dll"
szInsPlugInRes          ="P0620Pin.crl"
szExtPageFile           ="P0620Ext.ax"
szUNSScript             ="PD0620.uns"
szVfwBaseFileName       ="P0620Vfw"
szVideoDriver           ="P0620Vid.sys"
szStiDriver             ="P0620Sti.dll"

szSTIDevice.GUID        ="{80989FCE-A58A-4902-B5C8-37410E34023F}"
szSTIEventNewPic.GUID   ="{E76F3028-CA52-468e-B06E-2F32E2F6B59E}"
szSTIEventLaunch.GUID   ="{E76F3027-CA52-468e-B06E-2F32E2F6B59E}"

;----------------------
; Version information
;----------------------
szVersion         ="1.01.02.0729"   ; Vendor build 04-07-29

