;---------------------------------------------------------------------------
; P1060DEV.INF -- Creative Camera Model Number PD1060 installation
; Copyright (c) 2003 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=Pd1060Dv.cat
Provider=   %szMfg%
DriverVer=  09/12/2003,%szVersion%

[ControlFlags]
ExcludeFromSelect=*
InteractiveInstall=USB\VID_041E&PID_4012&MI_00,USB\VID_041E&PID_4012&MI_01

[Manufacturer]
%szMfg%=Creative

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

[Creative]
%szDeviceDesc%=  CtlCam.Device,USB\VID_041E&PID_4012&MI_00
%szDeviceDescB%= CtlCam.DeviceB,USB\VID_041E&PID_4012&MI_01

[CtlCam.Device]
DriverVer=     09/12/2003,%szVersion%
Include=       Ks.inf,Kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
DelReg=        CtlCam.Stream.DelReg
AddReg=        CtlCam.Basic.AddReg,CtlCam.Custom.AddReg,CtlCam.Vfw.AddReg,CtlCam.Uns.AddReg,CtlCam.Setup.AddReg.W98
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyKernelDrivers.SYS,CtlCam.CopyUserDrivers,CtlCam.CopyUserDrivers.SYS,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.W98.CopyVfwDriver,CtlCam.CopyHalFile
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  0x00000031
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.Device.NT]
Include=       Ks.inf,Kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        CtlCam.Basic.AddReg,CtlCam.Custom.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,CtlCam.CopyHalFile
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  0x00000031
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.DeviceData]
TwainDS=%szTwainDSDesc%
Server=local

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

[CtlCam.STI.AddReg.NT]     ; Creative
; ** Fix WinXP resource string replacement problem **
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]		; Creative
HKR,,CoInstallers32,0x00010000,"%szInsPlugIn%,CoInstallerEntryPoint"

[CtlCam.Setup.AddReg.W98]	; Creative
HKLM,%MSRunOnce%,%szDeviceSetup%,,"RunDLL32.exe %szInsPlugIn%,RunDLL32EP 514"

[CtlCam.Stream.DelReg]
HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%MSDefStreamConfig.GUID%

[CtlCam.Uns.AddReg]		; Creative
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall -script %szUNSScript% -plugin %szInsPlugIn% -pluginres %szInsPlugInRes%"

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

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

; ** Device driver **
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
HKR,,CtProductName,,%szProductName%

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

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKCR,CLSID\%szSTIDevice.GUID%,,,%szStillImageDesc%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,,,%11%\%szSwaDriver%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,ThreadingModel,,"Apartment"
HKR,,CreateFileName,,"USB"

; ------------------------- start of Vendor specific --------------------------

[CtlCam.Custom.AddReg]
; ** Device setting **
HKLM,%szConfigRegistry%,"Flicker60",0x10001,01
HKLM,%szConfigRegistry%,"IsoMode",0x10001,00,00,00,00
HKLM,%szConfigRegistry%,"BulkMode",0x10001,00,00,00,00

; ** Property pages registration **

; ** Custom Stream Config Property Page
HKCR,CLSID\%szCustomStreamConfig.GUID%,,,%szPropPage_CustomStreamConfig%
HKCR,CLSID\%szCustomStreamConfig.GUID%\InprocServer32,,,%szExtPageFile%
HKCR,CLSID\%szCustomStreamConfig.GUID%\InprocServer32,ThreadingModel,,Both

; ** Custom Banding Property Page
HKCR,CLSID\%szCustomBandingSetting.GUID%,,,%szPropPage_CustomBandingSetting%
HKCR,CLSID\%szCustomBandingSetting.GUID%\InprocServer32,,,%szExtPageFile%
HKCR,CLSID\%szCustomBandingSetting.GUID%\InprocServer32,ThreadingModel,,Both

; ** Custom Device Setting Property Page
HKCR,CLSID\%szCustomDevSetting.GUID%,,,%szPropPage_CustomDevSetting%
HKCR,CLSID\%szCustomDevSetting.GUID%\InprocServer32,,,%szExtPageFile%
HKCR,CLSID\%szCustomDevSetting.GUID%\InprocServer32,ThreadingModel,,Both

; -------------------------- end of Vendor specific ---------------------------

[CtlCam.Vfw.AddReg]     ; Creative
; ** 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]  ; 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.UpdateIni]
System.ini,drivers32,,"VIDC.VQJ9=P1060dec.dll",0
system.ini,drivers32,,"VIDC.I420=msh263.drv",0                       ; Creative
system.ini,drivers,,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",0   ; Creative

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

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

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

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

