;---------------------------------------------------------------------------
; V0260VID.INF -- Creative Camera Model Number VF0260 installation
; Copyright (c) 2006 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=V0260.cat
Provider=   %szMfg%
DriverVer=  11/10/2006,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative

[DestinationDirs]
DefaultDestDir=11
Cam.CopyKernDrivers=10,system32\drivers
Cam.CopyKernDrivers.SYS=10,system32\drivers
Cam.CopyUserDrivers=11
Cam.CopyUserDrivers.SYS=11
Cam.CopyWinFiles=10
Cam.CopyTwainFiles=10,twain_32\Creative\VF0260
Cam.CopyVfwDriver=11
Cam.WNT.CopyWinFiles=10
Cam.WNT.CopyVfwDriver=11
Cam.Setting.CopyFiles=11

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

[CtlCam.Device]
DriverVer=     11/10/2006,%szVersion%
Include=       Ks.inf,Kscaptur.inf,Ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
AddReg=        Cam.Basic.AddReg,Cam.Custom.AddReg,Cam.Vfw.AddReg,Cam.Uns.AddReg
UpdateInis=    Cam.UpdateIni
CopyFiles=     Cam.Setting.CopyFiles,Cam.CopyKernDrivers,Cam.CopyKernDrivers.SYS,Cam.CopyUserDrivers,Cam.CopyUserDrivers.SYS,Cam.CopyTwainFiles,Cam.CopyWinFiles,Cam.CopyVfwDriver
VendorSetup=   %szInsPlugIn%,NonCoInstSetupEP
DeviceType=    2
Capabilities=  0x1
DeviceData=    Cam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.Device.NT]
Include=       Ks.inf,Kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        Cam.Basic.AddReg,Cam.Custom.AddReg,Cam.Vfw.AddReg.NT,Cam.Uns.AddReg.NT
UpdateInis=    Cam.UpdateIni
CopyFiles=     Cam.Setting.CopyFiles,Cam.CopyKernDrivers,Cam.CopyUserDrivers,Cam.CopyTwainFiles,Cam.WNT.CopyWinFiles,Cam.WNT.CopyVfwDriver
DeviceType=    2
Capabilities=  0x1
DeviceData=    Cam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[Cam.DeviceData]
TwainDS=%szTwainDSDesc%

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

