;---------------------------------------------------------------------------
; P1370VID.INF -- Creative Camera Model Number PD1370 installation
; Copyright (c) 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=Pd1370.cat
Provider=   %szMfg%
DriverVer=  04/10/2006,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%szMfg%=Creative

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

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

[CtlCam.Device.NT]
Include=       Ks.inf,Kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        CtlCam.Basic.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.AddReg.NT
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
;SubClass=      StillImage
DeviceType=    3
DeviceSubType= 0x1
Capabilities=  0x1
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.DeviceData]
TwainDS=%szTwainDSDesc%

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

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

[CtlCam.Uns.AddReg.NT]     ; Creative
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext NT -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"
HKLM,%MSUninstall%\%szUninstall%,"NoModify",0x00010001,1
HKLM,%MSUninstall%\%szUninstall%,"NoRepair",0x00010001,1
HKR,,CtUnsExt,,"NT"


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

; ** Device driver **
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
HKR,,CtProductName,,%szProductName%
HKR,,CtAudioName,,%szAudioName%

; ** For add/remove programs applet **
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%)"

; ** 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.NT]  ; Creative
; ** 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.Device.NT.Interfaces]
AddInterface =%KSCATEGORY_CAPTURE%,%szAVStream.GUID%,CtlCam.Interface

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

[CtlCam.Intf.AddReg]
HKR,,CLSID,,%ProxyVidCap.CLSID%
HKR,,ExtensionDLL,,%szExtPageFile%
HKR,,FriendlyName,,%szDeviceDesc%
HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}

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

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

; ----------------------------- FILES ---------------------------------
[CtlCam.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
P1370Vid.sys
P1370Aud.sys
P1370Aul.sys
P1370Evx.sys
CamH1370.bin
CamF1370.bin

[CtlCam.CopyUserDrivers]
P1370Hwx.dll
P1370Cvw.dll
P1370Cvw.crl
P1370Cvw.bff
P1370Pin.dll 
CtCamPin.crl,,,0x00000020  
P1370Mpn.dll
P1370Ext.ax 
P1370Ext.crl  
P1370Srv.exe
CtCamMgr.dll,,,0x00000020
PD1370FT.chm,WebCamFT.chm

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

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe,,,0x00000020
P1370Cfg.exe
PD1370.uns    

[CtlCam.W2K.CopyVfwDriver]
P1370Vfw.dll   ; from Creative

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
CtCamMgr.dll=1,,
P1370Vid.sys=1,,
P1370Evx.sys=1,,
CtTwain.dll=1,,
HookWnd.dll=1,,
CtTwain.bff=1,,
cttwain.crl=1,,
Gdiplus.dll=1,,
P1370Twn.ds=1,,
P1370Hwx.dll=1,,
P1370Cvw.dll=1,,
P1370Cvw.crl=1,,
P1370Cvw.bff=1,,
P1370Vfw.dll=1,,
P1370Pin.dll=1,,
CtCamPin.crl=1,,
CtDrvIns.exe=1,,
P1370Cfg.exe=1,,
PD1370.uns=1,,
P1370Ext.ax=1,,
P1370Ext.crl=1,,
P1370Aud.sys=1,,
P1370Aul.sys=1,,
P1370Srv.exe=1,,
CamH1370.bin =1,,
CamF1370.bin =1,,
P1370Mpn.dll=1,,
WebCamFT.chm=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
SERVICE_AUTO_START      =2

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

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg                   ="Creative Technology Ltd"
szDeviceDesc            ="Live! Cam Voice"
szProductName           ="Creative Live! Cam Voice" 
szAudioName             ="Live! Cam Voice (Mic)" 
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD1370"

szVfwKey                ="P1370VFW"
szVfwDeviceDesc         ="Live! Cam Voice (VFW)"
szTwainDSDesc           ="Live! Cam Voice"
szUninstall             ="Creative Live! Cam Voice"
szUninstallDisplay      ="Creative Live! Cam Voice Driver"

szDiskName              ="Creative Live! Cam Voice Driver Disk"
szVidServiceName        ="P1370VID"

; File names
szInsPlugIn             ="P1370Pin.dll"
szInsPlugInRes          ="CtCamPin.crl"
szExtPageFile           ="P1370Ext.ax"
szUNSScript             ="PD1370.uns"
szVfwBaseFileName       ="P1370Vfw"
szVideoDriver           ="P1370Vid.sys"

szAVStream.GUID   	="{580AAE77-4EBB-46ae-9A13-342A2AF1927D}"
;----------------------
; Version information
;----------------------
szVersion               ="1.01.02.0410"   ; WDM driver build 06-04-10
