;---------------------------------------------------------------------------
; V0070DEV.INF -- Creative Camera Model Number VF0070 installation
; Copyright (c) 2004-2005 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= V0070.cat
Provider   = %szMfg%
DriverVer  = 02/28/2005,%szVersion%

[ControlFlags]
; All PnP devices should be excluded from manual AddDevice Applet list
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative

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

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

[CtlCam.Device]
DriverVer=      02/28/2005,%szVersion%
Include=        ks.inf,kscaptur.inf,ksfilter.inf
Needs=          KS.Registration,KSCAPTUR.Registration
SubClass=       StillImage
DeviceType=     2
DeviceSubType=  0x1
Capabilities=   1
AddReg=         CtlCam.Device.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg
UpdateInis=     CtlCam.UpdateIni
CopyFiles=      CtlCam.CopyKernelDrivers,CtlCam.CopyKernelDrivers.SYS,CtlCam.CopyUserDrivers,CtlCam.CopyUserDrivers.SYS,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopyVfwDriver
VendorSetup=    %szInsPlugIn%,NonCoInstSetupEP
Events=         CtlCam.StiEvents
DeviceData=     CtlCam.Device.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.Device.NT]
Include=        ks.inf,kscaptur.inf
Needs=          KS.Registration, KSCAPTUR.Registration.NT
SubClass=       StillImage
DeviceType=     2
DeviceSubType=  0x1
Capabilities=   1
AddReg=         CtlCam.Device.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.AddReg.NT,CtlCam.STI.AddReg.NT
UpdateInis=     CtlCam.UpdateIni
CopyFiles=      CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
ICMProfiles=    "sRGB Color Space Profile.icm"
Events=         CtlCam.StiEvents
DeviceData=     CtlCam.Device.DeviceData

[CtlCam.Device.DeviceData]
TwainDS=%szTwainDSDesc%

[CtlCam.StiEvents]
; ** For STI driver registration only. If there is a WIA driver, do not use this method. **
NewPicture= %szStiEventNewPic%,%szSTIEventNewPic.GUID%,%szStiAppName%
LaunchApp=  %szStiEventLaunchApp%,%szSTIEventLaunch.GUID%,%szStiAppName%

[CtlCam.STI.AddReg.NT]
; ** Fix WinXP resource string replacement problem **
HKR,Events\NewPicture,,0,%szStiEventNewPic%
HKR,Events\NewPicture,GUID,0,%szSTIEventNewPic.GUID%
HKR,Events\NewPicture,LaunchApplications,0,%szStiAppName%
HKR,Events\LaunchApp,,0,%szStiEventLaunchApp%
HKR,Events\LaunchApp,GUID,0,%szSTIEventLaunch.GUID%
HKR,Events\LaunchApp,LaunchApplications,0,%szStiAppName%

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

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

[CtlCam.Uns.AddReg]
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"

[CtlCam.Uns.AddReg.NT]
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext NT -plugin %szInsPlugIn% -pluginres %szInsPlugInRes% -filelog"
HKLM,%MSUninstall%\%szUninstall%,"NoModify",0x00010001,1
HKLM,%MSUninstall%\%szUninstall%,"NoRepair",0x00010001,1
	
[CtlCam.Device.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
; ** This line is added to prevent system from going into suspend mode in Win98 when vidoe streaming is running **
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,FriendlyName,,%szDeviceDesc%

HKR,,CtProductName,,%szProductName%

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKR,,CreateFileName,,"AUTO"

; ** NetMeeting settings **
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

[CtlCam.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"

[CtlCam.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"

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

[CtlCam.Device.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={6994AD05-93EF-11D0-A3CC-00A0C9223196},"GLOBAL",VideoCapture,

[CtlCam.Device.NT.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,
AddInterface={6994AD05-93EF-11D0-A3CC-00A0C9223196},"GLOBAL",VideoCapture,

[VideoCapture]
AddReg=VideoCapture.AddReg

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

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

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


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

[CtlCam.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
V0070USB.sys
V0070Vid.sys
V0070Evx.sys

[CtlCam.CopyKernelDrivers.SYS]
stream.sys

[CtlCam.CopyUserDrivers]
CtCamMgr.dll
CtCamPin.crl
V0070Hwx.dll
V0070Pin.dll
V0070Ext.crl
V0070Ext.ax
V0070sti.dll
V0070Srv.exe

[CtlCam.CopyUserDrivers.SYS]
Msh263.drv

[CtlCam.CopyVfwDriver]
V0070Vfw.drv

[CtlCam.W2K.CopyVfwDriver]
V0070Vfw.dll

[CtlCam.CopyTwainFiles]
CtTwain.dll
V0070Twn.ds
CtTwain.bff
cttwain.crl
HookWnd.dll
Gdiplus.dll

[CtlCam.CopyWinFiles]
CtDrvIns.exe
V0070Cfg.exe
VF0070.uns
VfwUpd.exe

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe
V0070Cfg.exe
VF0070.uns


[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,,
V0070Cfg.exe=1,,
V0070Ext.ax=1,,
V0070Ext.crl=1,,
V0070Hwx.dll=1,,
V0070Pin.dll=1,,
V0070Srv.exe=1,,
V0070Sti.dll=1,,
V0070Twn.ds=1,,
V0070USB.sys=1,,
V0070Evx.sys=1,,
V0070Vfw.dll=1,,
V0070Vfw.drv=1,,
V0070Vid.sys=1,,
VF0070.uns=1,,
VfwUpd.exe=1,,
GdiPlus.dll=1,,

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

[Strings]
ProxyVidCap.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

MSUninstall             ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaSets             ="System\CurrentControlSet\Control\MediaSets"
MSMediaInterfaces       ="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaResourcesMSVideo ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg                   ="Creative Labs"
szDeviceDesc            ="Creative WebCam Notebook Ultra"
szProductName           ="Creative WebCam Notebook Ultra" 
szConfigRegistry        ="Software\Creative Tech\Web Cameras\VF0070"

;Custom device setting
szVfwKey                ="V0070VFW"
szVfwDeviceDesc         ="Creative WebCam Notebook Ultra (VFW)"
szTwainDSDesc           ="Creative WebCam Notebook Ultra"
szUninstall             ="Creative VF0070"
szUninstallDisplay      ="Creative WebCam Notebook Ultra Driver"
szStillImageDesc        ="VF0070 Still Image USD"
szStiAppName            ="WebCam Center"
szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"
szDiskName              ="Creative WebCam Notebook Ultra Driver Disk"
szVidServiceName        ="V0070VID"

; File names
szInsPlugIn             ="V0070Pin.dll"
szInsPlugInRes          ="CtCamPin.crl"
szExtPageFile           ="V0070Ext.ax"
szUNSScript             ="VF0070.uns"
szVfwBaseFileName       ="V0070Vfw"
szVideoDriver           ="V0070Vid.sys"
szStiDriver             ="V0070Sti.dll"

szSTIDevice.GUID        ="{265C15F0-4CB8-43F9-B828-C29648982490}"
szSTIEventNewPic.GUID   ="{528581B6-BC09-456F-91F7-F21EE55D47E4}"
szSTIEventLaunch.GUID   ="{BC9CA8A9-54F9-4721-B98D-97A9E8937FE5}"

;----------------------
; Version information
;----------------------
szVersion         ="1.00.05.0127"