[Cam.CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"%szInsPlugIn%,CoInstallerEntryPoint"

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

[Cam.Uns.AddReg.NT]
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext NT -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"
HKLM,%MSUninstall%\%szUninstall%,"NoModify",0x00010001,1
HKLM,%MSUninstall%\%szUninstall%,"NoRepair",0x00010001,1
HKR,,CtUnsExt,,"NT"

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

; ** Device driver **
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
;;HKR,,PageOutWhenUnopened,3,00
;;HKR,,PowerDownWhenUnopened,3,01
;HKR,,DontSuspendIfStreamsAreRunning,3,01

HKR,,CtProductName,,%szProductName%

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

; ** Add NetMeeting config to support additional format **
HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%szDeviceDesc%,"DefaultFormat",0x00000000,"I420, 320x240x12"
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,"dwDialogs",0x00000001, 02, 00, 00, 00
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,"dwImageSize",0x00000001, 40, 04, 40, 80
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,"dwNumColors",0x00000001, 28, 00, 00, 00
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,"dwStreamingMode",0x00000001, 01


; ------------------------- start of Vendor specific --------------------------

[Cam.Custom.AddReg]

HKR,,OkToHibernate,3,01


;
HKR,%CamSet%, StillSupportType, 0x10001, 2
;HKR,%CamSet%, CustomID, 0x10001, 2
HKR,%CamSet%, EnableAutoLaunch, 1, 57,23,ff
HKR,%CamSet%, DisableAutoLaunch, 1, 57,23,ff
HKR,%CamSet%, ClearSnapButton, 1, 57,03,02
HKR,%CamSet%, CheckAutoLaunch, 1, 57,10,10
HKR,%CamSet%, EnableAutoClose, 0x10001,1
;HKR,%CamSet%, UseGpio0, 0x10001,1
;HKR,%CamSet%, SupportEvent, 0x10001, 1
HKR,%CamSet%, EnableSystem, 1, 5a,6d,FF, 53,9b,9f, 54,ff,ff, 5d,03,ff, 49,01,ff, \
48,00,ff, 72,ee,ff
;;HKR,%CamSet%, EnableSystem, 1, 53,E1,FF, 5d, 03, ff
HKR,%CamSet%, DisableSystem, 1, 53,9b,9b
HKR,%CamSet%, ResetUsb, 1, 51,0f,ff, 51,0,ff
HKR,%CamSet%, SetUsbInit, 1, 51,0f,ff, 51,00,ff, 22,00,ff
HKR,%CamSet%, SetUsbWork, 1, 51,0f,ff, 51,00,ff, 22,1d,ff
HKR,%CamSet%, TurnOnLed, 1, 71,00,01
HKR,%CamSet%, TurnOffLed, 1, 71,01,01
HKR,%CamSet%, BlockStream, 1, 51,0f,ff
HKR,%CamSet%, StartStream, 1, 51,00,ff
HKR,%CamSet%, BandwidthAllocateRule, 0x10001, 0
HKR,%CamSet%, FileDir,, \DosDevices\%11%\
;HKR,%CamSet%, LoadSettingOnce,0x10001,0


HKR,%CamSet%\CamSettingFiles,V0260530,,V0260530.set
HKR,%CamSet%, IdleAltSetting, 0x10001, 0x0

;The path must consist with LegencyPath setting in each .SET file.
HKLM,"Software\Creative Tech\Web Cameras\VF0260","PushModeEvent",,"Enable"



; -------------------------- end of Vendor specific ---------------------------

[Cam.Vfw.AddReg]
; ** 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"

[Cam.Vfw.AddReg.NT]
; ** 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"

[Cam.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,Cam.Interface

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

[Cam.Interface]
AddReg=Cam.Intf.AddReg

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

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

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


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

[Cam.CopyCoInstFile]

[Cam.CopyKernDrivers]
V0260Vid.sys
V0260Cmd.sys

[Cam.CopyKernDrivers.SYS]   ; Required in Win98
stream.sys        ; from Microsoft
usbcamd.sys       ; from Microsoft

[Cam.Setting.CopyFiles]
V0260530.set,,,4

[Cam.CopyUserDrivers]
CtCamMgr.dll
CtCamPin.crl
V0260Hwx.dll
V0260Pin.dll
V0260Ext.ax
V0260Ext.crl
V0260Srv.exe

[Cam.CopyTwainFiles]
V0260Twn.ds
CtTwain.bff
CtTwain.crl
CtTwain.dll
HookWnd.dll
Gdiplus.dll       ; Microsoft dist

[Cam.CopyWinFiles]
CtDrvIns.exe,,,0x00000020
V0260Cfg.exe
VF0260.uns
Vfwupd.exe

[Cam.WNT.CopyWinFiles]
CtDrvIns.exe,,,0x00000020
V0260Cfg.exe
VF0260.uns

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

[Cam.CopyVfwDriver]
V0260Vfw.drv

[Cam.WNT.CopyVfwDriver]
V0260Vfw.dll

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
CtCamMgr.dll=1,,
CtCamPin.crl=1,,
CtDrvIns.exe=1,,
CtTwain.bff=1,,
CtTwain.crl=1,,
CtTwain.dll=1,,
HookWnd.dll=1,,
Gdiplus.dll=1,,
V0260Vid.sys=1,,
V0260Twn.ds=1,,
V0260Ext.ax=1,,
V0260Ext.crl=1,,
V0260Hwx.dll=1,,
V0260Vfw.drv=1,,
V0260Vfw.dll=1,,
V0260Pin.dll=1,,
V0260Cfg.exe=1,,
V0260Srv.exe=1,,
VF0260.uns=1,,
VfwUpd.exe=1,,
V0260530.set=1,,
V0260Cmd.sys=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

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
;-------------------------------------

;**********************************************************************
CamSet                  ="CameraSetting"

;**********************************************************************

szMfg                   ="Creative Technology Ltd"
szDeviceDesc            ="Live! Cam Vista IM"
szProductName           ="Creative Live! Cam Vista IM"
szConfigRegistry        ="Software\Creative Tech\Web Cameras\VF0260"

szVfwKey                ="V0260VFW"
szVfwDeviceDesc         ="Live! Cam Vista IM (VFW)"
szTwainDSDesc           ="Live! Cam Vista IM"
szUninstall             ="Creative VF0260"
szUninstallDisplay      ="Creative Live! Cam Vista IM Driver"

szDiskName              ="Creative Live! Cam Vista IM Driver Disk"
szVideoServiceName      ="V0260VID"
szDeviceSetup           ="Live! Cam Vista IM Setup"

; File names
szInsPlugIn             ="V0260Pin.dll"
szInsPlugInRes          ="CtCamPin.crl"
szExtPageFile           ="V0260Ext.ax"
szUNSScript             ="VF0260.uns"
szVfwBaseFileName       ="V0260Vfw"
szVideoDriver           ="V0260Vid.sys"


;----------------------
; Version information
;----------------------
szVersion               ="1.01.03.1104"
