;------------------------------------------------------------------------------
; P0870DEV.INF -- Creative Camera Model Number PD0870 installation
; Copyright (c) 2005 Creative Technology Ltd. All rights reserved.
;------------------------------------------------------------------------------

[Version]
Signature   =$Chicago$
Class       =Image
ClassGuid   ={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider    =%szManufacturer%
LayoutFile  =layout.inf,layout1.inf,layout2.inf
CatalogFile =Pd0870.cat
DriverVer   =12/23/2005,%szVersion%

[SourceDisksNames]
1 =%szDiskName%,,,

[SourceDisksFiles]
CtCamPin.crl =1,,
CtCamMgr.dll =1,,
CtCamMgr64.dll=1,,
CtRegApp.dll =1,,
CtDrvIns.exe =1,,
CtDrvIns64.exe =1,,
CtTwain.bff  =1,,
CtTwain.dll  =1,,
CtTwain.crl  =1,,
HookWnd.dll  =1,,
GdiPlus.dll  =1,,
P0870Dev.sys =1,,
P0870Dev64.sys=1,,
P0870Usb.sys =1,,
P0870Evx.sys =1,,
P0870Sti.dll =1,,
P0870Sti64.dll =1,,
P0870Hwx.dll =1,,
P0870Hwx64.dll=1,,
P0870Pin.dll =1,,
P0870Pin64.dll =1,,
P0870Ext.ax  =1,,
P0870Ext64.ax=1,,
P0870Ext.crl =1,,
P0870Ext64.crl=1,,
P0870Twn.ds  =1,,
P0870Vfw.drv =1,,
P0870Vfw.dll =1,,
P0870Cfg.exe =1,,
PD0870.uns   =1,,
P0870Srv.exe =1,,
P0870Srv64.exe=1,,
VfwUpd.exe   =1,,

[DestinationDirs]
DefaultDestDir       =11
Cam.CopyKnlDrv       =10,system32\drivers
Cam.CopyUserDrv      =11
Cam.CopyTwnFiles     =10,Twain_32\Creative\PD0870
Cam.CopyVfwDrv       =11
Cam.CopyVfwDrv.NT    =11
Cam.CopyWinFiles     =10
Cam.CopyKnlDrv.SYS   =10,system32\drivers
Cam.CopyUserDrv.SYS  =10,system
Cam.AMD64.CopyUserDrv=11
Cam.AMD64.CopyWinFiles=10
Cam.AMD64.CopyKernDrv=10,system32\drivers
Cam.AMD64WOW.CopyUserDrv=10,SysWow64


[ControlFlags]
ExcludeFromSelect =*

[Manufacturer]
;;%szManufacturer% =Creative,NTAMD64
%szManufacturer% =Creative

[Creative]
%szDeviceDesc% =CtlCam,USB\VID_041E&PID_4041

[Creative.NTAMD64]
%szDeviceDesc% =CtlCam,USB\VID_041E&PID_4041

[CtlCam]
DriverVer     =12/23/2005,%szVersion%
CopyFiles     =Cam.CopyKnlDrv,Cam.CopyKnlDrv.SYS,Cam.CopyUserDrv,Cam.CopyTwnFiles,Cam.CopyVfwDrv,Cam.CopyWinFiles,Cam.CopyUserDrv.SYS
AddReg        =Cam.AddReg,Cam.Uns.AddReg,Cam.Vfw.AddReg
Include       =ks.inf,kscaptur.inf,ksfilter.inf
Needs         =KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
UpdateInis    =Cam.UpdateIni
SubClass      =StillImage
DeviceType    =3
DeviceSubType =0
Capabilities  =0x1
DeviceData    =Cam.DeviceData
Events        =Cam.Events
VendorSetup   =%szInsPlugInFile%,NonCoInstSetupEP
ICMProfiles   ="sRGB Color Space Profile.icm"

[CtlCam.NT]
CopyFiles     =Cam.CopyKnlDrv,Cam.CopyUserDrv,Cam.CopyTwnFiles,Cam.CopyVfwDrv.NT,Cam.CopyWinFiles
AddReg        =Cam.AddReg,Cam.STI.AddReg.NT,Cam.Uns.AddReg.NT,Cam.Vfw.AddReg.NT
Include       =ks.inf,kscaptur.inf
Needs         =KS.Registration,KSCAPTUR.Registration.NT
SubClass      =StillImage
DeviceType    =3
DeviceSubType =0
Capabilities  =0x1
DeviceData    =Cam.DeviceData
Events        =Cam.Events
ICMProfiles   ="sRGB Color Space Profile.icm"

[CtlCam.NTAMD64]
CopyFiles     =Cam.AMD64.CopyKernDrv,Cam.AMD64.CopyUserDrv,Cam.AMD64.CopyWinFiles,Cam.AMD64WOW.CopyUserDrv,Cam.CopyTwnFiles,Cam.CopyVfwDrv.NT
AddReg        =Cam.AddReg,Cam.STI.AddReg.NT,Cam.Uns.AddReg.NTAMD64,Cam.Vfw.AddReg.NT
Include       =ks.inf,kscaptur.inf
Needs         =KS.Registration,KSCAPTUR.Registration.NT
SubClass      =StillImage
DeviceType    =3
DeviceSubType =0
Capabilities  =0x1
DeviceData    =Cam.DeviceData
Events        =Cam.Events
ICMProfiles   ="sRGB Color Space Profile.icm"

[Cam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
HKR,,CreateFileName,,AUTO
HKR,,HardwareConfig,1,4
HKR,,USDClass,,%szSTIDriver.GUID%
; Remove flags below if unnecessary; if not might cause driver undisableable.
;;HKR,,DontSuspendIfStreamsAreRunning,3,1
;;HKR,,OkToHibernate,1,1
;;HKR,,PageOutWhenUnopened,1,0
;;HKR,,PowerDownWhenUnopened,1,0
HKR,,CtProductName,,%szProductName%

HKLM,%CTConfigRegistry%,"Version",0,%szVersion%
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%szUninstallDisplay% (%szVersion%) %szInterim%"

; NetMeeting config
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

[Cam.STI.AddReg.NT]
; ** Fix WinXP resource string replacement problem **
HKR,Events\LaunchApp,,,%szStiEventLaunchApp%
HKR,Events\LaunchApp,GUID,,%szSTIEventLaunchApp.GUID%
HKR,Events\LaunchApp,LaunchApplications,,%szStiAppName%

[Cam.Uns.AddReg]
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -plugin %szInsPlugInFile% -pluginres %szInsPlugInResFile%"
HKR,,CtUnsExt,,""

[Cam.Uns.AddReg.NT]
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext NT -plugin %szInsPlugInFile% -pluginres %szInsPlugInResFile%"
HKLM,%MSUninstall%\%szUninstall%,"NoModify",0x00010001,1
HKLM,%MSUninstall%\%szUninstall%,"NoRepair",0x00010001,1
HKR,,CtUnsExt,,"NT"

[Cam.Uns.AddReg.NTAMD64]
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext AMD64 -plugin %szInsPlugInFile% -pluginres %szInsPlugInResFile%"
HKLM,%MSUninstall%\%szUninstall%,"NoModify",0x00010001,1
HKLM,%MSUninstall%\%szUninstall%,"NoRepair",0x00010001,1
HKLM,%MSUninstallWow64%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -unsext AMD64 -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"
HKLM,%MSUninstallWow64%\%szUninstall%,"NoModify",0x00010001,1
HKLM,%MSUninstallWow64%\%szUninstall%,"NoRepair",0x00010001,1
HKR,,CtUnsExt,,"AMD64"

[Cam.Vfw.AddReg]
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwBaseFileName%.drv"

[Cam.Vfw.AddReg.NT]
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwBaseFileName%.dll"

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

[Cam.DeviceData]
TwainDS     =%szDeviceDesc%
SpecialInfo =%szDeviceDesc%
Server      =local

[Cam.Events]
LaunchApp =%szStiEventLaunchApp%,%szSTIEventLaunchApp.GUID%,%szStiAppName%

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

[CtlCam.NTAMD64.Services]
AddService =%szVidServiceName%,0x00000002,Cam.ServiceInstall

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

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

[CtlCam.NTAMD64.CoInstallers]
AddReg    =Cam.CoInst.AddReg
CopyFiles =Cam.CopyCoInstFile

[Cam.CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"%szInsPlugInFile%,CoInstallerEntryPoint"

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

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

[Cam.Interface]
AddReg =Cam.Intf.AddReg

[Cam.Intf.AddReg]
HKR,,CLSID,,%ProxyVidCap.CLSID%
HKR,,FriendlyName,,%szDeviceDesc%

[Cam.CopyCoInstFile]

[Cam.CopyKnlDrv]
P0870Dev.sys
P0870Usb.sys
P0870Evx.sys

[Cam.AMD64.CopyKernDrv]
P0870Dev.sys,P0870Dev64.sys

[Cam.CopyUserDrv]
P0870Sti.dll
P0870Hwx.dll
P0870Pin.dll
P0870Ext.ax
P0870Ext.crl
P0870Srv.exe
CtCamPin.crl
CtCamMgr.dll,,,0x00000020
CtRegApp.dll,,,0x00000020

[Cam.AMD64.CopyUserDrv]
;CtCamMgr.dll,CtCamMgr64.dll
;P0870Hwx.dll,P0870Hwx64.dll
;P0870Pin.dll,P0870Pin64.dll
;P0870Pin.crl,P0870Pin64.crl
;P0870Ext.ax,P0870Ext64.ax
;P0870Ext.crl,P0870Ext64.crl
;P0870Srv.exe,P0870Srv64.exe
;P0870Sti.dll,P0870Sti64.dll

[Cam.AMD64WOW.CopyUserDrv]
;CtCamMgr.dll
;P0870Ext.ax
;P0870Ext.crl
;P0870Hwx.dll

[Cam.CopyTwnFiles]
CtTwain.bff
CtTwain.dll
CtTwain.crl
HookWnd.dll
GdiPlus.dll
P0870Twn.ds

[Cam.CopyVfwDrv]
P0870Vfw.drv

[Cam.CopyVfwDrv.NT]
P0870Vfw.dll

[Cam.CopyWinFiles]
CtDrvIns.exe,,,0x00000020
P0870Cfg.exe
PD0870.uns
VfwUpd.exe

[Cam.AMD64.CopyWinFiles]
;CtDrvIns.exe,CtDrvIns64.exe
;P1100Cfg.exe
;PD1100.uns

[Cam.CopyKnlDrv.SYS]
Stream.sys

[Cam.CopyUserDrv.SYS]
Msh263.drv

[Strings]
;--------------------------------
; System related. Do not change.
;--------------------------------
KSCATEGORY_CAPTURE ="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
ProxyVidCap.CLSID  ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

SERVICE_KERNEL_DRIVER=1
; ** PnP should use demand start **
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
SERVICE_AUTO_START=2

MSUninstall             ="Software\Microsoft\Windows\CurrentVersion\Uninstall"
MSMediaResourcesMSVideo ="System\CurrentControlSet\Control\MediaResources\MsVideo"
MSMediaInterfaces       ="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaSets             ="System\CurrentControlSet\Control\MediaSets"
MSUninstallWow64        ="SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szManufacturer       ="Creative Technology Ltd"
szStiEventLaunchApp  ="Open Application"
szStiAppName         ="WebCam Center"
szDiskName           ="Creative Camera PD0870 Driver Disk"
szDeviceDesc         ="Creative WebCam Live! Motion"
szSTIDriverDesc      ="Creative WebCam Live! Motion Still Image Driver"
szProductName        ="Creative WebCam Live! Motion"
szUninstall          ="Creative PD0870"
szUninstallDisplay   ="Creative WebCam Live! Motion Driver"
szVfwKey             ="P0870VFW"
szVfwDeviceDesc      ="Creative WebCam Live! Motion (VFW)"
szVidServiceName     ="P0870Dev"
szVidSrvDevDesc      ="Creative Camera PD0870 Driver"

CTConfigRegistry ="Software\Creative Tech\Web Cameras\PD0870"

szInsPlugInFile    ="P0870Pin.dll"
szSTIDriverFile    ="P0870Sti.dll"
szUNSScript        ="PD0870.uns"
szInsPlugInResFile ="CtCamPin.crl"
szVideoDriver      ="P0870Dev.sys"
szVfwBaseFileName  ="P0870Vfw"

;-------
; GUIDs
;-------
szSTIDriver.GUID         ="{2E73CB0B-872D-44d3-9EED-B2BE7A77D143}"
szSTIEventLaunchApp.GUID ="{5F8E52FA-8C79-4915-A8D0-E659D10976E6}"

;---------------------
; Version information
;---------------------
szVersion ="1.01.02.00"
szInterim =""