;---------------------------------------------------------------------------
; WEBCAMGO.INF -- Creative Video Blaster WebCam Go 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=Ct6860.cat
Provider=%szMfg%
DriverVer=12/22/2001,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative

[DestinationDirs]
DefaultDestDir=11
CtlCam.CopyKernelDrivers=10,system32\drivers
CtlCam.CopyKernelDrivers.SYS=10,system32\drivers
CtlCam.W2K.CopyKernelDrivers=10,system32\drivers
CtlCam.CopyUserDrivers=11
CtlCam.W2K.CopyWinFiles=10
CtlCam.W98.CopyWinFiles=10
CtlCam.CopyUserDrivers.SYS=11
CtlCam.CopySysTwnFiles=10
CtlCam.CopyTwainFiles=10,twain_32\Creative
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

[Creative]
%szDeviceDesc%=CtlCam.Device,USB\VID_1046&PID_9967

[CtlCam.Device]
DriverVer=     12/22/2001,%szVersion%
Include=       ks.inf,kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
AddReg=        CtlCam.AddReg,CtlCam.Codec.AddReg,CtlCam.Vfw.AddReg,CtlCam.Service.AddReg,CtlCam.Uns.AddReg
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyKernelDrivers.SYS,CtlCam.CopyUserDrivers,CtlCam.CopyUserDrivers.SYS,CtlCam.CopyTwainFiles,CtlCam.W98.CopyWinFiles,CtlCam.CopySysTwnFiles,CtlCam.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2
DeviceSubtype= 1
Capabilities=  5
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
PropertyPages= "wbcgores.cpl,EnumStiPropPages"

[CtlCam.Device.NT]
Include=       ks.inf,kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        CtlCam.AddReg,CtlCam.Codec.AddReg,CtlCam.AddReg.NT,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.AddReg.NT
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.W2K.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver,CtlCam.CopySysTwnFiles
SubClass=      StillImage
DeviceType=    2
DeviceSubtype= 1
Capabilities=  5
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
PropertyPages= "wbcgores.cpl,EnumStiPropPages"

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

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

[CtlCam.AddReg]
; ** Driver package version **
HKLM,%szConfigRegistry%,"Version",0,%szVersion%
HKLM,%szConfigRegistry%\LensInfo,"FieldOfView",0x10001,62

HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"wbcgovid.sys"
HKR,,PageOutWhenUnopened,3,00
;HKR,,PowerDownWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,VfwKey,,%szVfwKey%                      ; for Setup
HKR,,VfwDeviceDesc,,%szVfwDeviceDesc%        ; for Setup
HKR,,WdmDeviceDesc,,%szDeviceDesc%           ; for TWAIN DS
HKR,,CreateFileName,,%szCreateDeviceName%    ; for STI

;
; *** Please ensure no space between commas ***
;
; Camera default settings
;
; ** Color Control **
HKR,%szCamConfigRegistry%\ColorControl,"ApplyRegistryValues",0x10001,1
HKR,%szCamConfigRegistry%\ColorControl,"Brightness",0x10001,130
HKR,%szCamConfigRegistry%\ColorControl,"BrightnessFlags",0x10001,1
HKR,%szCamConfigRegistry%\ColorControl,"Contrast",0x10001,6
HKR,%szCamConfigRegistry%\ColorControl,"Gamma",0x10001,2
HKR,%szCamConfigRegistry%\ColorControl,"Hue",0x10001,0
HKR,%szCamConfigRegistry%\ColorControl,"Saturation",0x10001,100
HKR,%szCamConfigRegistry%\ColorControl,"Sharpness",0x10001,7
HKR,%szCamConfigRegistry%\ColorControl,"WhiteBalance",0x10001,3
HKR,%szCamConfigRegistry%\ColorControl,"WhiteBalanceFlags",0x10001,1

; ** Compression Quality **
HKR,%szCamConfigRegistry%\Compression,"Quality",0x10001,0x1000
HKR,%szCamConfigRegistry%\Compression,"FrameRate",0x10001,120

