;---------------------------------------------------------------------------
; WC3PLUS.INF -- Creative Video Blaster WebCam 3 USB & WebCam Plus
;                Camera installation.
; Copyright (c) 1999-2001 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
LayoutFile= Layout.inf,Layout1.inf,Layout2.inf
Signature=  "$Windows NT$"
Class=      Image
ClassGUID=  {6bdd1fc6-810f-11d0-bec7-08002be2092f}
CatalogFile=Ct6840.cat
Provider=   %szMfg%
DriverVer=  12/19/2001,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative
 
[DestinationDirs]
DefaultDestDir=11
CtlCam.Copy.KernelDrivers=10,System32\Drivers
CtlCam.Copy.KernelDrivers.SYS=10,System32\Drivers
CtlCam.Copy.TwainFiles=10,TWAIN_32\Creative
CtlCam.Copy.WinFiles=10
CtlCam.Copy.SettingFiles=10,OvtCam
CtlCam.Copy.UserDrivers=11
CtlCam.Copy.UserDrivers.SYS=11
CtlCam.Copy.Vfw=10
CtlCam.CopySysTwnFiles=10

[Creative]
%szDeviceDesc%= CtlCam.Dev511P,USB\VID_05A9&PID_A511
%szDeviceDescB%=CtlCam.Dev511,USB\VID_05A9&PID_0511

; *** 511Plus device ***
;
[CtlCam.Dev511P]
DriverVer=     12/19/2001,%szVersion%
Include=       ks.inf,kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0xA511
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
UpdateInis=    CtlCam.UpdateIni
AddReg=        CtlCam.AddReg,CtlCam.Basic.AddReg,CtlCam.511P.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg
CopyFiles=     CtlCam.Copy.UserDrivers,CtlCam.Copy.UserDrivers.SYS,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.KernelDrivers.SYS,CtlCam.Copy.WinFiles,CtlCam.Copy.Vfw,CtlCam.CopySysTwnFiles

[CtlCam.Dev511P.NT]
Include=       ks.inf,kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0xA511
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
UpdateInis=    CtlCam.UpdateIni
AddReg=        CtlCam.AddReg,CtlCam.Basic.AddReg,CtlCam.511P.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.511P.AddReg.NT
CopyFiles=     CtlCam.Copy.UserDrivers,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.WinFiles,CtlCam.CopySysTwnFiles

; *** 511 Device ***
;
[CtlCam.Dev511]
DriverVer=     12/19/2001,%szVersion%
Include=       ks.inf,kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x0511
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
UpdateInis=    CtlCam.UpdateIni
AddReg=        CtlCam.AddReg,CtlCam.Basic.AddReg,CtlCam.511.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg
CopyFiles=     CtlCam.Copy.UserDrivers,CtlCam.Copy.UserDrivers.SYS,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.KernelDrivers.SYS,CtlCam.Copy.WinFiles,CtlCam.Copy.Vfw,CtlCam.CopySysTwnFiles

[CtlCam.Dev511.NT]
Include=       ks.inf,kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x0511
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
UpdateInis=    CtlCam.UpdateIni
AddReg=        CtlCam.AddReg,CtlCam.Basic.AddReg,CtlCam.511.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.511.AddReg.NT
CopyFiles=     CtlCam.Copy.UserDrivers,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.WinFiles,CtlCam.CopySysTwnFiles

[CtlCam.StiDeviceData]
TwainDS=%szTwainDSDesc%
SpecialInfo="My very special information"

[CtlCam.StiEvents]
NewPicture=%szNewPicture%,{06B70A41-729C-11D3-83FC-0050047A963E},%szStiAppName%
LaunchApp= %szLaunchApp%,{06B70A40-729C-11D3-83FC-0050047A963E},%szStiAppName%


; ------------------- Registry setting -------------------------------------

[CtlCam.Uns.AddReg]
HKR,,CtUnsPath,,"Ct6840.uns"
HKR,,CtUnsSection,,"CtlCam.Uninstall"

[CtlCam.Uns.511.AddReg.NT]
HKR,,CtUnsPath,,"Ct6840.uns"
HKR,,CtUnsSection,,"CtlCam.Uninstall.511.NT"

