;-------------------------------------------------------------------------------
; P1001Vid.INF -- Creative WebCam Model Number PD1001 and PD101b installation
; Copyright (c) 2002 Creative Technology Ltd. All rights reserved.
;-------------------------------------------------------------------------------

;------------------ Version ----------------------------------------------------

[Version]
Signature   ="$CHICAGO$"
Class       =Image
ClassGUID   ={6BDD1FC6-810F-11D0-BEC7-08002BE2092F}
Provider    =%szProvider%
LayoutFile  =Layout.inf,Layout1.inf,Layout2.inf
CatalogFile =P1001Vid.cat
DriverVer   =10/16/2002,%szVersion%

;------------------ DestinationDirs --------------------------------------------

[DestinationDirs]
DefaultDestDir            =11

; PD1001
CtlCam1.CopyWDMDrivers    =10,System32\Drivers
CtlCam1.CopyWDMDrivers.NT =12
CtlCam1.CopyUserDrivers   =11
CtlCam1.CopyVFWDrivers    =11
CtlCam1.CopyVFWDrivers.NT =11
CtlCam1.CopySTIDrivers    =11
CtlCam1.CopyTWAINDrivers  =11
CtlCam1.CopyWinFiles      =10

; PD101b
CtlCamb.CopyWDMDrivers    =10,System32\Drivers
CtlCamb.CopyWDMDrivers.NT =12
CtlCamb.CopyUserDrivers   =11
CtlCamb.CopyVFWDrivers    =11
CtlCamb.CopyVFWDrivers.NT =11
CtlCamb.CopySTIDrivers    =11
CtlCamb.CopyTWAINDrivers  =11
CtlCamb.CopyWinFiles      =10

CtlCamb.CopyOVTFiles      =10,OvtCam
CtlCam.CopyTWAINMapper    =10,TWAIN_32\Creative\%PD1001.szModelNo%
CtlCam.CopyInstallFiles   =10
CtlCam.CopyWDMDrivers.SYS =10,System32\Drivers

;------------------ Device -----------------------------------------------------

[ControlFlags]
ExcludeFromSelect  =*
InteractiveInstall =USB\VID_041E&PID_400D,USB\VID_05A9&PID_0518

[Manufacturer]
%szProvider% =Creative
 
[Creative]
%PD1001.szWDMDeviceDesc% =CtlCam1,USB\VID_041E&PID_400D
%PD101b.szWDMDeviceDesc% =CtlCamb,USB\VID_05A9&PID_0518

;================== PD1001 =====================================================
;------------------ Install Section --------------------------------------------

[CtlCam1]
DriverVer     =10/16/2002,%szVersion%
CopyFiles     =CtlCam1.CopyWDMDrivers,CtlCam1.CopyUserDrivers,CtlCam1.CopyVFWDrivers,CtlCam1.CopySTIDrivers,CtlCam.CopyTWAINMapper,CtlCam1.CopyTWAINDrivers,CtlCam1.CopyWinFiles,CtlCam.CopyInstallFiles,CtlCam.CopyWDMDrivers.SYS
DelReg        =CtlCam.StrmFmt.DelReg
AddReg        =CtlCam1.AddReg,CtlCam1.Cm.AddReg,CtlCam1.STI.Cm.AddReg,CtlCam1.DS.Cm.AddReg,CtlCam1.Ins.Cm.AddReg,CtlCam1.Dev.AddReg,CtlCam1.Dev.Cm.AddReg,CtlCam1.VFW.AddReg,CtlCam1.Uns.AddReg
Include       =Ks.inf,KsCaptur.inf,KsFilter.inf
Needs         =KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
UpdateInis    =CtlCam1.UpdateIni

SubClass      =StillImage
DeviceType    =%PD1001.szDeviceType%
DeviceSubType =%PD1001.szDeviceSubType%
Capabilities  =%PD1001.szCapabilities%
DeviceData    =CtlCam1.StiDeviceData
Events        =CtlCam1.StiEvents
ICMProfiles   ="sRGB Color Space Profile.icm"

[CtlCam1.NT]
CopyFiles     =CtlCam1.CopyWDMDrivers.NT,CtlCam1.CopyUserDrivers,CtlCam1.CopyVFWDrivers.NT,CtlCam1.CopySTIDrivers,CtlCam.CopyTWAINMapper,CtlCam1.CopyTWAINDrivers,CtlCam1.CopyWinFiles,CtlCam.CopyInstallFiles
AddReg        =CtlCam1.Cm.AddReg,CtlCam1.STI.Cm.AddReg,CtlCam1.DS.Cm.AddReg,CtlCam1.Ins.Cm.AddReg,CtlCam1.Dev.AddReg.NT,CtlCam1.Dev.Cm.AddReg,CtlCam1.VFW.AddReg.NT,CtlCam1.Uns.AddReg.NT
Include       =Ks.inf,KsCaptur.inf
Needs         =KS.Registration,KSCAPTUR.Registration.NT

