;------------------------------------------------------------------------------
; VF0270Dev.INF -- Creative Camera Model Number VF0270 installation
; Copyright (c) 2006-2007 Creative Technology Ltd. All rights reserved.
;------------------------------------------------------------------------------

[Version]
Signature =$Windows NT$
Class =Image
ClassGuid ={6BDD1FC6-810F-11D0-BEC7-08002BE2092F}
Provider =%szManufacturer%
LayoutFile =layout.inf,layout1.inf,layout2.inf
CatalogFile =Vf0270.cat
DriverVer =08/24/2007,%szVersion%

[SourceDisksNames]
1 =%szDiskDesc%

[SourceDisksFiles]
V0270Cfg.exe =1
V0270Cvw.bff =1
V0270Cvw.crl =1
V0270Cvw.dll =1
cximage.dll  =1
V0270Ext.ax =1
V0270Ext.crl =1
V0270Ext64.ax =1
V0270Ext64.crl =1
V0270Hwx.dll =1
V0270Hwx64.dll =1
V0270Mon.exe =1
V0270PC.bmp =1
V0270Pin.dll =1
V0270Pin64.dll =1
V0270Pvc.bmp =1
V0270Srv.exe =1
V0270Srv64.exe =1
V0270Vfx.sys=1
V0270Vfx64.sys=1
V0270Dev.sys=1
V0270Dev64.sys=1
CtCamMgr.dll =1
CtCamMgr64.dll =1
CtCamPin.crl =1
CtCamPin64.crl =1
CtDrvIns.exe =1
CtDrvIns64.exe =1
HookWnd.dll =1
VF0270.uns =1

[DestinationDirs]
DefaultDestDir =11
Cam.CopyKnlDrv =10,System32\Drivers
Cam.CopyKnlDrv.NTamd64 =10,System32\Drivers
Cam.CopyUserDrv =11
Cam.CopyUserDrv.WOW =10,SysWow64
Cam.CopyUserDrv.NTamd64 =11
Cam.CopyTwnFiles =10,Twain_32\Creative\VF0270
Cam.CopyWinFiles.Cmn =10
Cam.CopyWinFiles.Cmnx86 =10
Cam.CopyWinFiles.NTamd64 =10

[ControlFlags]
ExcludeFromSelect =*

[Manufacturer]
%szManufacturer% =Creative,NTamd64

[Creative]
%szDeviceDesc% =CtlCam,USB\VID_041E&PID_4057&MI_00

[Creative.NTamd64]
%szDeviceDesc% =CtlCam.NTamd64,USB\VID_041E&PID_4057&MI_00

[CtlCam]
CopyFiles =Cam.CopyKnlDrv,Cam.CopyUserDrv,Cam.CopyTwnFiles,Cam.CopyWinFiles.Cmn,Cam.CopyWinFiles.Cmnx86
AddReg =Cam.AddReg.Cmn,Cam.Uns.AddReg,Cam.AddReg.Wia
Include =Ks.inf,Kscaptur.inf
Needs =KS.Registration,KSCAPTUR.Registration.NT
SubClass =StillImage
DeviceType =%VIDEO_DEVICES%
DeviceSubType =%VENDOR_DEFINED%
Capabilities =%STI_GENCAP_SUBSET&STI_GENCAP_WIA&STI_GENCAP_NOTIFICATIONS%
DeviceData =Cam.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

[CtlCam.NTamd64]
CopyFiles =Cam.CopyKnlDrv.NTamd64,Cam.CopyUserDrv.WOW,Cam.CopyUserDrv.NTamd64,Cam.CopyTwnFiles,Cam.CopyWinFiles.Cmn,Cam.CopyWinFiles.NTamd64
AddReg =Cam.AddReg.Cmn,Cam.AddReg.NTamd64,Cam.Uns.AddReg.NTamd64
Include =Ks.inf,Kscaptur.inf
Needs =KS.Registration,KSCAPTUR.Registration.NT

[CtlCam.Services]
AddService =%szVidServiceName%,0x00000002,Cam.ServiceInstall
AddService =%szVFXServiceName%,,FXFilter.ServiceInstall

[CtlCam.NTamd64.Services]
AddService =%szVidServiceName%,0x00000002,Cam.ServiceInstall
AddService =%szVFXServiceName%,,FXFilter.ServiceInstall

[CtlCam.HW]
AddReg =Cam.VFX.AddReg

[CtlCam.NTamd64.HW]
AddReg =Cam.VFX.AddReg

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

[CtlCam.NTamd64.CoInstallers]
AddReg =Cam.CoInst.AddReg
CopyFiles =Cam.CopyCoInstFile

