;---------------------------------------------------------------------------
; PD1030DV.INF -- Creative WebCam Pro Camera installation.
; Copyright (c) 2002-2005 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------

[Version]
LayoutFile= Layout.inf,Layout1.inf,Layout2.inf
Signature=  "$Windows NT$"
Class=      Image
ClassGUID=  {6bdd1fc6-810f-11d0-bec7-08002be2092f}
CatalogFile=Pd1030.cat
Provider=   %szMfg%
DriverVer=  03/01/2005,%szVersion%

[ControlFlags]
ExcludeFromSelect=*
InteractiveInstall=USB\VID_05A9&PID_A511

[Manufacturer]
%szMfg%=Creative
 
[DestinationDirs]
DefaultDestDir=11
CtlCam.Copy.KernelDrivers=10,System32\Drivers
CtlCam.Copy.KernelDrivers.SYS=10,System32\Drivers
CtlCam.Copy.TwainFiles=10,TWAIN_32\Creative
CtlCam.Copy.WinFiles=10
CtlCam.Copy.SettingFiles=10,OvtCam
CtlCam.Copy.UserDrivers=11
CtlCam.Copy.UserDrivers.SYS=11
CtlCam.Copy.Vfw=10
CtlCam.CopySysTwnFiles=10

[Creative]
%szDeviceDesc%= CtlCam.Device,USB\VID_05A9&PID_A511

[CtlCam.Device]
DriverVer=     07/03/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
SubClass=      StillImage
DeviceType=    3
DeviceSubType= 0xA511
Capabilities=  1
UpdateInis=    CtlCam.UpdateIni
DelReg=        CtlCam.Stream.DelReg
CopyFiles=     CtlCam.Copy.UserDrivers,CtlCam.Copy.UserDrivers.SYS,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.KernelDrivers.SYS,CtlCam.Copy.WinFiles,CtlCam.Copy.Vfw,CtlCam.CopySysTwnFiles
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
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.Custom.W2K.AddReg,CtlCam.Vfw.AddReg.NT,CtlCam.Uns.AddReg.NT,CtlCam.STI.AddReg.NT
SubClass=      StillImage
DeviceType=    3
DeviceSubType= 0xA511
Capabilities=  1
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.Copy.UserDrivers,CtlCam.Copy.SettingFiles,CtlCam.Copy.TwainFiles,CtlCam.Copy.KernelDrivers,CtlCam.Copy.WinFiles,CtlCam.CopySysTwnFiles
;;Events=        CtlCam.StiEvents
DeviceData=    CtlCam.StiDeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.StiDeviceData]
TwainDS=%szTwainDSDesc%
SpecialInfo="My very special information"

[CtlCam.StiEvents]
NewPicture=%szNewPicture%,%szSTIEventNewPic.GUID%,%szStiAppName%
LaunchApp= %szLaunchApp%,%szSTIEventLaunch.GUID%,%szStiAppName%

[CtlCam.STI.AddReg.NT]     ; Creative
; ** Fix WinXP resource string replacement problem **
HKR,Events\NewPicture,,0,%szStiEventNewPic%
HKR,Events\NewPicture,GUID,0,%szSTIEventNewPic.GUID%
HKR,Events\NewPicture,LaunchApplications,0,%szStiAppName%
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=  CTL.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,,OkToHibernate,3,01
;;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"


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

; ** 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,,,P1030dex.ax
HKCR,CLSID\%szCustomStreamConfig.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

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

[CtlCam.Custom.AddReg]
HKR,,ModulFileName,,p1030twn.ds

HKR,%szCamSetting%,StillSupportType,0x10001, 2
;HKR,%szCamSetting%,CustomID,0x10001, 2
HKR,%szCamSetting%,EnableAutoLaunch,1, 52,03,FF, 78,7,ff
HKR,%szCamSetting%,DisableAutoLaunch,1, 52,02,FF
HKR,%szCamSetting%,ClearSnapButton,1, 52,02,FF
HKR,%szCamSetting%,CheckAutoLaunch,1, 78,6,FF
HKR,%szCamSetting%,SupportEvent,0x10001, 1
HKR,%szCamSetting%,EnableSystem,1, 53,1,FF
HKR,%szCamSetting%,DisableSystem,1, 53,0,FF
HKR,%szCamSetting%,ResetUsb, 1, 50,40,FF, 53,01,FF, 50,3f,ff, 53,01,FF, 50,0,ff, 48,ff,ff,49,ff,ff
HKR,%szCamSetting%,SetUsbInit,1, 50,3D,FF
HKR,%szCamSetting%,SetUsbWork,1, 50,3f,ff, 50,0,ff
HKR,%szCamSetting%,BandwidthAllocateRule, 0x10001, 0
HKR,%szCamSetting%,FileDir,, \DosDevices\%10%\OvtCam
HKR,%szCamSetting%\CamSettingFiles,7620p,,7620p.set
HKR,%szCamSetting%\CamSettingFiles,7620aep,,7620aep.set
HKR,%szCamSetting%\CamSettingFiles,6620p,,6620p.set
HKR,%szCamSetting%\CamSettingFiles,customp,,customp.set
HKR,%szCamSetting%, IdleAltSetting, 0x10001, 0x0

;;HKLM,%MSMediaSets%\%szCustomInterface.GUID%\PropertyPages\%szCustomDevSetting.GUID%,,,%szPropPage_CustomDevSetting%
;;HKLM,%MSMediaSets%\%szCustomInterface.GUID%\PropertyPages\%szCustomBandingSetting.GUID%,,,%szPropPage_CustomBandingSetting%