SubClass      =StillImage
DeviceType    =%PD1001.szDeviceType%
DeviceSubType =%PD1001.szDeviceSubType%
Capabilities  =%PD1001.szCapabilities%
DeviceData    =CtlCam1.StiDeviceData
Events        =CtlCam1.StiEvents
ICMProfiles   ="sRGB Color Space Profile.icm"

;------------------ STI & TWAIN Settings ---------------------------------------

[CtlCam1.StiDeviceData]
TWAINDS =%PD1001.szTWAINDSDesc%

[CtlCam1.StiEvents]
NewPicture =%szSTINewPictureDesc%,%PD1001.STINewPicture.GUID%,%szSTIAppName%
LaunchApp  =%szSTILaunchAppDesc%,%PD1001.STILaunchApp.GUID%,%szSTIAppName%

;------------------ Registry Settings ------------------------------------------

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

[CtlCam1.AddReg]
HKR,,DevLoader,,*ntkern,
HKR,,NTMPDriver,,%PD1001.szWDMDriver%

[CtlCam1.Cm.AddReg]
HKLM,%PD1001.CTConfigRegistry%,"Version",0,%szVersion%
HKR,,HardwareConfig,1,4
HKR,,VfwKey,,%PD1001.szVfwKey%
HKR,,WdmDeviceDesc,,%PD1001.szWDMDeviceDesc%
HKR,,VfwDeviceDesc,,%PD1001.szVfwDeviceDesc%
HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,PageOutWhenUnopened,3,00

[CtlCam1.STI.Cm.AddReg]
HKR,,USDClass,,%PD1001.STIDevice.GUID%
HKCR,CLSID\%PD1001.STIDevice.GUID%,,,%PD1001.szStillImageDesc%
HKCR,CLSID\%PD1001.STIDevice.GUID%\InProcServer32,,,%11%\%PD1001.szStillImageFile%
HKCR,CLSID\%PD1001.STIDevice.GUID%\InProcServer32,ThreadingModel,,"Both"

[CtlCam1.DS.Cm.AddReg]
;---------------------------------------
; ** Register the property page GUIDs **
;---------------------------------------
HKCR,CLSID\%PD1001.DeviceSettings.GUID%,,,%PD1001.szDeviceSettingsDesc%
HKCR,CLSID\%PD1001.DeviceSettings.GUID%\InprocServer32,,,%PD1001.szVideoSourceFile%
HKCR,CLSID\%PD1001.DeviceSettings.GUID%\InprocServer32,ThreadingModel,,"Both"

HKCR,CLSID\%PD1001.AdvancedSettings.GUID%,,,%PD1001.szAdvancedSettingsDesc%
HKCR,CLSID\%PD1001.AdvancedSettings.GUID%\InprocServer32,,,%PD1001.szVideoSourceFile%
HKCR,CLSID\%PD1001.AdvancedSettings.GUID%\InprocServer32,ThreadingModel,,"Both"

HKCR,CLSID\%PD1001.VideoFormat.GUID%,,,%PD1001.szVideoFormatDesc%
HKCR,CLSID\%PD1001.VideoFormat.GUID%\InprocServer32,,,%PD1001.szVideoFormatFile%
HKCR,CLSID\%PD1001.VideoFormat.GUID%\InprocServer32,ThreadingModel,,"Both"

;-----------------------------------------------------------
; ** Associate custom property set with the property page **
;-----------------------------------------------------------
HKLM,%MSMediaSets%\%PD1001.CustomPropSet.GUID%,,,%PD1001.szCustomPropSetDesc%
HKLM,%MSMediaSets%\%PD1001.CustomPropSet.GUID%\PropertyPages\%PD1001.DeviceSettings.GUID%,,,%PD1001.szDeviceSettingsDesc%
HKLM,%MSMediaSets%\%PD1001.CustomPropSet.GUID%\PropertyPages\%PD1001.AdvancedSettings.GUID%,,,%PD1001.szAdvancedSettingsDesc%

HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%PD1001.VideoFormat.GUID%,,,%PD1001.szVideoFormatDesc%
HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%MSDefStreamConfig.GUID%,,,%szMSDefStreamConfigDesc%

[CtlCam1.Ins.Cm.AddReg]
HKLM,%MSRunOnce%,%PD1001.szDeviceSetupDesc%,,"RunDLL32.exe %PD1001.szPluginFile%,RunDLL32EP 515,PD1001"
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%PD1001.szUninstallDesc% (%szVersion%)"
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall %PD1001.USB.ID% -plugin %PD1001.szPluginFile% -pluginres %PD1001.szPluginResourceFile%"

[CtlCam1.Dev.AddReg]

[CtlCam1.Dev.AddReg.NT]

[CtlCam1.Dev.Cm.AddReg]
HKR,,PropertySetsID,3,2
HKR,,DefaultWidth,3,0x60,0x01,0,0
HKR,,DefaultHeight,3,0x20,0x01,0,0
HKR,,DisableZoom,1,1
HKR,,DisablePan,1,1
HKR,,DisableTilt,1,1
HKR,,DefaultQuality,1,4
HKR,,IncludeABYR,1,0
HKR,,EnableI420Support,1,1
HKR,,EventsWhileInactive,1,1