[CtlCam.Uns.511P.AddReg.NT]
HKR,,CtUnsPath,,"Ct6840.uns"
HKR,,CtUnsSection,,"CtlCam.Uninstall.511P.NT"

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

HKR,,HardwareConfig,1,2
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,webc3vid.sys
HKR,,OkToHibernate,3,01
;HKR,,PageOutWhenUnopened,3,01
;HKR,,PowerDownWhenUnopened,3,01
HKR,,VfwKey,,%szVfwKey%               ; for Setup
HKR,,VfwDeviceDesc,,%szVfwDeviceDesc% ; for Setup

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKCR,CLSID\%szSTIDevice.GUID%,,,"Video Blaster WebCam Plus Still Image USD"
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,,,%11%\webc3USD.dll
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,ThreadingModel,,"Both"

; ** Property pages registration **
; ** Custom Property Interface
HKCR,CLSID\%szCustomInterface.GUID%,,,%szPlugIn_CustomCameraProp%
HKCR,CLSID\%szCustomInterface.GUID%\InProcServer32,,,%szDSExtPageFile%
HKCR,CLSID\%szCustomInterface.GUID%\InProcServer32,ThreadingModel,,"Both"

; ** Custom Device Setting Property Page
HKCR,CLSID\%szCustomDevSetting.GUID%,,,%szPropPage_CustomDevSetting%
HKCR,CLSID\%szCustomDevSetting.GUID%\InprocServer32,,,%szDSExtPageFile%
HKCR,CLSID\%szCustomDevSetting.GUID%\InprocServer32,ThreadingModel,,Both

; ** Custom Banding Setting Property Page
HKCR,CLSID\%szCustomBandingSetting.GUID%,,,%szPropPage_CustomBandingSetting%
HKCR,CLSID\%szCustomBandingSetting.GUID%\InprocServer32,,,%szDSExtPageFile%
HKCR,CLSID\%szCustomBandingSetting.GUID%\InprocServer32,ThreadingModel,,Both

; Associate the property set with the property page
HKLM,System\CurrentControlSet\Control\MediaSets\%szCustomInterface.GUID%\PropertyPages\%szCustomDevSetting.GUID%,,,%szPropPage_CustomDevSetting%
HKLM,System\CurrentControlSet\Control\MediaSets\%szCustomInterface.GUID%\PropertyPages\%szCustomBandingSetting.GUID%,,,%szPropPage_CustomBandingSetting%

[CtlCam.Basic.AddReg]
HKLM,%szConfigReg2%\DeviceName,"DeviceName511",,%szDeviceDescB%
HKLM,%szConfigReg2%\DeviceName,"DeviceName511P",,%szDeviceDesc%
HKR,,ModulFileName,,webc3twn.ds

HKR,%szCamSetting%,StillSupportType,0x10001, 2
;HKR,%szCamSetting%,CustomID,0x10001, 2
HKR,%szCamSetting%,EnableAutoLaunch,1, 52,03,FF, 78,7,ff
HKR,%szCamSetting%,DisableAutoLaunch,1, 52,02,FF
HKR,%szCamSetting%,ClearSnapButton,1, 52,02,FF
HKR,%szCamSetting%,CheckAutoLaunch,1, 78,6,FF
HKR,%szCamSetting%,SupportEvent,0x10001, 1
HKR,%szCamSetting%,EnableSystem,1, 53,1,FF
HKR,%szCamSetting%,DisableSystem,1, 53,0,FF
HKR,%szCamSetting%,ResetUsb, 1, 50,40,FF, 53,01,FF, 50,3f,ff, 53,01,FF, 50,0,ff, 48,ff,ff,49,ff,ff
HKR,%szCamSetting%,SetUsbInit,1, 50,3D,FF
HKR,%szCamSetting%,SetUsbWork,1, 50,3f,ff, 50,0,ff
HKR,%szCamSetting%,BandwidthAllocateRule, 0x10001, 0
HKR,%szCamSetting%,FileDir,, \DosDevices\%10%\OvtCam