; ** This overrides the standard device control property page with custom pages (CTL) **

; Overrides the standard StreamConfig property page with custom one.
HKR,PageAliases,"%MSDefStreamConfig.GUID%",1, 0x81,0xCC,0xF5,0x30,0xAF,0x5A,0xD6,0x11,0xAD,0x7F,0x00,0xA0,0xC9,0x8E,0xA4,0x71

; Overrides the standard VideoProcAmp property page with custom one.
HKR,PageAliases,"%MSDefVideoProcAmp.GUID%",1, 0x22,0xEE,0x29,0x13,0xAF,0x5A,0xD6,0x11,0xAD,0x7F,0x00,0xA0,0xC9,0x8E,0xA4,0x71

; Overrides the standard CameraControl property page with custom One.
HKR,PageAliases,"%MSDefCameraCtrl.GUID%",1, 0x21,0xEE,0x29,0x13,0xAF,0x5A,0xD6,0x11,0xAD,0x7F,0x00,0xA0,0xC9,0x8E,0xA4,0x71

[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%

; **************************
; *** Still image device ***
; **************************
[CtlCam.DeviceB]
DriverVer=  09/12/2003,%szVersion%
CopyFiles=  CtlCam.CopyBulkDriver
AddReg=     CtlCam.B.AddReg

[CtlCam.DeviceB.NT]
CopyFiles=  CtlCam.CopyBulkDriver
AddReg=     CtlCam.B.AddReg

[CtlCam.B.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szBulkDriver%

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

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

[CtlCam.DeviceB.NT.Services]
AddService= %szBulkServiceName%,0x00000002,CtlCam.B.ServiceInstall

[CtlCam.B.ServiceInstall]
DisplayName=%szDeviceDescB%
ServiceType=%SERVICE_KERNEL_DRIVER%
StartType=%SERVICE_DEMAND_START%
ErrorControl=%SERVICE_ERROR_NORMAL%
ServiceBinary=%12%\%szBulkDriver%
LoadOrderGroup=Base

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

[CtlCam.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
P1060Vid.sys
P1060Cmd.sys

[CtlCam.CopyBulkDriver]
P1060Blk.sys

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

[CtlCam.CopyUserDrivers]
P1060If.dll
P1060Dnl.dll
P1060Gra.dll
P1060Jpg.dll
P1060Api.dll
P1060Raw.dll
P1060Dec.dll
P1060M01.dll
P1060Hwx.dll
P1060Foa.dll
P1060Sti.dll
P1060Vex.loc
P1060Vex.pro
Raw2Xga.dll
Raw2SVGA.dll
Rawsnap.dll
Raw2RGB.DLL
P1060Ext.ax	; from Creative
P1060Ext.crl	; from Creative
P1060Swa.dll	; from Creative
P1060Wia.dll	; from Creative
P1060Cfg.crl	; from Creative
P1060Pin.dll	; from Creative
P1060Pin.crl	; from Creative
CtRegApp.dll	; from Creative

[CtlCam.CopyTwainFiles]
P1060Avi.ax
P1060Dep.dll
P1060Ctl.dll
P1060Twn.ds
P1060UI.dll
P1060Cap.dll
P1060Twn.pro
P1060Twn.loc

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe	; from Creative
P1060Cfg.exe	; from Creative
Pd1060.uns	; from Creative

[CtlCam.CopyWinFiles]
CtDrvIns.exe	; from Creative
P1060Cfg.exe	; from Creative
Pd1060.uns	; from Creative
VfwUpd.exe

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

[CtlCam.W98.CopyVfwDriver]
P1060Vfw.drv	; from Creative

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

[CtlCam.CopyHalFile]
CtCamMgr.dll	; from Creative

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
CtCamMgr.dll   =1,,
CtDrvIns.exe   =1,,
CtRegApp.dll   =1,,
P1060Vid.sys   =1,,
P1060Cmd.sys   =1,,
P1060Blk.sys   =1,,
P1060Dec.dll   =1,,
P1060Avi.ax    =1,,
P1060DEP.dll   =1,,
P1060Ctl.dll   =1,,
P1060UI.dll    =1,,
P1060Cap.dll   =1,,
P1060Twn.ds    =1,,
P1060Twn.pro   =1,,
P1060Twn.loc   =1,,
P1060If.dll    =1,,
P1060Dnl.dll   =1,,
P1060Gra.dll   =1,,
P1060Jpg.dll   =1,,
P1060Api.dll   =1,,
P1060Raw.dll   =1,,
P1060Hwx.dll   =1,,
P1060Sti.dll   =1,,
P1060Ext.ax    =1,,
P1060Ext.crl   =1,,
P1060Vfw.dll   =1,,
P1060Vfw.drv   =1,,
Pd1060.uns     =1,,
P1060Swa.dll   =1,,
P1060Wia.dll   =1,,
P1060Foa.dll   =1,,
P1060Pin.dll   =1,,
P1060Pin.crl   =1,,
P1060Cfg.exe   =1,,
P1060Cfg.crl   =1,,
P1060M01.dll   =1,,
P1060Vex.loc   =1,,
P1060Vex.pro   =1,,
Raw2Xga.dll    =1,,
Raw2SVGA.dll   =1,,
Rawsnap.dll    =1,,
Raw2RGB.DLL    =1,,
VfwUpd.exe     =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

MSMediaInterfaces       	="System\CurrentControlSet\Control\MediaInterfaces"
MSMediaSets             	="System\CurrentControlSet\Control\MediaSets"
MSMediaCategories       	="System\CurrentControlSet\Control\MediaCategories"
MSMMDriverDesc          	="SOFTWARE\Microsoft\Windows NT\CurrentVersion\drivers.desc"
MSMMDrivers             	="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32"
MSRunOnce               	="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
MSUninstall             	="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSRun                   	="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSMediaResourcesMSVideo		="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSVideoCapturePin.GUID  	="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"
MSDefStreamConfig.GUID  	="{71F96467-78F3-11d0-A18C-00A0C9118956}"
MSDefCameraCtrl.GUID    	="{71F96465-78F3-11d0-A18C-00A0C9118956}"
MSDefVideoProcAmp.GUID  	="{71F96464-78F3-11d0-A18C-00A0C9118956}"
szMSDefStreamConfigDesc 	="StreamFormat Property Page"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg                   	="Creative Labs"
szDeviceDesc            	="Creative PC-CAM 350 (Video)"
szDeviceDescB			="Creative PC-CAM 350 (Still Image)"
szProductName           	="Creative PC-CAM 350" 
szConfigRegistry        	="Software\Creative Tech\Dual Mode Cameras\PD1060"

szVfwKey                	="P1060VFW"
szVfwDeviceDesc         	="Creative PC-CAM 350 (VFW)"
szTwainDSDesc           	="Creative PC-CAM 350"
szUninstall             	="Creative PD1060"
szUninstallDisplay      	="Creative PC-CAM 350 Driver"
szStillImageDesc        	="PD1060 Still Image USD"
szStiAppName            	="PC-CAM Center"
szStiEventLaunchApp     	="Launch Application"

szDiskName              	="Creative PC-CAM 350 Driver Disk"
szVidServiceName        	="P1060VID"
szBulkServiceName		="P1060BLK"
szDeviceSetup           	="PC-CAM 350 Setup"

; File names
szInsPlugIn			="P1060Pin.dll"
szInsPlugInRes			="P1060Pin.crl"
szExtPageFile			="P1060Ext.ax"
szUNSScript			="Pd1060.uns"
szVfwBaseFileName		="P1060Vfw"
szVideoDriver			="P1060Vid.sys"
szBulkDriver			="P1060Blk.sys"
szSwaDriver			="P1060SWA.dll"

; Custom Property pages
szPlugIn_CustomCameraProp	="PD1060 Custom Camera Interface handler"
szPropPage_CustomDevSetting	="PD1060 Custom Device Setting Property Page"
szPropPage_CustomBandingSetting	="PD1060 Custom Banding Frequency Property Page"
szPropPage_CustomStreamConfig	="PD1060 Custom Video Stream Config Property Page"

szCustomStreamConfig.GUID	="{30F5CC81-5AAF-11d6-AD7F-00A0C98EA471}"
szCustomDevSetting.GUID		="{1329EE21-5AAF-11d6-AD7F-00A0C98EA471}"
szCustomBandingSetting.GUID	="{1329EE22-5AAF-11d6-AD7F-00A0C98EA471}"
szSTIDevice.GUID		="{6274FFE9-9010-46db-8358-E7CE8303F592}"
szSTIEventLaunch.GUID		="{830E4EFB-4455-4898-8290-F2A095BCC5E0}"

;----------------------
; Version information
;----------------------
szVersion	="1.03.01.0909"	; Vendor build 03-09-09