HKLM,%PD1001.CTConfigRegistry%,"VfW Extension",0,%PD1001.GUID_HyundaiISP%
HKLM,%PD1001.CTConfigRegistry%,"Downstream IID",0,%PD1001.IID_IAoxVfWExt%

HKLM,%PD1001.CTConfigRegistry%,"Video Brightness Default",0,"-10"
HKLM,%PD1001.CTConfigRegistry%,"Video Contrast Default",0,"266"
HKLM,%PD1001.CTConfigRegistry%,"Video Hue Default",0,"0"
HKLM,%PD1001.CTConfigRegistry%,"Video Saturation Default",0,"340"
HKLM,%PD1001.CTConfigRegistry%,"Video Sharpness Default",0,"70"
HKLM,%PD1001.CTConfigRegistry%,"Video Sharpness Enable",0,"1"
HKLM,%PD1001.CTConfigRegistry%,"Video Integration Offset",0,"0"

HKLM,%PD1001.CTConfigRegistry%,"AutoExposure Target Default",0,"60"
HKLM,%PD1001.CTConfigRegistry%,"AutoExposure Enable",0,"1"
HKLM,%PD1001.CTConfigRegistry%,"Flicker Filter",0,"50"
; Sets threshold for high-quality scaling algorithm; adjust last number as follows:
; To set high-quality scaling at Q5: set last number = 2
; To set high-quality scaling at Q4: set last number = 4  
; To set high-quality scaling at Q3: set last number = 8
; To set high-quality scaling at Q2: set last number = 16
; To set high-quality scaling active all the time:    Fast Scale Threshold = 0
; To set high-quality scaling In-active all the time: Fast Scale Threshold = 100	
HKLM,%PD1001.CTConfigRegistry%,"Fast Scale Threshold",0,"2"

HKR,,SupportSTI,3,0x0001

[CtlCam1.VFW.AddReg]
HKLM,%MSMediaResMSVideo%\MSVideo.%PD1001.szVfwKey%,"Description",,%PD1001.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD1001.szVfwKey%,"FriendlyName",,%PD1001.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD1001.szVfwKey%,"Driver",,%PD1001.szVFWDriver%

[CtlCam1.VFW.AddReg.NT]
HKLM,%MSMediaResMSVideo%\MSVideo.%PD1001.szVfwKey%,"Description",,%PD1001.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD1001.szVfwKey%,"FriendlyName",,%PD1001.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD1001.szVfwKey%,"Driver",,%PD1001.szVFWDriver.NT%

HKLM,%MSMMDriverDesc%,VfwWdm32.dll,,"WDM Video For Windows Capture Driver (Win32)"
HKLM,%MSMMDrivers%,MSVideo,,VfwWdm32.dll

;------------------ Interfaces -------------------------------------------------

[CtlCam1.Interfaces]
AddInterface =%MSKsCategoryCapture.GUID%,GLOBAL,CtlCam1.Interface

[CtlCam1.NT.Interfaces]
AddInterface =%MSKsCategoryCapture.GUID%,GLOBAL,CtlCam1.Interface

[CtlCam1.Interface]
AddReg   =CtlCam1.Intf.AddReg

[CtlCam1.Intf.AddReg]
HKR,,CLSID,,%MSProxyVCap.CLSID%
HKR,,FriendlyName,,%PD1001.szWDMDeviceDesc%
HKR,,ExtensionDLL,,%PD1001.szVFWPropPageFile%

HKLM,%MSRunOnce%,"Register_Aox_Directx_Codec",,"RunDll32.exe %11%\P1001Dex.ax,RegisterOEM creative"
HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}

;------------------ Services ---------------------------------------------------

[CtlCam1.NT.Services]
AddService =%PD1001.szVideoServiceName%,0x00000002,CtlCam1.ServiceInstall

[CtlCam1.ServiceInstall]
DisplayName   =%PD1001.szWDMDeviceDesc%
ServiceType   =1
StartType     =3
ErrorControl  =1
ServiceBinary =%12%\%PD1001.szWDMDriver.NT%

;------------------ UpdateIni --------------------------------------------------

[CtlCam1.UpdateIni]
System.ini,Drivers32,,"VIDC.I420=msh263.drv",0
System.ini,Drivers,,"MSVideo.%PD1001.szVfwKey%=%PD1001.szVfwDriver%"

;------------------ CopyFiles --------------------------------------------------

[CtlCam1.CopyWDMDrivers]
P1001Vid.sys
P1001Cam.sys

[CtlCam1.CopyWDMDrivers.NT]
P1001Vid.sys
P1001Cam.sys

[CtlCam1.CopyUserDrivers]
P1001Dex.ax
P1001Dx2.ax
P1001Dsx.ax
P1001Dsx.crl
P1001Pin.dll
P1001Pin.crl

[CtlCam1.CopyVFWDrivers]
P1001Vfw.drv

[CtlCam1.CopyVFWDrivers.NT]
P1001Vfw.dll

[CtlCam1.CopySTIDrivers]
P1001Sti.dll

[CtlCam.CopyTWAINMapper]
P1001TMp.ds