[CtlCam.Interfaces]
AddInterface =%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface
AddInterface =%KSCATEGORY_VIDEO%,GLOBAL,CtlCam.Interface
AddInterface =%KSCATEGORY_RENDER%,GLOBAL,CtlCam.Interface
AddInterface =%KSCATEGORY_RENDER_EXT%,GLOBAL,CtlCam.Interface

[CtlCam.NTamd64.Interfaces]
AddInterface =%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface
AddInterface =%KSCATEGORY_VIDEO%,GLOBAL,CtlCam.Interface
AddInterface =%KSCATEGORY_RENDER%,GLOBAL,CtlCam.Interface
AddInterface =%KSCATEGORY_RENDER_EXT%,GLOBAL,CtlCam.Interface

[Cam.DeviceData]
Server =local
UI DLL =sti.dll
UI Class ID =%DEFAULT_WIA_DIP_UI.CLSID%

[Cam.VFX.AddReg]
HKR,,UpperFilters,%FLG_ADDREG_APPEND&FLG_ADDREG_TYPE_MULTI_SZ%,%szVFXServiceName%

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

[FXFilter.ServiceInstall]
DisplayName =%szVfxDeviceDesc%
ServiceType =%SERVICE_KERNEL_DRIVER%
StartType =%SERVICE_DEMAND_START%
ErrorControl =%SERVICE_ERROR_NORMAL%
ServiceBinary =%12%\%szVFXDriver%

[Cam.CoInst.AddReg]
HKR,,CoInstallers32,%FLG_ADDREG_TYPE_MULTI_SZ%,\
    "%szInsPlugInFile%,CoInstallerEntryPoint"

[CtlCam.Interface]
AddReg =Cam.Interface.AddReg

[Cam.Interface.AddReg]
HKR,,CLSID,,%ProxyVidCap.CLSID%
HKR,,FriendlyName,,%szDeviceDesc%

;==============================================================================

[Cam.AddReg.Cmn]
HKR,,CtProductName,,%szProductName%
HKR,,CtVersion,,%szVersion%
HKLM,%MSUninstall%\%szUninstallKey%,DisplayName,,\
    "%szUninstallDisplay% (%szVersion%) %szInterim%"

HKLM,Software\Microsoft\Conferencing\CaptureDefaultFormats\%szDeviceDesc%,\
    DefaultFormat,,"I420, 320x240x12"
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,\
    dwDialogs,%FLG_ADDREG_BINVALUETYPE%,02,00,00,00
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,\
    dwImageSize,%FLG_ADDREG_BINVALUETYPE%,40,04,40,80
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,\
    dwNumColors,%FLG_ADDREG_BINVALUETYPE%,28,00,00,00
HKLM,Software\Microsoft\Conferencing\CaptureDevices\%szDeviceDesc%,\
    dwStreamingMode,%FLG_ADDREG_BINVALUETYPE%,01

HKR,,DriverDesc,,%szDeviceDesc%
HKR,,FriendlyName,,%szDeviceDesc%

[Cam.AddReg.NTamd64]
HKLM,%CTConfigRegistryWow%,Version,,%szVersion%

[Cam.AddReg.Wia]
HKR,,HardwareConfig,%FLG_ADDREG_BINVALUETYPE%,\
    %CONNECTION_TYPE_GENERIC_WDM_DEVICES%
HKR,,USDClass,,%WIA_VIDEO_SNAPSHOT_USD.CLSID%

[Cam.Uns.AddReg]
HKLM,%MSUninstall%\%szUninstallKey%,UninstallString,,\
    "%10%\CtDrvIns.exe -uninstall -script %szUnsScript% -unsext NT -plugin %szInsPlugInFile% -pluginres %szInsPlugInResFile%"
HKLM,%MSUninstall%\%szUninstallKey%,NoModify,\
    %FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ%,1
HKLM,%MSUninstall%\%szUninstallKey%,NoRepair,\
    %FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ%,1
HKR,,CtUnsExt,,NT

[Cam.Uns.AddReg.NTamd64]
HKLM,%MSUninstall%\%szUninstallKey%,UninstallString,,\
    "%10%\CtDrvIns.exe -uninstall -script %szUnsScript% -unsext AMD64 -plugin %szInsPlugInFile% -pluginres %szInsPlugInResFile%"
HKLM,%MSUninstall%\%szUninstallKey%,NoModify,\
    %FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ%,1
HKLM,%MSUninstall%\%szUninstallKey%,NoRepair,\
    %FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ%,1
HKLM,%MSUninstallWow64%\%szUninstallKey%,UninstallString,,\
    "%10%\CtDrvIns.exe -uninstall -script %szUnsScript% -unsext AMD64 -plugin %szInsPlugInFile% -pluginres %szInsPlugInResFile%"
HKLM,%MSUninstallWow64%\%szUninstallKey%,NoModify,\
    %FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ%,1