; ** Camera control **
HKR,%szCamConfigRegistry%\CameraControl,"Exposure",0x10001,254
HKR,%szCamConfigRegistry%\CameraControl,"ExposureFlags",0x10001,1
HKR,%szCamConfigRegistry%\CameraControl,"BandingFilter",0x10001,1
HKR,%szCamConfigRegistry%\CameraControl,"PowerFrequency",0x10001,60
HKR,%szCamConfigRegistry%\CameraControl,"Pan",0x10001,28
HKR,%szCamConfigRegistry%\CameraControl,"Tilt",0x10001,5
HKR,%szCamConfigRegistry%\CameraControl,"Zoom",0x10001,0

; ** Driver **
HKR,%szCamConfigRegistry%\Driver,"ReadPollLatency",0x10001,3
HKR,%szCamConfigRegistry%\Driver,"SnapPollLatency",0x10001,250
HKR,%szCamConfigRegistry%\Driver,"PollMethod",0x10001,1

; ** For installation **
HKLM,%MSRunOnce%,"WebCam Go Install",,"CtDrvIns -setup usb\vid_1046&pid_9967 -plugin Wbcgopin.dll"

; ** Sti service application **
HKLM,%MSRun%,%szStiRunAppDesc%,,"wbcgosvc"
HKLM,%MSRunOnce%,%szStiRunAppDesc%,,"wbcgosvc install"

; ** 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_1046&pid_9967 -plugin Wbcgopin.dll -pluginres Wbcgopin.crl"

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKCR,CLSID\%szSTIDevice.GUID%,,,%szStillImageDesc%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,,,%11%\wbcgosti.dll
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,ThreadingModel,,"Both"

[CtlCam.AddReg.NT]
HKLM,%MSMMDriverDesc%,vfwwdm32.dll,,%szVfwDeviceDesc%
HKLM,%MSMMDrivers%,MSVideo,,VfWWDM32.dll

[CtlCam.Service.AddReg]
; ** Install another service for Windows 98 only **
HKLM,System\CurrentControlSet\Services\%szHalServiceName%,Group,,"Base"
HKLM,System\CurrentControlSet\Services\%szHalServiceName%,ImagePath,,"\SystemRoot\system32\drivers\Wbcgohal.sys"
HKLM,System\CurrentControlSet\Services\%szHalServiceName%,Start,1,03,00,00,00
HKLM,System\CurrentControlSet\Services\%szHalServiceName%,Type,1,01,00,00,00
HKLM,System\CurrentControlSet\Services\%szHalServiceName%,ErrorControl,1,01,00,00,00

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

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

[CtlCam.Codec.AddReg]
; ** For Codec **
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.CJPG,Description,0,%szCodecNameJPG%
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.CJPG,Driver,0,ctwbjpg.dll
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.YUY2,Description,0,%szCodecNameYUY2%
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\icm\vidc.YUY2,Driver,0,ctwbjpg.dll

[CtlCam.UpdateIni]
system.ini,drivers32,,"VIDC.CJPG=ctwbjpg.dll",0
system.ini,drivers32,,"VIDC.YUY2=ctwbjpg.dll",0
system.ini,drivers32,,"VIDC.I420=msh263.drv",0
system.ini,drivers,,"MsVideo.%szVfwKey%=wbcgovfw.drv",0

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

[CtlCam.Device.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,CtlCam.Interface
AddInterface=%szDeviceChange.GUID%,GLOBAL,CtlCam.DevChg.Interface

[CtlCam.Interface]
AddReg=CtlCam.Intf.AddReg

[CtlCam.DevChg.Interface]

[CtlCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVidCap.CLSID%
HKR,,ExtensionDLL,,wbcgovex.dll
HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}
HKR,PinFactory\1\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}
HKR,,Vendor,,%szMfg%
HKR,,DeviceChangeGuid,,%szDeviceChange.GUID%
HKR,,FSDName,,"wbcgofsd.dll"
HKR,,HwCapabilities,,"1"

[CtlCam.Device.NT.Services]
AddService=%szVidServiceName%,0x00000002,CtlCam.ServiceInstall
AddService=%szHalServiceName%,0x00000001,CtlCam.ServiceInstall2

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

[CtlCam.ServiceInstall2]
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\Wbcgohal.sys

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