[CtlCam.511P.AddReg]
HKR,,WdmDeviceDesc,,%szDeviceDesc%      ; for Setup
HKR,%szCamSetting%\CamSettingFiles,7610p,,7610p.set
HKR,%szCamSetting%\CamSettingFiles,7620p,,7620p.set
HKR,%szCamSetting%\CamSettingFiles,7620aep,,7620aep.set
HKR,%szCamSetting%\CamSettingFiles,6620p,,6620p.set
HKR,%szCamSetting%\CamSettingFiles,6630p,,6630p.set
HKR,%szCamSetting%\CamSettingFiles,8600p,,8600p.set
HKR,%szCamSetting%, IdleAltSetting, 0x10001, 0x0
; ** For installation **
HKLM,%RunOnce%,"WebCam 3 USB Install",,"RunDLL32.exe Webc3pin.dll,RunDLL32EP 262 usb\vid_05a9&pid_a511"
; ** For add/remove programs applet **
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"DisplayName",0,%szUninstallDisplay%
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"UninstallString",0,"%10%\ctdrvins.exe -uninstall usb\vid_05a9&pid_a511 -plugin webc3pin.dll -pluginres webc3pin.crl"

[CtlCam.511.AddReg]
HKR,,WdmDeviceDesc,,%szDeviceDescB%      ; for Setup
HKR,%szCamSetting%\CamSettingFiles,7610,,7610.set
HKR,%szCamSetting%\CamSettingFiles,76BE,,76BE.set
HKR,%szCamSetting%\CamSettingFiles,7620,,7620.set
HKR,%szCamSetting%\CamSettingFiles,7620ae,,7620ae.set
HKR,%szCamSetting%\CamSettingFiles,6620,,6620.set
HKR,%szCamSetting%\CamSettingFiles,6630,,6630.set
HKR,%szCamSetting%\CamSettingFiles,8600,,8600.set
HKR,%szCamSetting%, IdleAltSetting, 0x10001, 0x7
; ** For installation **
HKLM,%RunOnce%,"WebCam 3 USB Install",,"RunDLL32.exe Webc3pin.dll,RunDLL32EP 262 usb\vid_05a9&pid_0511"
; ** For add/remove programs applet **
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"DisplayName",0,%szUninstallDisplay%
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%szUninstall%,"UninstallString",0,"%10%\ctdrvins.exe -uninstall usb\vid_05a9&pid_0511 -plugin webc3pin.dll -pluginres webc3pin.crl"

[CtlCam.Vfw.AddReg]
; ** For Video For Window driver **
HKLM,%MediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"webc3vfw.drv"

[CtlCam.Vfw.AddReg.NT]
; ** For Video For Window driver **
HKLM,%MediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"webc3vfw.dll"


; ------------------- Device interfaces ------------------------------------

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

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

[CtlCam.Dev511P.Interface]
AddReg=CtlCam.Dev511P.Intf.AddReg
         
