;---------------------------------------------------------------------------
; P0230BDV.INF -- Creative Camera Model Number PD0230 installation
; Copyright (c) 2002-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=P0230bDv.cat
Provider=   %szMfg%
DriverVer=  07/30/2003,%szVersion%

[ControlFlags]
ExcludeFromSelect=*
;InteractiveInstall=USB\VID_041E&PID_4013&MI_00
;InteractiveInstall=USB\VID_041E&PID_4013&MI_01

[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.CopyTwainFiles=10,TWAIN_32\Creative\PD0230b
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11
CtlCam.CopyBulkDriver=10,system32\drivers

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

[CtlCam.Device]
DriverVer=     07/30/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=  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
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  0x00000031
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.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%"

; **************************
; *** Still image device ***
; **************************
[CtlCam.DevB]
DriverVer=  07/30/2003,%szVersion%
CopyFiles=  CtlCam.CopyBulkDriver
AddReg=     CtlCam.B.AddReg

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

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

[CtlCam.B.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,P0230bbk.sys

[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%\P0230bbk.sys
LoadOrderGroup=   Base

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

; ** Device driver **
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,,"Both"
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


; ** Custom Property Interface
HKCR,CLSID\%szCustomInterface.GUID%,,,%szPlugIn_CustomCameraProp%
HKCR,CLSID\%szCustomInterface.GUID%\InprocServer32,,,%szExtPageFile%
HKCR,CLSID\%szCustomInterface.GUID%\InprocServer32,ThreadingModel,,Both

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

; 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,06,e6,65,fb, c8,d7, d7,44, 0x9a, 0xba, 0x10, 0x40, 0xc4, 0xb1, 0x4b, 0x74


; -------------------------- 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.VQC7=P0230bde.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, 0x7d,0x86,0x6E,0x2B,0x23,0x06,0x0D,0x47,0xB9,0x9E,0x52,0xCA,0x7E,0xA4,0x71,0x50
; Overrides the standard CameraControl property page with custom One.
HKR,PageAliases,"%MSDefCameraCtrl.GUID%",1, 0x07,0x7F,0x20,0x1C,0x46,0x83,0x6A,0x47,0x81,0x84,0xA3,0xBA,0x27,0x87,0x92,0x1D
; Overrides the standard VideoProcAmp property page with custom one.
HKR,PageAliases,"%MSDefVideoProcAmp.GUID%",1, 0x22,0x89,0x39,0x2A,0xF9,0xD9,0x1E,0x43,0x8C,0x5F,0xBB,0xF2,0x9A,0x73,0x03,0xD2

[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]
P0230bvd.sys
P0230bcd.sys

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

[CtlCam.CopyBulkDriver]
P0230bbk.sys

[CtlCam.CopyUserDrivers]
P0230bif.dll
P0230bDN.dll
P0230bGR.dll
P0230bJP.dll
P0230bap.dll
Raw2Xga.dll
P0230bRa.dll
Raw2SVGA.dll
Rawsnap.dll
Raw2RGB.DLL
P0230bHw.dll
P0230bFo.dll
P0230bst.dll
P0230bex.ax
P0230bEx.crl
P0230bvx.pro
P0230bvx.loc
P0230bde.dll
p0230bsn.dll
P0230bPn.dll      ; from Creative
P0230bPn.crl      ; from Creative
P0230bVf.drv      ; from Creative
P0230bVf.dll      ; from Creative
P0230bSw.dll      ; from Creative
P0230bWi.dll      ; from Creative
CtRegApp.dll      ; from Creative
P0230bCf.crl      ; from Creative
P0230bSv.exe      ; from Creative
CtCamMgr.dll      ; from Creative

[CtlCam.CopyTwainFiles]
P0230bAv.ax
P0230bDp.dll
P0230bCt.dll
P0230bTw.ds
P0230bUI.dll
P0230bCa.dll
P0230bTw.pro
P0230bTw.loc

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe      ; from Creative
P0230b.uns        ; from Creative
P0230bCf.exe      ; from Creative

[CtlCam.CopyWinFiles]
CtDrvIns.exe      ; from Creative
VfwUpd.exe        ; from Creative
P0230b.uns        ; from Creative
P0230bCf.exe      ; from Creative

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

[CtlCam.CopyVfwDriver]
P0230bVf.drv   ; from Creative

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
CtDrvIns.exe   =1,,
CtCamMgr.dll   =1,,
CtRegApp.dll   =1,,
P0230bvd.sys   =1,,
P0230bcd.sys   =1,,
P0230bbk.sys   =1,,
P0230bde.dll   =1,,
P0230bAv.ax    =1,,
P0230bDp.dll   =1,,
P0230bCt.dll   =1,,
P0230bUI.dll   =1,,
P0230bCa.dll   =1,,
P0230bTw.ds    =1,,
P0230bTw.pro   =1,,
P0230bTw.loc   =1,,
P0230bif.dll   =1,,
P0230bDN.dll   =1,,
P0230bGR.dll   =1,,
P0230bJP.dll   =1,,
P0230bap.dll   =1,,
P0230bRa.dll   =1,,
P0230bHw.dll   =1,,
P0230bst.dll   =1,,
P0230bex.ax    =1,,
P0230bEx.crl   =1,,
P0230bvx.pro   =1,,
P0230bvx.loc   =1,,
P0230bVf.dll   =1,,
P0230bVf.drv   =1,,
P0230b.uns     =1,,
P0230bSw.dll   =1,,
P0230bWi.dll   =1,,
P0230bFo.dll   =1,,
p0230bsn.dll   =1,,
P0230bPn.dll   =1,,
P0230bPn.crl   =1,,
P0230bCf.exe   =1,,
P0230bCf.crl   =1,,
Raw2Xga.dll    =1,,
Raw2SVGA.dll   =1,,
Rawsnap.dll    =1,,
Raw2RGB.DLL    =1,,
VfwUpd.exe     =1,,
P0230bSv.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"
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 750 (Video)"
szDeviceDescB           ="Creative PC-CAM 750 (Still Image)"
szProductName           ="Creative PC-CAM 750" 
szConfigRegistry        ="Software\Creative Tech\Dual Mode Cameras\PD0230b"

szVfwKey                ="P0230bVFW"
szVfwDeviceDesc         ="Creative PC-CAM 750 (VFW)"
szTwainDSDesc           ="Creative PC-CAM 750"
szUninstall             ="Creative PD0230B"
szUninstallDisplay      ="Creative PC-CAM 750 Driver"
szStillImageDesc        ="PD0230B Still Image USD"
szStiAppName            ="PC-CAM Center"
szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"

szDiskName              ="Creative PC-CAM 750 Driver Disk"
szVidServiceName        ="P0230BVD"
szBulkServiceName       ="P0230BBK"
szDeviceSetup           ="Creative PC-CAM 750 Setup"

; File names
szInsPlugIn             ="P0230bPn.dll"
szInsPlugInRes          ="P0230bPn.crl"
szExtPageFile           ="P0230bEx.ax"
szUNSScript             ="P0230b.uns"
szVfwBaseFileName       ="P0230bVf"
szVideoDriver           ="P0230bVd.sys"
szStiDriver             ="P0230bSw.dll"

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

szCustomInterface.GUID           ="{0D0DD9DD-364E-4459-AF8C-091E9E792583}"
szSTIDevice.GUID                 ="{757251AF-1174-4175-B601-D6EBB0A33BD2}"
;szSTIEventNewPic.GUID            ="{00506AC1-2B95-11d6-96C5-00D0B7C7235A}"
szSTIEventLaunch.GUID            ="{4990CE82-2121-4d6c-96C2-F4B5B1CE1F36}"
szCustomStreamConfig.GUID        ={2B6E867D-0623-470d-B99E-52CA7EA47150}
szCustomDevSetting.GUID          ={1C207F07-8346-476a-8184-A3BA2787921D}
szCustomBandingSetting.GUID      ={2A398922-D9F9-431e-8C5F-BBF29A7303D2}

;----------------------
; Version information
;----------------------
szVersion         ="1.02.02.0730"  ; Vendor version dated 30-07-03