[CtlCam1.CopyTWAINDrivers]
P1001Twn.ds
P1001Twn.ini

[CtlCam1.CopyWinFiles]
P1001Vid.uns
P1001Cfg.exe
P1001Cfg.crl

; do not remove the common files below

[CtlCam.CopyInstallFiles]
CtDrvIns.exe,,,0x20
VfwUpd.exe,,,0x20

[CtlCam.CopyWDMDrivers.SYS]
Stream.sys,,,0x20

[CtlCam1.Uns.AddReg]
HKR,,CtUnsPath,,%PD1001.szUninstallFile%
HKR,,CtUnsSection,,"CtlCam1.Uns"

[CtlCam1.Uns.AddReg.NT]
HKR,,CtUnsPath,,%PD1001.szUninstallFile%
HKR,,CtUnsSection,,"CtlCam1.Uns.NT"

;================== PD101b =====================================================
;------------------ Install Section --------------------------------------------
[CtlCamb]
DriverVer     =10/16/2002,%szVersion%
CopyFiles     =CtlCamb.CopyWDMDrivers,CtlCamb.CopyUserDrivers,CtlCamb.CopyVFWDrivers,CtlCamb.CopySTIDrivers,CtlCam.CopyTWAINMapper,CtlCamb.CopyTWAINDrivers,CtlCamb.CopyWinFiles,CtlCamb.CopyOVTFiles,CtlCam.CopyInstallFiles,CtlCam.CopyWDMDrivers.SYS
DelReg        =CtlCam.StrmFmt.DelReg
AddReg        =CtlCamb.AddReg,CtlCamb.Cm.AddReg,CtlCamb.STI.Cm.AddReg,CtlCamb.DS.Cm.AddReg,CtlCamb.Uns.Cm.AddReg,CtlCamb.Dev.AddReg,CtlCamb.Dev.Cm.AddReg,CtlCamb.VFW.AddReg,CtlCamb.Uns.AddReg,CtlCamb.Ins.AddReg
Include       =Ks.inf,KsCaptur.inf,KsFilter.inf
Needs         =KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation
UpdateInis    =CtlCamb.UpdateIni

SubClass      =StillImage
DeviceType    =%PD101b.szDeviceType%
DeviceSubType =%PD101b.szDeviceSubType%
Capabilities  =%PD101b.szCapabilities%
DeviceData    =CtlCamb.StiDeviceData
Events        =CtlCamb.StiEvents
ICMProfiles   ="sRGB Color Space Profile.icm"

[CtlCamb.NT]
CopyFiles     =CtlCamb.CopyWDMDrivers.NT,CtlCamb.CopyUserDrivers,CtlCamb.CopyVFWDrivers.NT,CtlCamb.CopySTIDrivers,CtlCam.CopyTWAINMapper,CtlCamb.CopyTWAINDrivers,CtlCamb.CopyWinFiles,CtlCamb.CopyOVTFiles,CtlCam.CopyInstallFiles
AddReg        =CtlCamb.Cm.AddReg,CtlCamb.STI.Cm.AddReg,CtlCamb.DS.Cm.AddReg,CtlCamb.Uns.Cm.AddReg,CtlCamb.Dev.AddReg.NT,CtlCamb.Dev.Cm.AddReg,CtlCamb.VFW.AddReg.NT,CtlCamb.Uns.AddReg.NT
Include       =Ks.inf,KsCaptur.inf
Needs         =KS.Registration,KSCAPTUR.Registration.NT

SubClass      =StillImage
DeviceType    =%PD101b.szDeviceType%
DeviceSubType =%PD101b.szDeviceSubType%
Capabilities  =%PD101b.szCapabilities%
DeviceData    =CtlCamb.StiDeviceData
Events        =CtlCamb.StiEvents
ICMProfiles   ="sRGB Color Space Profile.icm"

[CtlCamb.NT.CoInstallers]
AddReg    =CtlCamb.CoInst.AddReg
CopyFiles =CtlCamb.CopyCoInstFile

[CtlCamb.CoInst.AddReg]
HKR,,CoInstallers32,0x00010000,"%PD101b.szPluginFile%,CoInstallerEntryPoint"

;------------------ STI & TWAIN Settings ---------------------------------------

[CtlCamb.StiDeviceData]
TWAINDS =%PD101b.szTWAINDSDesc%

[CtlCamb.StiEvents]
NewPicture =%szSTINewPictureDesc%,%PD101b.STINewPicture.GUID%,%szSTIAppName%
LaunchApp  =%szSTILaunchAppDesc%,%PD101b.STILaunchApp.GUID%,%szSTIAppName%

;------------------ Registry Settings ------------------------------------------

[CtlCamb.AddReg]
HKR,,DevLoader,,*ntkern,
HKR,,NTMPDriver,,%PD101b.szWDMDriver%

[CtlCamb.Cm.AddReg]
HKLM,%PD101b.CTConfigRegistry%,"Version",0,%szVersion%
HKR,,HardwareConfig,1,4
HKR,,VfwKey,,%PD101b.szVfwKey%
HKR,,WdmDeviceDesc,,%PD101b.szWDMDeviceDesc%
HKR,,VfwDeviceDesc,,%PD101b.szVfwDeviceDesc%

