;---------------------------------------------------------------------------
; P1131DEV.INF -- Creative Camera Model Number PD1130 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=P1131Dev.cat
Provider=   %szMfg%
DriverVer=  03/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\PD1131
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

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

[CtlCam.Device]
DriverVer=     03/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.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="Creative WebCam NX Pro (WDM)"
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,%HV7131B%,CMD,			0x00001,FF,20,00,00, F0,01,03,00,F0,02,10,30 

HKR,%HV7131B%,Initial,			0X00001,00,00,01,cc,00,02,00,cc,00,10,01,cc,00,01,01,cc,01,01,77,cc,\
						00,08,03,cc,00,12,05,cc,00,12,07,cc,00,03,02,cc,00,04,80,cc,\
						00,05,01,cc,00,06,e0,cc,00,98,00,cc,00,9a,00,cc,00,9b,01,cc,\
						00,9c,e6,cc,00,9d,02,cc,00,9e,86,cc,01,1a,00,cc,01,1c,00,cc,\
						00,12,05,cc,00,01,0c,aa,00,11,00,aa,00,13,00,aa,00,14,01,aa,\
						00,15,e6,aa,00,16,02,aa,00,17,86,aa,00,19,00,cc,01,00,0d,cc,\
						01,8d,89,cc,01,a8,50,cc,01,ad,00,cc,01,9b,c0,cc,01,9c,a0,cc,\
						01,89,06,cc,01,c5,03,cc,01,cb,13,cc,02,50,08,cc,03,01,08,cc

HKR,%HV7131B%,InitialScale,		0X00001,00,00,01,cc,00,02,10,cc,00,10,01,cc,00,01,01,cc,01,01,77,cc,\
						00,08,03,cc,00,12,05,cc,00,12,07,cc,00,03,02,cc,00,04,80,cc,\
						00,05,01,cc,00,06,e0,cc,00,98,00,cc,00,9a,00,cc,00,9b,01,cc,\
						00,9c,e8,cc,00,9d,02,cc,00,9e,88,cc,01,1a,00,cc,01,1c,00,cc,\
						00,12,05,cc,00,01,0c,aa,00,11,00,aa,00,13,00,aa,00,14,01,aa,\
						00,15,e8,aa,00,16,02,aa,00,17,88,aa,00,19,00,cc,01,00,0d,cc,\
						01,8d,89,cc,01,a8,50,cc,01,ad,00,cc,01,9b,c0,cc,01,9c,a0,cc,\
						01,89,06,cc,01,c5,03,cc,01,cb,13,cc,02,50,08,cc,03,01,08,cc

HKR,%HV7131B%\AE,50HZ,			0X00001,00,19,00,cc,00,25,07,aa,00,26,53,aa,00,27,00,aa,01,90,2f,cc,\
						01,91,9b,cc,01,92,80,cc,01,95,00,cc,01,96,ea,cc,01,97,60,cc,\
						01,8c,10,cc,01,8f,20,cc,01,a8,60,cc,01,a9,10,cc,01,aa,13,cc,\
                                                00,1d,00,cc,00,1e,d0,cc,00,1f,00,cc,00,20,08,cc

HKR,%HV7131B%\AE,50HZScale,		0X00001,00,19,00,cc,00,25,07,aa,00,26,53,aa,00,27,00,aa,01,90,2f,cc,\
						01,91,9b,cc,01,92,80,cc,01,95,01,cc,01,96,d4,cc,01,97,c0,cc,\
						01,8c,10,cc,01,8f,20,cc,01,a8,60,cc,01,a9,10,cc,01,aa,13,cc,\
                                                cc,00,1d,00,cc,00,1e,d0,cc,00,1f,00,cc,00,20,08,cc

HKR,%HV7131B%\AE,60HZ,			0X00001,00,19,00,cc,00,25,07,aa,00,26,a1,aa,00,27,20,aa,01,90,2f,cc,\
						01,91,4d,cc,01,92,60,cc,01,95,00,cc,01,96,c3,cc,01,97,50,cc,\
						01,8c,10,cc,01,8f,20,cc,01,a8,60,cc,01,a9,10,cc,01,aa,13,cc,\
                                                00,1d,00,cc,00,1e,d0,cc,00,1f,00,cc,00,20,08,cc

