;---------------------------------------------------------------------------
; WEBCAM.INF -- Creative Video Blaster WebCam Camera installation
; Copyright (c) 2000-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=Pd0040.cat
Provider=%szMfg%
DriverVer=01/18/2002,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative
 
[DestinationDirs]
DefaultDestDir=11
CtlCam.CopyKernelDrivers=10,System32\Drivers
CtlCam.CopyKernelDrivers.SYS=10,System32\Drivers
CtlCam.CopyUserDrivers=11
CtlCam.CopyWinFiles=10
CtlCam.CopyUserDrivers.SYS=11
CtlCam.CopySysTwnFiles=10
CtlCam.CopyTwainFiles=10,TWAIN_32\Creative
CtlCam.CopySettingFiles=10,OvtCam
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

[Creative]
%szDeviceDesc%=CtlCam.Dev518,USB\VID_05A9&PID_0518

[CtlCam.Dev518]
DriverVer=     01/18/2002,%szVersion%
Include=       Ks.inf,Kscaptur.inf,Ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x0518
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
UpdateInis=    CtlCam.UpdateIni
AddReg=        CtlCam.AddReg,CtlCam.Basic.AddReg,CtlCam.518.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyKernelDrivers.SYS,CtlCam.CopyUserDrivers,CtlCam.CopyUserDrivers.SYS,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopySysTwnFiles,CtlCam.CopyVfwDriver,CtlCam.CopySettingFiles

[CtlCam.Dev518.NT]
Include=       Ks.inf,Kscaptur.inf,Ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x0518
Capabilities=  1
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
UpdateInis=    CtlCam.UpdateIni
AddReg=        CtlCam.AddReg,CtlCam.Basic.AddReg,CtlCam.518.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.AddReg.NT,CtlCam.Uns.AddReg.NT
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopySysTwnFiles,CtlCam.W2K.CopyVfwDriver,CtlCam.CopySettingFiles

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

[CtlCam.StiEvents]
NewPicture=%szNewPicture%,{af9c03a1-6f93-11d4-a3d5-0050047a963e},%szStiAppName%
LaunchApp=%szLaunchApp%,{af9c03a0-6f93-11d4-a3d5-0050047a963e},%szStiAppName%

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

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

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

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

HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,wcvid.sys
;HKR,,PageOutWhenUnopened,3,01
;HKR,,PowerDownWhenUnopened,3,01
HKR,,OkToHibernate,3,01
HKR,,ConfigRegistry,,%szConfigReg%
HKR,,VfwKey,,%szVfwKey%
HKR,,WdmDeviceDesc,,%szDeviceDesc%
HKR,,VfwDeviceDesc,,%szVfwDeviceDesc%

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKCR,CLSID\%szSTIDevice.GUID%,,,%szStillImageDesc%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,,,%11%\WcUsd.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 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,%MSMediaSets%\%szCustomInterface.GUID%\PropertyPages\%szCustomDevSetting.GUID%,,,%szPropPage_CustomDevSetting%
HKLM,%MSMediaSets%\%szCustomInterface.GUID%\PropertyPages\%szCustomBandingSetting.GUID%,,,%szPropPage_CustomBandingSetting%

; ** For installation **
HKLM,%MsRunOnce%,"WebCam Install",,"RunDLL32.exe Wcpin.dll,RunDLL32EP 262"

; ** For add/remove programs applet **
HKLM,%MsUninstall%\%szUninstall%,"DisplayName",0,%szUninstallDisplay%
HKLM,%MsUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall usb\vid_05A9&pid_0518 -plugin Wcpin.dll -pluginres Wcpin.crl"

[CtlCam.Basic.AddReg]
HKR,,ModulFileName,,wctwn.ds

HKR,%szCamSetting%, StillSupportType, 0x10001, 2
HKR,%szCamSetting%, EnableAutoLaunch, 1, 52,01,01
HKR,%szCamSetting%, DisableAutoLaunch, 1, 52,01,01
HKR,%szCamSetting%, ClearSnapButton, 1, 52,03,03
HKR,%szCamSetting%, CheckAutoLaunch, 1, 52,08,08
HKR,%szCamSetting%, SupportEvent, 0x10001, 1
HKR,%szCamSetting%, EnableSystem, 1, 53,E1,FF, 5d, 03, ff
HKR,%szCamSetting%, DisableSystem, 1, 53,E0,FF
HKR,%szCamSetting%, ResetUsb, 1, 50,40,FF, 53,E1,FF, 50,3e,ff, 53,E1,FF, 50,0,ff
HKR,%szCamSetting%, SetUsbInit, 1, 50,3E,FF, 50,00,FF
HKR,%szCamSetting%, SetUsbWork, 1, 50,3E,ff, 50,0,ff
HKR,%szCamSetting%, BlockStream, 1, 50,3a,3a
HKR,%szCamSetting%, StartStream, 1, 2f,80,ff,50,00,ff
HKR,%szCamSetting%, BandwidthAllocateRule, 0x10001, 0
HKR,%szCamSetting%, FileDir,, \DosDevices\%10%\OvtCam
HKR,%szCamSetting%, DefaultYQuanTable, 1, 3,3,5,5,6,7,7,7, 5,5,5,5,6,7,7,7, \
6,6,6,6,6,7,7,7, 7,7,6,7,7,7,7,7