[CtlCamb.STI.Cm.AddReg]
HKR,,USDClass,,%PD101b.STIDevice.GUID%
HKCR,CLSID\%PD101b.STIDevice.GUID%,,,%PD101b.szStillImageDesc%
HKCR,CLSID\%PD101b.STIDevice.GUID%\InProcServer32,,,%11%\%PD101b.szStillImageFile%
HKCR,CLSID\%PD101b.STIDevice.GUID%\InProcServer32,ThreadingModel,,"Both"

[CtlCamb.DS.Cm.AddReg]
;---------------------------------------
; ** Register the property set GUIDs **
;---------------------------------------
HKCR,CLSID\%PD101b.CustomPropSet.GUID%,,,%PD101b.szCustomPropSetDesc%
HKCR,CLSID\%PD101b.CustomPropSet.GUID%\InprocServer32,,,%PD101b.szVideoSourceFile%
HKCR,CLSID\%PD101b.CustomPropSet.GUID%\InprocServer32,ThreadingModel,,"Both"

;---------------------------------------
; ** Register the property page GUIDs **
;---------------------------------------
HKCR,CLSID\%PD101b.DeviceSettings.GUID%,,,%PD101b.szDeviceSettingsDesc%
HKCR,CLSID\%PD101b.DeviceSettings.GUID%\InprocServer32,,,%PD101b.szVideoSourceFile%
HKCR,CLSID\%PD101b.DeviceSettings.GUID%\InprocServer32,ThreadingModel,,"Both"

HKCR,CLSID\%PD101b.AdvancedSettings.GUID%,,,%PD101b.szAdvancedSettingsDesc%
HKCR,CLSID\%PD101b.AdvancedSettings.GUID%\InprocServer32,,,%PD101b.szVideoSourceFile%
HKCR,CLSID\%PD101b.AdvancedSettings.GUID%\InprocServer32,ThreadingModel,,"Both"

HKCR,CLSID\%PD101b.VideoFormat.GUID%,,,%PD101b.szVideoFormatDesc%
HKCR,CLSID\%PD101b.VideoFormat.GUID%\InprocServer32,,,%PD101b.szVideoFormatFile%
HKCR,CLSID\%PD101b.VideoFormat.GUID%\InprocServer32,ThreadingModel,,"Both"

;-----------------------------------------------------------
; ** Associate custom property set with the property page **
;-----------------------------------------------------------
HKLM,%MSMediaSets%\%PD101b.CustomPropSet.GUID%,,,%PD101b.szCustomPropSetDesc%
HKLM,%MSMediaSets%\%PD101b.CustomPropSet.GUID%\PropertyPages\%PD101b.DeviceSettings.GUID%,,,%PD101b.szDeviceSettingsDesc%
HKLM,%MSMediaSets%\%PD101b.CustomPropSet.GUID%\PropertyPages\%PD101b.AdvancedSettings.GUID%,,,%PD101b.szAdvancedSettingsDesc%

HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%PD101b.VideoFormat.GUID%,,,%PD101b.szVideoFormatDesc%
HKLM,%MSMediaCategories%\%MSVideoCapturePin.GUID%\PropertyPages\%MSDefStreamConfig.GUID%,,,%szMSDefStreamConfigDesc%

[CtlCamb.Ins.AddReg]
HKLM,%MSRunOnce%,%PD101b.szDeviceSetupDesc%,,"RunDLL32.exe %PD101b.szPluginFile%,RunDLL32EP 515,PD101b"

[CtlCamb.Uns.Cm.AddReg]
HKLM,%MSUninstall%\%szUninstall%,"DisplayName",0,"%PD101b.szUninstallDesc% (%szVersion%)"
HKLM,%MSUninstall%\%szUninstall%,"UninstallString",0,"%10%\CtDrvIns.exe -uninstall %PD101b.USB.ID% -plugin %PD101b.szPluginFile% -pluginres %PD101b.szPluginResourceFile%"

[CtlCamb.Dev.AddReg]

[CtlCamb.Dev.AddReg.NT]
HKLM,"Software\OmniVision\PC Camera","PushModeEvent",,"Enable"