[CtlCam.Dev511P.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%szDeviceDesc%
HKR,,ExtensionDLL,,webc3ext.dll

[CtlCam.Dev511P.NT.Services]
AddService=%sz511PServiceName%,0x00000002,CtlCam.Dev511P.ServiceInstall

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

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

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

[CtlCam.Dev511.Interface]
AddReg=CtlCam.Dev511.Intf.AddReg
         
[CtlCam.Dev511.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%szDeviceDescB%
HKR,,ExtensionDLL,,webc3ext.dll

[CtlCam.Dev511.NT.Services]
AddService=%sz511PServiceName%,0x00000002,CtlCam.Dev511P.ServiceInstall
;;AddService=%sz511ServiceName%,0x00000002,CtlCam.Dev511.ServiceInstall

;;[CtlCam.Dev511.ServiceInstall]
;;DisplayName   = %szDeviceDescB%
;;ServiceType   = %SERVICE_KERNEL_DRIVER%
;;StartType     = %SERVICE_DEMAND_START%
;;ErrorControl  = %SERVICE_ERROR_NORMAL%
;;ServiceBinary = %12%\webc3vid.sys

[CtlCam.UpdateIni]
system.ini,drivers32,,"VIDC.I420=msh263.drv",0
system.ini,drivers,,"MsVideo.%szVfwKey%=webc3vfw.drv",0


; --------------------------- File Copies ---------------------------------

[CtlCam.Copy.KernelDrivers]
webc3vid.sys
webc3cam.sys 

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

[CtlCam.Copy.UserDrivers]
webc3vfw.drv
webc3vfw.dll
webc3usd.dll
webc3ext.dll 
webc3dsx.ax
webc3pin.dll
webc3pin.crl

[CtlCam.Copy.UserDrivers.SYS]  ; Required in Win98
msh263.drv              ; from Microsoft

[CtlCam.Copy.WinFiles]
ctdrvins.exe
ct6840.uns

[CtlCam.Copy.TwainFiles]
webc3twn.ds

[CtlCam.Copy.Vfw]
vfwupd.exe

[CtlCam.CopySysTwnFiles]
;;TWUNK_16.EXE,,,0x20
;;TWUNK_32.EXE,,,0x20
DEFAULT.SRC,,,0x20
twacker.ini,,,0x20

[CtlCam.Copy.SettingFiles]
6620.set
6620p.set
6630.set
6630p.set
7610.set
7610p.set
7620.set
7620p.set
7620aep.set
7620ae.set
76BE.set
8600.set
8600p.set

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
webc3cam.sys   =1,,
webc3vid.sys   =1,,
webc3twn.ds    =1,,
webc3USD.dll   =1,,
webc3ext.dll   =1,,
webc3dsx.ax    =1,,
webc3vfw.dll   =1,,
webc3vfw.drv   =1,,
webc3pin.dll   =1,,
webc3pin.crl   =1,,
6620.set       =1,,
6620p.set      =1,,
6630.set       =1,,
6630p.set      =1,,
7610.set       =1,,
7610p.set      =1,,
7620.set       =1,,
7620p.set      =1,,
7620aep.set    =1,,
7620ae.set     =1,,
76BE.set       =1,,
8600.set       =1,,
8600p.set      =1,,
ctdrvins.exe   =1,,
TWUNK_16.EXE   =1,,
TWUNK_32.EXE   =1,,
DEFAULT.SRC    =1,,
Twacker.ini    =1,,
ct6840.uns     =1,,
VfwUpd.exe     =1,,
ctdrvins.exe   =1,,


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

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

RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MediaResourcesMSVideo="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"

;----------------
; User-definable
;----------------
szMfg                ="Creative Labs"
szDiskName           ="Creative Video Blaster WebCam 3/WebCam Plus Driver Disk"
szDeviceDesc         ="Video Blaster WebCam 3/WebCam Plus (WDM)"
szDeviceDescB        ="Video Blaster WebCam 3 (WDM)"

szCamSetting         ="CameraSetting"
szConfigReg          ="Software\Creative Tech\Video Blaster\WebCam 3 USB"
szConfigReg2         ="Software\OVTUsbCamera"
szLaunchApp          ="Open Application"
szNewPicture         ="New Picture Captured"
szStiAppName         ="WebCam Control"
sz511ServiceName     =CTL511
sz511PServiceName    =CTL511Plus
szTwainDSDesc        ="Creative WebCam 3 or WebCam Plus"
szUninstall          ="Creative Video Blaster WebCam 3 USB/WebCam Plus"
szUninstallDisplay   ="Creative Video Blaster WebCam 3 USB/WebCam Plus Driver"
szVfwDeviceDesc      ="Video Blaster WebCam 3/WebCam Plus (VFW)"
szVfwKey             ="WebCam3U"
szSTIDevice.GUID     ="{89151040-729C-11D3-83FC-0050047A963E}"

; Custom Property pages
szDSExtPageFile                  ="webc3dsx.ax"
szPlugIn_CustomCameraProp        ="CT6840 Custom Camera Interface handler"
szPropPage_CustomDevSetting      ="CT6840 Custom Device Setting Property Page"
szPropPage_CustomBandingSetting  ="CT6840 Custom Banding Frequency Property Page"
szCustomInterface.GUID           ="{F39E07C0-7D67-11D3-83FC-0050047A963E}"
szCustomDevSetting.GUID          ="{30af8142-7b74-11d3-b0ea-0060974cffd9}"
szCustomBandingSetting.GUID      ="{30af8145-7b74-11d3-b0ea-0060974cffd9}"

;----------------------
; Version information
;----------------------
szVersion         =2.05.05.00