HKLM,%MSUninstallWow64%\%szUninstallKey%,NoRepair,\
    %FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ%,1
HKR,,CtUnsExt,,AMD64

;==============================================================================

[Cam.CopyKnlDrv]
V0270Vfx.sys,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Dev.sys,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270PC.bmp,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Pvc.bmp,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyKnlDrv.NTamd64]
V0270Vfx.sys,V0270Vfx64.sys,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Dev.sys,V0270Dev64.sys,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270PC.bmp,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Pvc.bmp,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyUserDrv]
V0270Cvw.bff,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Cvw.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Cvw.crl,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
cximage.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Ext.ax,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Ext.crl,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Hwx.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Pin.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Srv.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtCamMgr.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtCamPin.crl,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyUserDrv.WOW]
V0270Cvw.bff,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Cvw.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Cvw.crl,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
cximage.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Ext.ax,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Ext.crl,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Hwx.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Pin.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Srv.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtCamMgr.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtCamPin.crl,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyUserDrv.NTamd64]
V0270Ext.ax,V0270Ext64.ax,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Ext.crl,V0270Ext64.crl,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Hwx.dll,V0270Hwx64.dll,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Pin.dll,V0270Pin64.dll,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Srv.exe,V0270Srv64.exe,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtCamMgr.dll,CtCamMgr64.dll,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtCamPin.crl,CtCamPin64.crl,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyTwnFiles]
HookWnd.dll,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyWinFiles.Cmn]
VF0270.uns,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyWinFiles.Cmnx86]
V0270Cfg.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Mon.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtDrvIns.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyWinFiles.NTamd64]
V0270Cfg.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
V0270Mon.exe,,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%
CtDrvIns.exe,CtDrvIns64.exe,,%NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY%

[Cam.CopyCoInstFile]

;==============================================================================

[Strings]
;--------------------------------
; System related. Do not change.
;--------------------------------
MSUninstall             ="Software\Microsoft\Windows\CurrentVersion\Uninstall"
MSUninstallWow64        ="Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaResourcesMSVideo ="System\CurrentControlSet\Control\MediaResources\MsVideo"

KSCATEGORY_CAPTURE      ="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_RENDER       ="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO        ="{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER_EXT   ="{CC7BFB41-F175-11D1-A392-00E0291F3959}"
ProxyVidCap.CLSID       ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
WIA_VIDEO_SNAPSHOT_USD.CLSID ="{0527D1D0-88C2-11D2-82C7-00C04F8EC183}"
DEFAULT_WIA_DIP_UI.CLSID ="{5D8EF5A3-AC13-11D2-A093-00C04F72DC3C}"
VIDEO_DEVICES =3
VENDOR_DEFINED =0x1
STI_GENCAP_SUBSET&STI_GENCAP_WIA&STI_GENCAP_NOTIFICATIONS =0x00000031
CONNECTION_TYPE_GENERIC_WDM_DEVICES =1

NO_VERSION_DIALOG&OVERWRITE_OLDER_ONLY =0x00000060
SERVICE_KERNEL_DRIVER =1
SERVICE_DEMAND_START =0x3
SERVICE_ERROR_NORMAL =0x1
FLG_ADDREG_BINVALUETYPE =0x00000001
FLG_ADDREG_TYPE_DWORD =0x00010001
FLG_ADDREG_TYPE_MULTI_SZ =0x00010000
FLG_ADDREG_BINVALUETYPE&FLG_ADDREG_TYPE_MULTI_SZ =0x00010001
FLG_ADDREG_APPEND&FLG_ADDREG_TYPE_MULTI_SZ =0x00010008

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szManufacturer       ="Creative Technology Ltd."
szDiskDesc           ="Creative Camera VF0270 Driver Disk"
szDeviceDesc         ="Live! Cam Optia"
szVfxDeviceDesc      ="VF0270 Video FX"
szProductName        ="Creative Live! Cam Optia"
szUninstallKey       ="Creative VF0270"
szUninstallDisplay   ="Creative Live! Cam Optia Driver"
szVidServiceName     ="VF0270Dev"
szVFXServiceName     ="VF0270Vfx"

CTConfigRegistry ="Software\Creative Tech\Web Cameras\VF0270"
CTConfigRegistryWow ="Software\Wow6432Node\Creative Tech\Web Cameras\VF0270"
szVideoDriver        ="V0270Dev.sys"
szVFXDriver          ="V0270VFx.sys"
szInsPlugInFile      ="V0270Pin.dll"
szUnsScript          ="VF0270.uns"
szInsPlugInResFile   ="CtCamPin.crl"

szVersion            ="1.03.01.0000"  ; Release on 08/24/2007.
szInterim            =" "