[CtlCamb.Dev.Cm.AddReg]
HKR,,OkToHibernate,3,01
HKR,,ModulFileName,,%PD101b.szTWAINDriverFile%
HKR,%PD101b.szCameraSettingsDesc%,StillSupportType,0x10001,2
HKR,%PD101b.szCameraSettingsDesc%,EnableAutoLaunch,1,52,01,01
HKR,%PD101b.szCameraSettingsDesc%,DisableAutoLaunch,1,52,01,01
HKR,%PD101b.szCameraSettingsDesc%,ClearSnapButton,1,52,03,03
HKR,%PD101b.szCameraSettingsDesc%,CheckAutoLaunch,1,52,08,08
HKR,%PD101b.szCameraSettingsDesc%,SupportEvent,0x10001,1
HKR,%PD101b.szCameraSettingsDesc%,EnableSystem,1,53,E1,FF,5D,03,FF
HKR,%PD101b.szCameraSettingsDesc%,DisableSystem,1,53,E0,FF
HKR,%PD101b.szCameraSettingsDesc%,ResetUsb,1,50,40,FF,53,E1,FF,50,3E,FF,53,E1,FF,50,0,FF
HKR,%PD101b.szCameraSettingsDesc%,SetUsbInit,1,50,3E,FF,50,00,FF
HKR,%PD101b.szCameraSettingsDesc%,SetUsbWork,1,50,3E,FF,50,0,FF
HKR,%PD101b.szCameraSettingsDesc%,BlockStream,1,50,3A,3A
HKR,%PD101b.szCameraSettingsDesc%,StartStream,1,2F,80,FF,50,00,FF
HKR,%PD101b.szCameraSettingsDesc%,BandwidthAllocateRule,0x10001,0
HKR,%PD101b.szCameraSettingsDesc%,FileDir,,\DosDevices\%10%\OvtCam
HKR,%PD101b.szCameraSettingsDesc%,DefaultYQuanTable,1,3,3,5,5,6,7,7,7,5,5,5,5,6,7,7,7,6,6,6,6,6,7,7,7,7,7,6,7,7,7,7,7
HKR,%PD101b.szCameraSettingsDesc%\CamSettingFiles,66308,,66308.set
HKR,%PD101b.szCameraSettingsDesc%\CamSettingFiles,66308Ae,,66308Ae.set
HKR,%PD101b.szCameraSettingsDesc%\CamSettingFiles,66308Af,,66308Af.set
HKR,%PD101b.szCameraSettingsDesc%\CamSettingFiles,66208,,66208.set
HKR,%PD101b.szCameraSettingsDesc%,IdleAltSetting,0x10001,0x0
HKR,,ShortCutString,,%PD101b.szShortCutStringDesc%

[CtlCamb.VFW.AddReg]
HKLM,%MSMediaResMSVideo%\MSVideo.%PD101b.szVfwKey%,"Description",,%PD101b.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD101b.szVfwKey%,"FriendlyName",,%PD101b.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD101b.szVfwKey%,"Driver",,%PD101b.szVFWDriver%

[CtlCamb.VFW.AddReg.NT]
HKLM,%MSMediaResMSVideo%\MSVideo.%PD101b.szVfwKey%,"Description",,%PD101b.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD101b.szVfwKey%,"FriendlyName",,%PD101b.szVfwDeviceDesc%
HKLM,%MSMediaResMSVideo%\MSVideo.%PD101b.szVfwKey%,"Driver",,%PD101b.szVFWDriver.NT%

HKLM,%MSMMDriverDesc%,VfwWdm32.dll,,"WDM Video For Windows Capture Driver (Win32)"
HKLM,%MSMMDrivers%,MSVideo,,VfwWdm32.dll

;------------------ Interfaces -------------------------------------------------

[CtlCamb.Interfaces]
AddInterface =%MSKsCategoryCapture.GUID%,GLOBAL,CtlCamb.Interface

[CtlCamb.NT.Interfaces]
AddInterface =%MSKsCategoryCapture.GUID%,GLOBAL,CtlCamb.Interface

[CtlCamb.Interface]
AddReg   =CtlCamb.Intf.AddReg

[CtlCamb.Intf.AddReg]
HKR,,CLSID,,%MSProxyVCap.CLSID%
HKR,,FriendlyName,,%PD101b.szWDMDeviceDesc%
HKR,,ExtensionDLL,,%PD101b.szVFWPropPageFile%

;------------------ Services ---------------------------------------------------

[CtlCamb.NT.Services]
AddService =%PD101b.szVideoServiceName%,0x00000002,CtlCamb.ServiceInstall

[CtlCamb.ServiceInstall]
DisplayName   ="Creative WebCam"
ServiceType   =1
StartType     =3
ErrorControl  =1
ServiceBinary =%12%\%PD101b.szWDMDriver.NT%

;------------------ UpdateIni --------------------------------------------------

[CtlCamb.UpdateIni]
System.ini,Drivers32,,"VIDC.I420=msh263.drv",0
System.ini,Drivers,,"MSVideo.%PD101b.szVfwKey%=%PD101b.szVfwDriver%"

;------------------ CopyFiles --------------------------------------------------

[CtlCamb.CopyWDMDrivers]
P101bVid.sys
P101bCmD.sys

[CtlCamb.CopyWDMDrivers.NT]
P101bVid.sys
P101bCmD.sys

[CtlCamb.CopyUserDrivers]
P101bDex.ax
P101bDex.crl
P101bPin.dll
P101bPin.crl

[CtlCamb.CopyVFWDrivers]
P101bVfw.drv

[CtlCamb.CopyVFWDrivers.NT]
P101bVfw.dll

[CtlCamb.CopySTIDrivers]
P101bSti.dll

[CtlCamb.CopyTWAINDrivers]
P101bTwn.ds

[CtlCamb.CopyWinFiles]
P1001Vid.uns
P101bCfg.exe
P101bCfg.crl