[CtlCam.Custom.W2K.AddReg]
HKLM,"Software\OmniVision\PC Camera","PushModeEvent",,"Enable"

; -------------------------- 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.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,,p1030Ext.dll
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, 0x07,0x24,0xBA,0x36,0xF6,0x2D,0xC8,0x49,0xAF,0xCD,0x23,0x3A,0x76,0x5E,0x51,0x0F
; Overrides the standard CameraControl property page with custom One.
HKR,PageAliases,"%MSDefCameraCtrl.GUID%",1, 0xA0,0x9D,0x00,0x94,0x98,0x2B,0xD6,0x11,0x96,0xC5,0x00,0xD0,0xB7,0xC7,0x23,0x5A
; Overrides the standard VideoProcAmp property page with custom one.
HKR,PageAliases,"%MSDefVideoProcAmp.GUID%",1, 0xA1,0x9D,0x00,0x94,0x98,0x2B,0xD6,0x11,0x96,0xC5,0x00,0xD0,0xB7,0xC7,0x23,0x5A

[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.Copy.KernelDrivers]
p1030vid.sys
p1030cam.sys 

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

[CtlCam.Copy.UserDrivers]
CtCamMgr.dll,,,0x00000020
p1030vfw.drv
p1030vfw.dll
p1030usd.dll
p1030ext.dll
p1030ext.ax
p1030pin.dll
p1030pin.crl
p1030cfg.crl
p1030hwx.dll
p1030dex.ax
p1030dex.crl

[CtlCam.Copy.UserDrivers.SYS]  ; Required in Win98
msh263.drv              ; from Microsoft

[CtlCam.Copy.WinFiles]
ctdrvins.exe,,,0x00000020
pd1030.uns
p1030cfg.exe

[CtlCam.Copy.TwainFiles]
p1030twn.ds

[CtlCam.Copy.Vfw]
vfwupd.exe

[CTL.CopyCoInstFile]

[CtlCam.CopySysTwnFiles]
;;TWUNK_16.EXE,,,0x20
;;TWUNK_32.EXE,,,0x20
DEFAULT.SRC,,,0x20
twacker.ini,,,0x20

[CtlCam.Copy.SettingFiles]
7620p.set
7620aep.set
6620p.set
customp.set

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
ctdrvins.exe   =1,,
ctcammgr.dll   =1,,
p1030cam.sys   =1,,
p1030vid.sys   =1,,
p1030twn.ds    =1,,
p1030usd.dll   =1,,
p1030ext.dll   =1,,
p1030ext.ax    =1,,
p1030vfw.dll   =1,,
p1030vfw.drv   =1,,
p1030pin.dll   =1,,
p1030pin.crl   =1,,
p1030cfg.exe   =1,,
p1030cfg.crl   =1,,
p1030hwx.dll   =1,,
p1030dex.ax    =1,,
p1030dex.crl   =1,,
7620p.set      =1,,
7620aep.set    =1,,
6620p.set      =1,,
customp.set    =1,,
DEFAULT.SRC    =1,,
Twacker.ini    =1,,
pd1030.uns     =1,,
VfwUpd.exe     =1,,
;;TWUNK_16.EXE   =1,,
;;TWUNK_32.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
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
;----------------
szMfg                   ="Creative Labs"
szDiskName              ="Creative WebCam Pro Driver Disk"
szDeviceDesc            ="Creative WebCam Pro"
szProductName           ="Creative WebCam Pro" 

szCamSetting            ="CameraSetting"
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD1030"
szStiEventNewPic        ="Open Application"
szStiEventLaunchApp     ="New Picture Captured"
szStiAppName            ="PC-CAM Center"
szVidServiceName        =PD1030VID
szTwainDSDesc           ="Creative WebCam Pro"
szUninstall             ="Creative WebCam Pro"
szUninstallDisplay      ="Creative WebCam Pro Driver"
szVfwDeviceDesc         ="Creative WebCam Pro (VFW)"
szVfwKey                ="PD1030VFW"

; File names
szInsPlugIn             ="P1030Pin.dll"
szInsPlugInRes          ="P1030Pin.crl"
szDSExtPageFile         ="P1030Ext.ax"
szUNSScript             ="Pd1030.uns"
szVfwBaseFileName       ="P1030Vfw"
szVideoDriver           ="P1030Vid.sys"
szStiDriver             ="P1030Usd.dll"

; Custom Property pages
szPlugIn_CustomCameraProp        ="PD1030 Custom Camera Interface handler"
szPropPage_CustomStreamConfig    ="PD1030 Custom Video Stream Config Property Page"
szPropPage_CustomDevSetting      ="PD1030 Custom Device Setting Property Page"
szPropPage_CustomBandingSetting  ="PD1030 Custom Banding Frequency Property Page"
szCustomInterface.GUID           ="{5722C312-0AC6-454c-AA42-25EB4F013DA5}"
szCustomStreamConfig.GUID        ="{36BA2407-2DF6-49c8-AFCD-233A765E510F}"
szCustomDevSetting.GUID          ="{94009DA0-2B98-11d6-96C5-00D0B7C7235A}"
szCustomBandingSetting.GUID      ="{94009DA1-2B98-11d6-96C5-00D0B7C7235A}"

szSTIDevice.GUID        ="{00506AC3-2B95-11d6-96C5-00D0B7C7235A}"
szSTIEventNewPic.GUID   ="{00506AC1-2B95-11d6-96C5-00D0B7C7235A}"
szSTIEventLaunch.GUID   ="{00506AC0-2B95-11d6-96C5-00D0B7C7235A}"

;----------------------
; Version information
;----------------------
szVersion         =1.03.01.0523  ; Vendor dated 02-05-23
