;---------------------------------------------------------------------------
; PD016VID.INF -- Creative Camera Model Number PD0160 installation
; Copyright (c) 2001-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=PD016Vid.cat
Provider=   %szMfg%
DriverVer=  08/15/2003,%szVersion%

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


[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.W2K.CopyWinFiles=10
CtlCam.CopyWinFiles=10
CtlCam.CopyBulkDriver=10,System32\Drivers
CtlCam.CopyTwainFiles=10,twain_32\Creative\PD0160
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

[Creative]
%szDeviceDesc%=CtlCam.DevA,USB\VID_041E&PID_400A&MI_00
%szDeviceDescB%=CtlCam.DevB,USB\VID_041E&PID_400A&MI_01

[CtlCam.DevA]
DriverVer=     08/15/2003,%szVersion%
Include=       Ks.inf,Kscaptur.inf,ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
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.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  0X31
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.DevA.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
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  0x31
DeviceData=    CtlCam.DeviceData
Events=        CtlCam.StiEvents
ICMProfiles=   "sRGB Color Space Profile.icm"

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

[CtlCam.StiEvents]         ; Creative
;;NewPicture= %szStiEventNewPic%,%szSTIEventNewPic.GUID%,%szStiAppName%
LaunchApp=  %szStiEventLaunchApp%,%szSTIEventLaunch.GUID%,%szStiAppName%

[CtlCam.STI.AddReg.NT]     ; Creative
HKR,Events\LaunchApp,,0,%szStiEventLaunchApp%
HKR,Events\LaunchApp,GUID,0,%szSTIEventLaunch.GUID%
HKR,Events\LaunchApp,LaunchApplications,0,%szStiAppName%

[CtlCam.DevA.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.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,,PageOutWhenUnopened,3,00
;;HKR,,PowerDownWhenUnopened,3,01
HKR,,DontSuspendIfStreamsAreRunning,3,01
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%\%szStiDriver%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,ThreadingModel,,"Apartment"
HKR,,CreateFileName,,"USB"

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

[CtlCam.Custom.AddReg]
; ** Device setting **

HKLM,%szConfigRegistry%,"Flicker60",0x10001,01

; ** 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 Stream Config Property Page
HKCR,CLSID\%szCustomStreamConfig.GUID%,,,%szPropPage_CustomStreamConfig%
HKCR,CLSID\%szCustomStreamConfig.GUID%\InprocServer32,,,%szDSExtPageFile%
HKCR,CLSID\%szCustomStreamConfig.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

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

; This IID is aggregated for the filter given the CLSID of the property set
HKLM,%MSMediaInterfaces%\%szCustomInterface.GUID%,,,%szPlugIn_CustomCameraProp%
HKLM,%MSMediaInterfaces%\%szCustomInterface.GUID%,IID,1,5B,D6,C2,55, 7D,94, 83,49, 0x8b, 0xea, 0x19, 0xcb, 0xbc, 0xb8, 0x14, 0xf6 

; ** Register AVI 
HKLM,%MSRunOnce%,"Pd016Avi.ax",,"rundll32.exe %11%\vqsetup.dll,QVRunOnceInstall %11%\regsvr32.exe /s %10%\twain_32\Creative\PD0160\PD016Avi.ax"

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

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

[CtlCam.Vfw.AddReg.NT]  ; Creative
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,drivers32,,"VIDC.VQJC=PD016dec.dll",0            ; Creative
system.ini,drivers,,"MSVideo.%szVfwKey%=%szVfwBaseFileName%.drv",0   ; Creative

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

[CtlCam.DevA.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, 0x9f,0xe9,0x7d,0x08,0xf7,0x19,0x9b,0x4a,0xb3,0x4b,0x9f,0x17,0x1b,0x53,0x76,0x7b
; Overrides the standard CameraControl property page with custom One.
HKR,PageAliases,"%MSDefCameraCtrl.GUID%",1, 0x9e,0xe9,0x7d,0x08,0xf7,0x19,0x9b,0x4a,0xb3,0x4b,0x9f,0x17,0x1b,0x53,0x76,0x7b
; Overrides the standard VideoProcAmp property page with custom one.
HKR,PageAliases,"%MSDefVideoProcAmp.GUID%",1, 0x60,0xd1,0x82,0x7e,0x87,0xcd,0x3f,0x4d,0x93,0x76,0x9f,0x58,0x36,0xd8,0xb1,0x0d

[CtlCam.DevA.NT.Services]
AddService=%szVideoServiceName%,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.DevB]
DriverVer=  08/15/2003,%szVersion%
CopyFiles=  CtlCam.CopyBulkDriver
AddReg=     CtlCam.B.AddReg

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

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

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

[CtlCam.DevB.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]
PD016vid.sys
PD016cmd.sys

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

[CtlCam.CopyBulkDriver]
PD016blk.sys

[CtlCam.CopyUserDrivers]
VqSetup.dll
PD016if.dll
PD016DNL.dll
PD016GRA.dll
PD016JPG.dll
PD016api.dll
Raw2Xga.dll
PD016Raw.dll
Raw2SVGA.dll
Rawsnap.dll
Raw2RGB.DLL
PD016Hwx.dll
PD016Foa.dll
PD016sti.dll
PD016vex.dll
PD016vex.pro
PD016vex.loc
PD016dec.dll
PD016dex.ax       ; from Creative
PD016dex.crl      ; from Creative
PD016Pin.dll      ; from Creative
PD016Pin.crl      ; from Creative
PD016Vfw.drv      ; from Creative
PD016Vfw.dll      ; from Creative
Pd016Swa.dll      ; from Creative
Pd016Wia.dll      ; from Creative
CtRegApp.dll      ; from Creative
Pd016Cfg.crl      ; from Creative
CtCamMgr.dll      ; from Creative

[CtlCam.CopyTwainFiles]
PD016Avi.ax
PD016DEP.dll
PD016Sna.dll
PD016Ctl.dll
PD016Twn.ds
PD016UI.dll
PD016Cap.dll
PD016Twn.pro
PD016Twn.loc

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe      ; from Creative
Pd016Cfg.exe      ; from Creative
Pd0160.uns        ; from Creative
Pd016Stp.dll      

[CtlCam.CopyWinFiles]
CtDrvIns.exe      ; from Creative
Pd016Cfg.exe      ; from Creative
VfwUpd.exe        ; from Creative
Pd0160.uns        ; from Creative
Pd016Stp.dll      

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

[CtlCam.CopyVfwDriver]
Pd016Vfw.drv   ; from Creative

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
CtDrvIns.exe =1,,
CtCamMgr.dll =1,,
CtRegApp.dll =1,,
PD016Blk.sys =1,,
PD016vid.sys =1,,
PD016cmd.sys =1,,
PD016dec.dll =1,,
PD016dex.ax  =1,,
PD016dex.crl =1,,
PD016Avi.ax  =1,,
PD016DEP.dll =1,,
PD016Sna.dll =1,,
PD016Ctl.dll =1,,
PD016Twn.ds  =1,,
PD016UI.dll  =1,,
PD016Cap.dll =1,,
PD016Twn.pro =1,,
PD016Twn.loc =1,,
PD016if.dll  =1,,
PD016DNL.dll =1,,
PD016GRA.dll =1,,
PD016JPG.dll =1,,
PD016api.dll =1,,
PD016Raw.dll =1,,
PD016Hwx.dll =1,,
PD016Foa.dll =1,,
PD016sti.dll =1,,
PD016vex.dll =1,,
PD016vex.pro =1,,
PD016vex.loc =1,,
PD016Vfw.drv =1,,
PD016Vfw.dll =1,,
Pd016Swa.dll =1,,
Pd016Wia.dll =1,,
Pd016pin.dll =1,,
Pd016pin.crl =1,,
Pd016Cfg.crl =1,,
Pd016Cfg.exe =1,,
Raw2Xga.dll  =1,,
Raw2SVGA.dll =1,,
Rawsnap.dll  =1,,
Raw2RGB.DLL  =1,,
VqSetup.dll  =1,,
VfwUpd.exe   =1,,
Pd0160.uns   =1,,
Pd016Stp.dll =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"
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"
MSDefStreamConfig.GUID  ="{71F96467-78F3-11d0-A18C-00A0C9118956}"
MSDefCameraCtrl.GUID    ="{71F96465-78F3-11d0-A18C-00A0C9118956}"
MSDefVideoProcAmp.GUID  ="{71F96464-78F3-11d0-A18C-00A0C9118956}"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg             ="Creative Labs"
szDeviceDesc      ="Creative PC-CAM 300 (Video)"
szDeviceDescB     ="Creative PC-CAM 300 (Still Image)"

szProductName     ="Creative PC-CAM 300"
szConfigRegistry  ="Software\Creative Tech\Dual Mode Cameras\PD0160"
szLaunchApp       ="Open Application"
szDeviceSetup     ="PC-CAM 300 Setup"
szDiskName        ="Creative PC-CAM 300 Driver Disk"
szRegStiApp       ="PC-CAM 300 STI App Registration"
szStillImageDesc  ="PD0160 Still Image USD"
szStiAppName      ="PC-CAM Center"
szTwainDSDesc     ="Creative PC-CAM 300"
szUninstall       ="Creative PD0160"
szUninstallDisplay="Creative PC-CAM 300 Driver"
szVideoServiceName="PD016VID"
szBulkServiceName ="PD016BLK"
szVfwKey          ="PD016VFW"
szVfwDeviceDesc   ="Creative PC-CAM 300 (VFW)"
szSTIDevice.GUID  ="{54F5B055-5303-4ca0-813B-C6194FC82F47}"
szSTIEventLaunch.GUID  ="{CC66C495-4E18-45c1-AF83-F861898A665F}"

szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"

; File names
szInsPlugIn             ="PD016Pin.dll"
szInsPlugInRes          ="PD016Pin.crl"
szExtPageFile           ="PD016Vex.dll"
szUNSScript             ="PD0160.uns"
szVfwBaseFileName       ="PD016Vfw"
szVideoDriver           ="PD016Vid.sys"
szStiDriver             ="PD016Swa.dll"
szBulkDriver            ="PD016Blk.sys"

; Custom Property pages
szDSExtPageFile                ="Pd016Dex.ax"
szPlugIn_CustomCameraProp      ="PD0160 Custom Camera Interface handler"
szPropPage_CustomDevSetting    ="PD0160 Custom Device Setting Property Page"
szPropPage_CustomBandingSetting="PD0160 Custom Banding Frequency Property Page"
szPropPage_CustomStreamConfig  ="PD0160 Custom Video Stream Config Property Page"

szCustomInterface.GUID         ="{55C2D65B-947D-4983-8BEA-19CBBCB814F6}"
szCustomStreamConfig.GUID      ="{087DE99F-19F7-4a9b-B34B-9F171B53767B}"
szCustomDevSetting.GUID        ="{087DE99E-19F7-4a9b-B34B-9F171B53767B}"
szCustomBandingSetting.GUID    ="{7E82D160-CD87-4d3f-9376-9F5836D8B10D}"


;----------------------
; Version information
;----------------------
szVersion         ="1.04.03.0626"   ; Vendor build 02-06-21