; do not remove the common files below

[CtlCamb.CopyOVTFiles]
Logo352.bmp
66308.set
66308Ae.set
66308Af.set
66208.set

[CtlCamb.Uns.AddReg]
HKR,,CtUnsPath,,%PD101b.szUninstallFile%
HKR,,CtUnsSection,,"CtlCamb.Uns"

[CtlCamb.Uns.AddReg.NT]
HKR,,CtUnsPath,,%PD101b.szUninstallFile%
HKR,,CtUnsSection,,"CtlCamb.Uns.NT"

[CtlCamb.CopyCoInstFile]

;------------------ Source Disks -----------------------------------------------

[SourceDisksNames]
1 =%szSourceDisksNameDesc%,,,

[SourceDisksFiles]
; PD1001
P1001Vid.sys =1,,
P1001Cam.sys =1,,
P1001Dex.ax  =1,,
P1001Dx2.ax  =1,,
P1001Dsx.ax  =1,,
P1001Dsx.crl =1,,
P1001Pin.dll =1,,
P1001Pin.crl =1,,
P1001Vfw.drv =1,,
P1001Vfw.dll =1,,
P1001Sti.dll =1,,
P1001Twn.ds  =1,,
P1001Twn.ini =1,,
P1001Vid.uns =1,,
P1001Cfg.exe =1,,
P1001Cfg.crl =1,,

; PD101b
P101bVid.sys =1,,
P101bCmD.sys =1,,
P101bDex.ax  =1,,
P101bDex.crl =1,,
P101bVfw.drv =1,,
P101bVfw.dll =1,,
P101bSti.dll =1,,
P101bTwn.ds  =1,,
Logo352.bmp  =1,,
66308.set    =1,,
66308Ae.set  =1,,
66308Af.set  =1,,
66208.set    =1,,
P101bPin.dll =1,,
P101bPin.crl =1,,
P101bCfg.exe =1,,
P101bCfg.crl =1,,

; common
CtDrvIns.exe =1,,
VfwUpd.exe   =1,,
P1001Tmp.ds  =1,,

;------------------ Strings-----------------------------------------------------

[Strings]
;------------------------------------------
; ** do not change the following strings **
;------------------------------------------
MSMediaSets              ="SYSTEM\CurrentControlSet\Control\MediaSets"
MSMediaCategories        ="System\CurrentControlSet\Control\MediaCategories"
MSVideoCapturePin.GUID   ="{FB6C4281-0353-11d1-905F-0000C0CC16BA}"
MSDefStreamConfig.GUID   ="{71F96467-78F3-11d0-A18C-00A0C9118956}"
MSRunOnce                ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
szMSDefStreamConfigDesc  ="StreamFormat Property Page"
MSUninstall              ="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
MSMMDriverDesc           ="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers.desc"
MSMMDrivers              ="SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32"
MSMediaResMSVideo        ="SYSTEM\CurrentControlSet\Control\MediaResources\msvideo"
MSKsCategoryCapture.GUID ="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
MSProxyVCap.CLSID        ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

;---------------------------------------
; ** following strings rarely changed **
;---------------------------------------
szProvider          ="Creative Labs"
szSTINewPictureDesc ="New Picture Captured"
szSTILaunchAppDesc  ="Open Application"

CTUninstall         ="SOFTWARE\Creative Tech\Driver Uninstaller"

;------------------------------------------
; ** following strings change per device **
;------------------------------------------
; PD1001 description
PD1001.szModelno              ="PD1001"
PD1001.USB.ID                 ="USB\VID_041E&PID_400D"
PD1001.szWDMDeviceDesc        ="Creative WebCam (WDM)"
PD1001.szDeviceType           ="2"
PD1001.szDeviceSubType        ="0x1"
PD1001.szCapabilities         ="1"
PD1001.szTWAINDSDesc          ="Creative WebCam (WDM)"
PD1001.CTConfigRegistry       ="Software\Creative Tech\Web Cameras\PD1001"
PD1001.szVfwKey               ="PD1001"
PD1001.szVfwDeviceDesc        ="Creative WebCam (VFW)"
PD1001.szStillImageDesc       ="Creative WebCam Still Image Driver"
PD1001.szDeviceSettingsDesc   ="PD1001 Device Settings Property Page"
PD1001.szAdvancedSettingsDesc ="PD1001 Advanced Settings Property Page"
PD1001.szVideoFormatDesc      ="PD1001 Video Format Property Page"
PD1001.szCustomPropSetDesc    ="PD1001 Custom Property Set"
PD1001.szDeviceSetupDesc      ="Creative WebCam Setup"
PD1001.szUninstall            ="Creative PD1001"
PD1001.szUninstallDesc        ="Creative WebCam Driver"
PD1001.szVideoServiceName     ="P1001VID"