[CtlCam.StiEvents]
NewPicture=%szNewPicture%,{B25796E8-BC42-43e7-AF1F-B4FCF3319216},%szStiAppName%
LaunchApp=%szLaunchApp%,{6402429C-DFE8-47ff-806B-50520FE8BE9E},%szStiAppName%

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

[CtlCam.CopyKernelDrivers]
wbcgovid.sys,wbcgovid.w98
wbcgohal.sys

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

[CtlCam.W2K.CopyKernelDrivers]
wbcgovid.sys,wbcgovid.nt
wbcgohal.sys

[CtlCam.CopyUserDrivers]
ctwbjpg.dll
wbcgores.cpl
wbcgores.crl
wbcgosti.dll
wbcgofsd.dll
wbcgovex.dll
wbcgovex.crl
wbcgohal.dll
wbcgopin.dll
wbcgopin.crl

[CtlCam.CopyTwainFiles]
wbcgotwn.ds
wbcgotwn.crl
cttwnui.crl
cttwnui.dll
ctskin.dll
ctspea32.dll
ctres32.dll

[CtlCam.W2K.CopyWinFiles]
wbcgosvc.exe
ctdrvins.exe
ct6860.uns

[CtlCam.W98.CopyWinFiles]
ctdrvins.exe
vfwupd.exe
ct6860.uns

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

[CtlCam.CopyVfwDriver]
wbcgovfw.drv

[CtlCam.W2K.CopyVfwDriver]
wbcgovfw.dll

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
ctwbjpg.dll=1,,
ctskin.dll=1,,
ctspea32.dll=1,,
ctres32.dll=1,,
cttwnui.crl=1,,
cttwnui.dll=1,,
wbcgovid.sys=1,,
wbcgohal.sys=1,,
wbcgouns.exe=1,,
wbcgouns.crl=1,,
wbcgovfw.drv=1,,
wbcgovfw.dll=1,,
wbcgotwn.ds=1,,
wbcgotwn.crl=1,,
wbcgofsd.dll=1,,
wbcgosti.dll=1,,
wbcgosvc.exe=1,,
wbcgohal.dll=1,,
wbcgopin.dll=1,,
wbcgopin.crl=1,,
wbcgores.cpl=1,,
wbcgores.crl=1,,
wbcgovex.dll=1,,
wbcgovex.crl=1,,
twacker.ini=1,,
vfwupd.exe=1,,
TWUNK_16.EXE=1,,
TWUNK_32.EXE=1,,
DEFAULT.SRC=1,,
ctdrvins.exe=1,,
ct6860.uns=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

MSMMDriverDesc          ="SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc"
MSMMDrivers             ="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32"
MSRunOnce               ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSRun                   ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSMediaResourcesMSVideo ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg                ="Creative Labs"
szDeviceDesc         ="Video Blaster WebCam Go (WDM)"

szConfigRegistry     ="Software\Creative Tech\Video Blaster\WebCam Go"
szCamConfigRegistry  ="CamConfiguration"
szCodecNameJPG       ="WinBond JPEG [CJPG]"
szCodecNameYUY2      ="WinBond YUY2 [YUY2]"
szCreateDeviceName   ="\\.\PCAMSTI"
szDeviceChange.GUID  ="{3393756E-854B-4d9f-A41C-6C050DB3EF9B}"
szLaunchApp          ="Open Application"
szNewPicture         ="New Picture Captured"
szStiAppName         ="WebCam Go Control"
szStillImageDesc     ="CT6860 Still Image USD"
szTwainDSDesc        ="Video Blaster WebCam Go"
szUninstall          ="Creative Video Blaster WebCam Go"
szUninstallDisplay   ="Creative Video Blaster WebCam Go Driver"
szVfwKey             ="WebCamGo"
szVfwDeviceDesc      ="Video Blaster WebCam Go (VFW)"
szDiskName           ="Creative Video Blaster WebCam Go Driver Disk"
szStiRunAppDesc      ="WebCam Go Sti Service Application"
szVidServiceName     =WBCGOVID
szHalServiceName     =WBCGOHAL
szSTIDevice.GUID     ="{CF426920-BA4E-426e-937D-1D616C33638C}"

;----------------------
; Version information
;----------------------
szVersion      =1.22.03.00
