;---------------------------------------------------------------------------
; P1170DEV.INF -- Creative Camera Model Number PD1170 installation
; Copyright (c) 2003 Creative Technology Ltd. All rights reserved.
;---------------------------------------------------------------------------
[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
CatalogFile=PD1170.cat
Provider=%szMfg%
DriverVer=04/06/2004,%szVersion%

[ControlFlags]
; All PnP devices should be excluded from manual AddDevice Applet list
ExcludeFromSelect=*
InteractiveInstall=USB\VID_0572&PID_0041
InteractiveInstall=USB\VID_0572&PID_0042

[Manufacturer]
%szMfg%=Creative

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

[Creative]
%szDeviceDesc%= CtlCam.Device,USB\VID_0572&PID_0041
%szDeviceDesc%= CtlCam.Device,USB\VID_0572&PID_0042

[CtlCam.Device]
DriverVer=     04/06/2004,%szVersion%
Include=       ks.inf, kscaptur.inf, ksfilter.inf
Needs=         KS.Registration,KSCAPTUR.Registration
AddReg=        CtlCam.Basic.AddReg,CtlCam.Custom.AddReg,CtlCam.Uns.AddReg,CtlCam.Vfw.AddReg
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=  1
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"
VendorSetup=   %szInsPlugIn%,NonCoInstSetupEP

[CtlCam.Device.NT]
Include=       ks.inf, kscaptur.inf
Needs=         KS.Registration,KSCAPTUR.Registration.NT
AddReg=        CtlCam.Basic.AddReg,CtlCam.Custom.AddReg,CtlCam.Uns.AddReg.NT,CtlCam.Vfw.AddReg.NT
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.W2K.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2           
DeviceSubType= 0x1       
Capabilities=  1        
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"  

[CtlCam.Device.NT.CoInstallers]
AddReg=     CtlCam.CoInst.AddReg
CopyFiles=  CTL.CopyCoInstFile

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

[CtlCam.DeviceData]
TwainDS=%szDeviceDesc%

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

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

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

; ** Device driver **
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
HKR,,CtProductName,,%szDeviceDesc%       ; Creative

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

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

; This IID is aggregated for the filter given the CLSID of the property set
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%szCustomInterface.GUID%,,,%szPlugIn_CustomCameraProp%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\%szCustomInterface.GUID%,IID,1,10,1a,4a,c4,37,0a,d2,11,83,28,00,60,97,ba,83,ac

HKCR,CLSID\%szCustomStreamConfig.GUID%,,,%szPropPage_CustomStreamConfig%
HKCR,CLSID\%szCustomStreamConfig.GUID%\InprocServer32,,,%szDSExtPageFile%
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

HKCR,CLSID\%szCustomBandingSetting.GUID%,,,%szPropPage_CustomBandingSetting%
HKCR,CLSID\%szCustomBandingSetting.GUID%\InprocServer32,,,%szDSExtPageFile%
HKCR,CLSID\%szCustomBandingSetting.GUID%\InprocServer32,ThreadingModel,,Both

; ** VFW driver component registration **
HKCR,CLSID\%szVFWNR.GUID%,,,"VFW NR"
HKCR,CLSID\%szVFWNR.GUID%\InprocServer32,,,"%szVfwBaseFileName%.dll"
HKCR,CLSID\%szVFWNR.GUID%\InprocServer32,ThreadingModel,,Both

; ** VFW driver component registration **
HKCR,CLSID\%szVFWSG.GUID%,,,"VFW SG"
HKCR,CLSID\%szVFWSG.GUID%\InprocServer32,,,"%szVfwBaseFileName%.dll"
HKCR,CLSID\%szVFWSG.GUID%\InprocServer32,ThreadingModel,,Both

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

[CtlCam.Custom.AddReg]
HKR,,OkToHibernate,3,01
HKR,,HardwareConfig,1,4         ;Hardware configuration is STI_HW_CONFIG_USB

HKLM,%szConfigRegistry%,"ProductName",0,"Creative WebCam Notebook"

HKLM,%szConfigRegistry%,"AWBEnabled",0x10001,1
HKLM,%szConfigRegistry%,"BrightnessLock",0x10001,1
HKLM,%szConfigRegistry%,"FluorescenceFrequency",0x10001,0
HKLM,%szConfigRegistry%,"DrefCalibration",0x10001,1

HKLM,%szConfigRegistry%,"FrameRate",0x10001,30
HKLM,%szConfigRegistry%,"Contrast",0x10001,90
HKLM,%szConfigRegistry%,"Brightness",0x10001,65
HKLM,%szConfigRegistry%,"Saturation",0x10001,72
HKLM,%szConfigRegistry%,"Hue",0x10001,50
HKLM,%szConfigRegistry%,"Sharpness",0x10001,85
HKLM,%szConfigRegistry%,"Gamma",0x10001,55
HKLM,%szConfigRegistry%,"Compression",0x10001,75
HKLM,%szConfigRegistry%,"WhitebalanceBlue",0x10001,50
HKLM,%szConfigRegistry%,"WhitebalanceRed",0x10001,50
HKLM,%szConfigRegistry%,"FlipImage",0x10001,0

HKLM,%szConfigRegistry%,"DetectBadPixel",0x10001,0
HKLM,%szConfigRegistry%,"VideoDataSource",0x10001,0
HKLM,%szConfigRegistry%,"XResolution",0x10001,320
HKLM,%szConfigRegistry%,"YResolution",0x10001,240

HKLM,%szConfigRegistry%,"DefaultBrightness",0x10001,65
HKLM,%szConfigRegistry%,"DefaultSaturation",0x10001,72
HKLM,%szConfigRegistry%,"DefaultHue",0x10001,50
HKLM,%szConfigRegistry%,"DefaultSharpness",0x10001,85
HKLM,%szConfigRegistry%,"DefaultGamma",0x10001,55
HKLM,%szConfigRegistry%,"DefaultCompression",0x10001,75
HKLM,%szConfigRegistry%,"DefaultFrameRate",0x10001,30
HKLM,%szConfigRegistry%,"DefaultWBRed",0x10001,54
HKLM,%szConfigRegistry%,"DefaultWBBlue",0x10001,62

HKLM,%szConfigRegistry%,"GainSetting",0x00001,0xf5,00,00,01,0xd6,01,0x1a,02,00,02,06,00
HKLM,%szConfigRegistry%,"WinMESTIDelay",0x10001,100

[CtlCam.Vfw.AddReg]
; ** For Video For Window driver **
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Description",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"FriendlyName",,%szVfwDeviceDesc%
HKLM,%MSMediaResourcesMSVideo%\MSVideo.%szVfwKey%,"Driver",,"%szVfwBaseFileName%.drv"

[CtlCam.Vfw.AddReg.NT]
; ** For Video For Window driver **
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.mjpg=%szMJPGcodec%" 
system.ini,drivers32,,"VIDC.I420=msh263.drv",0
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,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%szDeviceDesc%
HKR,,ExtensionDLL,,%szExtPageFile%

HKR,PageAliases,"%MSDefStreamConfig.GUID%",1, 0xc7,0x15,0x41,0xa3,0x0e,0xcb,0x94,0x48,0xb3,0xe5,0xb2,0x07,0x98,0x57,0x8b,0x7c
HKR,PageAliases,"%MSDefCameraCtrl.GUID%",1, 0x41,0x65,0x51,0xe7,0xcc,0xd8,0x20,0x40,0x9d,0x45,0xa8,0xb6,0xfc,0xef,0x06,0x1e
HKR,PageAliases,"%MSDefVideoProcAmp.GUID%",1, 0x8f,0xd5,0x34,0xd4,0x2b,0x07,0x5c,0x41,0xb4,0x73,0xd0,0xf5,0xf8,0x66,0x9b,0xe3

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

[CTL.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
P1170Vid.sys

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

[CtlCam.W2K.CopyKernelDrivers]
P1170vid.sys

[CtlCam.CopyUserDrivers]
P1170Pin.dll      ; from Creative
P1170Pin.crl      ; from Creative
P1170Cfg.crl      ; from Creative
P1170Hwx.dll      ; from Creative
P1170JPG.dll      ; MJPGcodec
CtCamMgr.dll      ; from Creative
P1170ext.ax
P1170ext.crl
P1170Srv.exe

[CtlCam.CopyTwainFiles]
P1170Twn.ds

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe      ; from Creative
P1170Cfg.exe      ; from Creative
PD1170.uns        ; from Creative

[CtlCam.CopyWinFiles]
CtDrvIns.exe      ; from Creative
P1170Cfg.exe      ; from Creative
VfwUpd.exe        ; from Creative
PD1170.uns        ; from Creative

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

[CtlCam.CopyVfwDriver]
P1170vfw.drv   ; from Creative

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
VfwUpd.exe    =1,,
CtDrvins.exe  =1,,
P1170pin.dll  =1,,
P1170pin.crl  =1,,
P1170vfw.dll  =1,,
P1170Vfw.drv  =1,,
P1170Cfg.exe  =1,,
P1170Cfg.crl  =1,,
p1170hwx.dll  =1,,
PD1170.uns    =1,,
CtCamMgr.dll  =1,,
P1170JPG.dll  =1,,
P1170Twn.ds   =1,,
P1170Vid.sys  =1,,
P1170ext.ax   =1,,
P1170ext.crl  =1,,
P1170Srv.exe  =1,,

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

[Strings]
; note: only register value is case sensitive, key is not.
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
IAMVideoCompression.GUID = "{C6E13343-30AC-11d0-A18C-00A0C9118956}"

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}"
MSDefVideoProcAmp.GUID  ="{71F96465-78F3-11d0-A18C-00A0C9118956}"
MSDefCameraCtrl.GUID    ="{71F96464-78F3-11d0-A18C-00A0C9118956}"

SERVICE_KERNEL_DRIVER   =1
SERVICE_DEMAND_START    =3
SERVICE_ERROR_NORMAL    =1

REG_SZ         = 0x00000000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg=            "Creative Labs"
szDeviceDesc=     "Creative WebCam Notebook"

;File names
szVideoDriver     = p1170vid.sys
szMJPGcodec       = P1170JPG.dll
szInsPlugIn       ="P1170pin.dll"
szInsPlugInRes    ="P1170pin.crl"
szExtPageFile     ="P1170ext.ax"
szDSExtPageFile   ="P1170ext.ax"
szUNSScript       ="PD1170.uns"

szUninstall             ="Creative PD1170"
szDiskName              ="Creative WebCam Notebook Driver Disk"
szUninstallDisplay      ="Creative WebCam Notebook Driver"
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD1170"

szVfwKey                ="PD1170VFW"
szVfwBaseFileName       ="P1170vfw"
szVfwDeviceDesc         ="Creative WebCam Notebook (VFW)"

szVidServiceName        ="PD1170VID"
szDeviceSetup           ="WebCam Notebook Setup"

szVFWNR.GUID                     ="{2FA4F053-6D60-4cb0-9503-8E89234F3F80}"
szVFWSG.GUID                     ="{2FA4F053-6D60-4cb0-9503-8E89234F3F81}"

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

szCustomInterface.GUID           ="{aa161700-9acb-11d4-8d5e-00902761eb53}"
szCustomStreamConfig.GUID        ="{A34115C7-CB0E-4894-B3E5-B20798578B7C}"
szCustomBandingSetting.GUID      ="{E7516541-D8CC-4020-9D45-A8B6FCEF061E}"
szCustomDevSetting.GUID          ="{D434D58F-072B-415c-B473-D0F5F8669BE3}"

szVersion = "1.04.01.0322"       ; Vendor dated 03-10-14