; PD101b description
PD101b.szModelno              ="PD101b"
PD101b.USB.ID                 ="USB\VID_05A9&PID_0518"
PD101b.szWDMDeviceDesc        ="Creative WebCam"
PD101b.szDeviceType           ="2"
PD101b.szDeviceSubType        ="0x0518"
PD101b.szCapabilities         ="1"
PD101b.szTWAINDSDesc          ="Creative WebCam"
PD101b.CTConfigRegistry       ="Software\Creative Tech\Web Cameras\PD101b"
PD101b.szVfwKey               ="PD101b"
PD101b.szVfwDeviceDesc        ="Creative WebCam  (VFW)"
PD101b.szStillImageDesc       ="PD101b Still Image Driver"
PD101b.szDeviceSettingsDesc   ="PD101b Device Settings Property Page"
PD101b.szAdvancedSettingsDesc ="PD101b Advanced Settings Property Page"
PD101b.szVideoFormatDesc      ="PD101b Video Format Property Page"
PD101b.szCustomPropSetDesc    ="PD101b Custom Property Set"
PD101b.szDeviceSetupDesc      ="PD101b WebCam Setup"
PD101b.szUninstall            ="Creative PD101b"
PD101b.szUninstallDesc        ="Creative WebCam Driver"
PD101b.szCameraSettingsDesc   ="CameraSetting"
PD101b.szShortCutStringDesc   ="Creative\Creative WebCam"
PD101b.szVideoServiceName     ="P101bVID"

; common description
szSTIAppName                  ="WebCam Control"
szSourceDisksNameDesc         ="Creative WebCam Driver Disk"
szUninstall                   ="Creative WebCam"

; PD1001 GUIDs
PD1001.STINewPicture.GUID     ="{61127F40-E1A5-11D0-B454-00A02438AD48}"
PD1001.STILaunchApp.GUID      ="{FAA10A9D-3727-4327-9A82-C0C42A078EBD}"
PD1001.STIDevice.GUID         ="{28498120-0939-11d6-8886-0800460222F0}"
PD1001.DeviceSettings.GUID    ="{F5CC2CC0-04EC-11d6-8886-0800460222F0}"
PD1001.AdvancedSettings.GUID  ="{F5CC2CC1-04EC-11d6-8886-0800460222F0}"
PD1001.VideoFormat.GUID       ="{18CBEE95-F99A-4c28-9F90-A59154E006AB}"
PD1001.CustomPropSet.GUID     ="{7C5D9D20-5C2A-11D6-888B-0800460222F0}"

PD1001.GUID_HyundaiISP        ="{90334840-CC22-11d2-9D67-00A0CC242499}"
PD1001.IID_IAoxVfWExt         ="{A33E54E0-1504-11D3-9D6A-00104B6DC9C2}"

; PD101b GUIDs
PD101b.STINewPicture.GUID     ="{00506AC1-2B95-11D6-96C5-00D0B7C7235A}"
PD101b.STILaunchApp.GUID      ="{00506AC0-2B95-11D6-96C5-00D0B7C7235A}"
PD101b.STIDevice.GUID         ="{00506AC3-2B95-11d6-96C5-00D0B7C7235A}"
PD101b.DeviceSettings.GUID    ="{55AAACC1-45DC-428D-954E-27C722BFBE72}"
PD101b.AdvancedSettings.GUID  ="{55AAACC2-45DC-428D-954E-27C722BFBE72}"
PD101b.VideoFormat.GUID       ="{55AAACC3-45DC-428D-954E-27C722BFBE72}"
PD101b.CustomPropSet.GUID     ="{3DE6EB40-5767-11D6-8645-00D0B7C7235A}"


; PD1001 filename
PD1001.szWDMDriver            ="P1001Vid.sys"
PD1001.szStillImageFile       ="P1001Sti.dll"
PD1001.szVideoSourceFile      ="P1001Dx2.ax"
PD1001.szVideoFormatFile      ="P1001Dsx.ax"
PD1001.szPluginFile           ="P1001Pin.dll"
PD1001.szPluginResourceFile   ="P1001Pin.crl"
PD1001.szVFWDriver            ="P1001Vfw.drv"
PD1001.szVFWDriver.NT         ="P1001Vfw.dll"
PD1001.szVFWPropPageFile      ="P1001Dx2.ax"
PD1001.szWDMDriver.NT         ="P1001Vid.sys"
PD1001.szUninstallFile        ="P1001Vid.uns"

; PD101b filename
PD101b.szWDMDriver            ="P101bVid.sys"
PD101b.szStillImageFile       ="P101bSti.dll"
PD101b.szVideoSourceFile      ="P101bDex.ax"
PD101b.szVideoFormatFile      ="P101bDex.ax"
PD101b.szPluginFile           ="P101bPin.dll"
PD101b.szPluginResourceFile   ="P101bPin.crl"
PD101b.szVFWDriver            ="P101bVfw.drv"
PD101b.szVFWDriver.NT         ="P101bVfw.dll"
PD101b.szVFWPropPageFile      ="P101bDex.ax"
PD101b.szWDMDriver.NT         ="P101bVid.sys"
PD101b.szTWAINDriverFile      ="P101bTwn.ds"
PD101b.szUninstallFile        ="P1001Vid.uns"

;------------------------------------------
; ** following strings change frequently **
;------------------------------------------
szVersion =1.02.08.0807