[CtlCam.518.AddReg]
HKR,%szCamSetting%\CamSettingFiles,66308,,66308.set
HKR,%szCamSetting%\CamSettingFiles,66308ae,,66308ae.set
HKR,%szCamSetting%\CamSettingFiles,66308af,,66308af.set
HKR,%szCamSetting%,IdleAltSetting,0x10001,0x0

[CtlCam.AddReg.NT]
HKLM,"Software\OmniVision\PC Camera","PushModeEvent",,"Enable"

[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",,"wcvfw.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",,"wcvfw.dll"


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

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

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

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

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

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

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


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

[CtlCam.CopyKernelDrivers]
wcvid.sys
wccam.sys

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

[CtlCam.CopyUserDrivers]
wcusd.dll 
wcvex.dll 
wcdsx.ax
wcpin.dll
wcpin.crl
wccfg.crl

[CtlCam.CopyTwainFiles]
wctwn.ds,,,4

[CtlCam.CopyWinFiles]
vfwupd.exe
ctdrvins.exe
pd0040.uns
wccfg.exe

[CtlCam.CopyUserDrivers.SYS]
msh263.drv

[CtlCam.CopyVfwDriver]
wcvfw.drv

[CtlCam.W2K.CopyVfwDriver]
wcvfw.dll

[CtlCam.CopySysTwnFiles]
;;TWUNK_16.EXE,,,0x20   ; Without it may cause TWAIN problem in fresh Win98 system
;;TWUNK_32.EXE,,,0x20
DEFAULT.SRC,,,0x20
twacker.ini,,,0x20

[CtlCam.CopySettingFiles]
66308.set
66308ae.set
66308af.set

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
66308.set=1,,
66308ae.set=1,, 
66308af.set=1,,
ctdrvins.exe=1,,
DEFAULT.SRC=1,,
pd0040.uns=1,,
TWUNK_16.EXE=1,,
TWUNK_32.EXE=1,,
TWACKER.INI=1,,
VFWUPD.EXE=1,,
wccam.sys=1,,
wcvid.sys=1,,
wctwn.ds=1,,
wcUSD.dll=1,,
wcvex.dll=1,,
wcdsx.ax=1,,
wcvfw.dll=1,,
wcvfw.drv=1,,
wcpin.dll=1,,
wcpin.crl=1,,
wccfg.exe=1,,
wccfg.crl=1,,

; ---------------------------- Strings ------------------------------------

[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

MsRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MsUninstall            ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MsMediaResourcesMSVideo="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSMediaSets            ="SYSTEM\CurrentControlSet\Control\MediaSets"

;----------------
; User-definable
;----------------
szMfg             ="Creative Labs"
szDiskName        ="Creative Video Blaster WebCam Driver Disk"
szDeviceDesc      ="Video Blaster WebCam (WDM)"
szCamSetting      ="CameraSetting"
szConfigReg2      ="Software\Creative Tech\Video Blaster\WebCam"
szConfigReg       ="Software\OVTUsbCamera"
szLaunchApp       ="Open Application"
szNewPicture      ="New Picture Captured"
szStillImageDesc  ="Creative Video Blaster WebCam Still Image USD"
szStiAppName      ="WebCam Control"
szTwainDSDesc     ="Video Blaster WebCam"
szUninstall       ="Creative Video Blaster WebCam"
szUninstallDisplay="Creative Video Blaster WebCam Driver"
szVfwDeviceDesc   ="Video Blaster WebCam (VFW)"
szVfwKey          ="WebCam"
szVideoServiceName=CTL518
szSTIDevice.GUID  ="{af9c03a3-6f93-11d4-a3d5-0050047a963e}"

; Custom Property pages
szDSExtPageFile                ="WcDsx.ax"
szPlugIn_CustomCameraProp      ="PD0040 Custom Camera Interface handler"
szPropPage_CustomDevSetting    ="PD0040 Custom Device Setting Property Page"
szPropPage_CustomBandingSetting="PD0040 Custom Banding Frequency Property Page"
szCustomInterface.GUID         ="{6c2c6c01-6f7e-11d4-a3d5-0050047a963e}"
szCustomDevSetting.GUID        ="{94781a20-6f9b-11d4-9b97-0080c8e11d80}"
szCustomBandingSetting.GUID    ="{94781a21-6f9b-11d4-9b97-0080c8e11d80}"

;----------------------
; Version information
;----------------------
szVersion      =1.06.01.011106