HKR,%HV7131B%\AE,60HZScale,		0X00001,00,19,00,cc,00,25,07,aa,00,26,a1,aa,00,27,20,aa,01,90,2f,cc,\
						01,91,4d,cc,01,92,60,cc,01,95,01,cc,01,96,86,cc,01,97,a0,cc,\
						01,8c,10,cc,01,8f,20,cc,01,a8,60,cc,01,a9,10,cc,01,aa,13,cc,\
                                                00,1d,00,cc,00,1e,d0,cc,00,1f,00,cc,00,20,08,cc

HKR,%HV7131B%\AE,NoFliker,		0X00001,00,19,00,cc,00,25,03,aa,00,26,00,aa,00,27,00,aa,01,90,2f,cc,\
						01,91,f8,cc,01,92,00,cc,01,95,00,cc,01,96,02,cc,01,97,00,cc,\
						01,8c,0c,cc,01,8f,18,cc,01,a9,00,cc,01,aa,00,cc,00,1d,00,cc,\
						00,1e,d0,cc,00,1f,00,cc,00,20,08,cc

HKR,%HV7131B%\AE,NoFlikerScale,		0X00001,00,19,00,cc,00,25,03,aa,00,26,00,aa,00,27,00,aa,01,90,2f,cc,\
						01,91,f8,cc,01,92,00,cc,01,95,00,cc,01,96,02,cc,01,97,00,cc,\
						01,8c,0c,cc,01,8f,18,cc,01,a9,00,cc,01,aa,00,cc,00,1d,00,cc,\
						00,1e,d0,cc,00,1f,00,cc,00,20,08,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,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,%HV7131B%\Settings,Gamma,		0x00001,03
HKR,%HV7131B%\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,%HV7131B%\Settings,MatrixT,		0x00001,60,f0,f0,f0,60,f0,f0,f0,60
HKR,%HV7131B%\Settings,RJMatrixT,	0x00001,60,f0,f0,f0,60,f0,f0,f0,60

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

[CTL.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
P1131Vid.sys

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

[CtlCam.CopyUserDrivers]
P1131Sti.dll,,,COPYFLG_FORCE_FILE_IN_USE
P1131Hwx.dll   ; from Creative
P1131Pin.dll   ; from Creative
P1131Pin.crl   ; from Creative
P1131Ext.ax    ; from Creative
P1131Ext.crl   ; from Creative
P1131Srv.exe   ; from Creative
CtCamMgr.dll   ; from Creative

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

[CtlCam.CopyTwainFiles]
P1131Twn.ds

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe   ; from Creative
P1131Cfg.exe   ; from Creative
PD1131.uns     ; from Creative

[CtlCam.CopyWinFiles]
CtDrvIns.exe   ; from Creative
P1131Cfg.exe   ; from Creative
PD1131.uns     ; from Creative
Vfwupd.exe

[CtlCam.CopyVfwDriver]
P1131Vfw.drv   ; from Creative

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
P1131Vid.sys=1,,
P1131Twn.ds=1,,
P1131Hwx.dll=1,,
VfwUpd.exe=1,,
P1131Ext.ax=1,,
P1131Ext.crl=1,,
P1131Srv.exe=1,,
P1131Vfw.drv=1,,
P1131Vfw.dll=1,,
P1131Pin.dll=1,,
P1131Pin.crl=1,,
CtDrvIns.exe=1,,
CtCamMgr.dll=1,,
P1131Cfg.exe=1,,
PD1131.uns=1,,
P1131sti.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 NX Pro"
szProductName           ="Creative WebCam NX Pro" 
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD1131"

szVfwKey                ="PD1131VFW"
szVfwDeviceDesc         ="Creative WebCam NX Pro (VFW)"
szTwainDSDesc           ="Creative WebCam NX Pro"
szUninstall             ="Creative PD1131"
szUninstallDisplay      ="Creative WebCam NX Pro Driver"
szStillImageDesc        ="PD1131 Still Image USD"
szStiAppName            ="PC-CAM Center"
szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"
szTWAINSetting    	="Software\Creative Tech\Web Cameras\PD1131\TWAIN"

szDiskName              ="Creative WebCam NX Pro Driver Disk"
szVidServiceName        ="P1131VID"
szDeviceSetup           ="Creative WebCam Sunflower2 Setup"

; File names
szInsPlugIn             ="P1131Pin.dll"
szInsPlugInRes          ="P1131Pin.crl"
szExtPageFile           ="P1131Ext.ax"
szUNSScript             ="Pd1131.uns"
szVfwBaseFileName       ="P1131Vfw"
szVideoDriver           ="P1131Vid.sys"
szStiDriver             ="P1131Sti.dll"

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

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

;----------------------
; Version information
;----------------------
szVersion         ="1.03.03.0326"   ; Vendor build 04-03-26
