;---------------------------------------------------------------------------
; P1120DEV.INF -- Creative Camera Model Number PD1120 installation
; Copyright (c) 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=P1120Dev.cat
Provider=   %szMfg%
DriverVer=  01/27/2004,%szVersion%

[ControlFlags]
ExcludeFromSelect=*

[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\PD1120
CtlCam.CopyVfwDriver=11
CtlCam.W2K.CopyVfwDriver=11

[Creative]
%szDeviceDesc%=CtlCam.Device,USB\VID_041E&PID_401D
%szDeviceDesc%=CtlCam.Device,USB\VID_041E&PID_4021

[CtlCam.Device]
DriverVer=     01/27/2004,%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
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyKernelDrivers.SYS,CtlCam.CopyUserDrivers,CtlCam.CopyUserDrivers.SYS,CtlCam.CopyTwainFiles,CtlCam.CopyWinFiles,CtlCam.CopyVfwDriver
VendorSetup=   %szInsPlugIn%,NonCoInstSetupEP
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  1
DeviceData=    CtlCam.DeviceData
Events=        CtlCam.StiEvents
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
UpdateInis=    CtlCam.UpdateIni
CopyFiles=     CtlCam.CopyKernelDrivers,CtlCam.CopyUserDrivers,CtlCam.CopyTwainFiles,CtlCam.W2K.CopyWinFiles,CtlCam.W2K.CopyVfwDriver
SubClass=      StillImage
DeviceType=    2
DeviceSubType= 0x1
Capabilities=  1
DeviceData=    CtlCam.DeviceData
Events=        CtlCam.StiEvents
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.DeviceData]
TwainDS=%szTwainDSDesc%

[CtlCam.StiEvents]         ; Creative
; ** For STI driver registration only. If there is a WIA driver, do not use this method. **
NewPicture= %szStiEventNewPic%,%szSTIEvent.GUID%,%szStiAppName%
LaunchApp=  %szStiEventLaunchApp%,%szSTIEvent.GUID%,%szStiAppName%

[CtlCam.STI.AddReg.NT]     ; Creative
; ** Fix WinXP resource string replacement problem **
HKR,Events\NewPicture,,0,%szStiEventNewPic%
HKR,Events\NewPicture,GUID,0,%szSTIEvent.GUID%
HKR,Events\NewPicture,LaunchApplications,0,%szStiAppName%
HKR,Events\LaunchApp,,0,%szStiEventLaunchApp%
HKR,Events\LaunchApp,GUID,0,%szSTIEvent.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.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,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szVideoDriver%
;;HKR,,PageOutWhenUnopened,3,00
;;HKR,,PowerDownWhenUnopened,3,01
;;HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,CreateFileName,,"USB"
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"

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

[CtlCam.Custom.AddReg]
HKLM,"Software\Creative Tech\Web Cameras\PD1120", "Twain_Flag", 0x10001, 00, 00, 00, 00

; -------------------------- 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,,%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, 0x4B,0xEF,0xD4,0x81,0x67,0x37,0x68,0x40,0x99,0x0E,0xCC,0xF6,0xBB,0xB7,0x72,0xA4
; Overrides the standard CameraControl property page with custom One.
;HKR,PageAliases,"%MSDefCameraCtrl.GUID%",1, 0x1E,0xB7,0x3B,0x39,0x12,0x4E,0x01,0x40,0x91,0x9D,0x74,0xC2,0x3D,0xA4,0xA1,0x65
; Overrides the standard VideoProcAmp property page with custom one.
;HKR,PageAliases,"%MSDefVideoProcAmp.GUID%",1, 0xD9,0x45,0x0C,0x21,0x52,0xB7,0x8D,0x4B,0x94,0xBC,0xDB,0x3B,0x44,0x3E,0xD2,0xC1


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

[CTL.CopyCoInstFile]

[CtlCam.CopyKernelDrivers]
P1120Vid.sys

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

[CtlCam.CopyUserDrivers]
P1120Hwx.dll   ; from Creative
P1120Ctm.dll   ; from Creative
P1120Pin.dll   ; from Creative
P1120Pin.crl   ; from Creative
P1120Ext.ax    ; from Creative
P1120Ext.crl   ; from Creative
P1120Srv.exe   ; from Creative
CtCamMgr.dll   ; from Creative
P1120sti.dll
P1120if.dll
P1120GRA.dll
P1120JPG.dll
P1120Vex.loc

[CtlCam.CopyTwainFiles]
P1120DEP.dll
P1120Ctl.dll
P1120Twn.ds
P1120UI.dll
P1120Cap.dll
P1120Twn.pro
P1120Twn.loc

[CtlCam.W2K.CopyWinFiles]
CtDrvIns.exe   ; from Creative
P1120Cfg.exe   ; from Creative
PD1120.uns     ; from Creative

[CtlCam.CopyWinFiles]
CtDrvIns.exe   ; from Creative
P1120Cfg.exe   ; from Creative
PD1120.uns     ; from Creative
Vfwupd.exe

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

[CtlCam.CopyVfwDriver]
P1120Vfw.drv   ; from Creative

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

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
P1120Vid.sys=1,,
P1120Twn.ds=1,,
P1120Hwx.dll=1,,
P1120Ctm.dll=1,,
VfwUpd.exe=1,,
P1120Ext.ax=1,,
P1120Ext.crl=1,,
P1120Srv.exe=1,,
P1120Vfw.drv=1,,
P1120Vfw.dll=1,,
P1120Pin.dll=1,,
P1120Pin.crl=1,,
CtDrvIns.exe=1,,
CtCamMgr.dll=1,,
P1120Cfg.exe=1,,
PD1120.uns=1,,
P1120if.dll=1,,
P1120Ext.crl=1,,
P1120DEP.dll=1,,
P1120Ctl.dll=1,,
P1120UI.dll=1,,
P1120Cap.dll=1,,
P1120Twn.pro=1,,
P1120GRA.dll=1,,
P1120JPG.dll=1,,
P1120sti.dll=1,,
P1120Twn.loc=1,,
P1120Vex.loc=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 WebCam NX Ultra"
szProductName           ="Creative WebCam NX Ultra" 
szConfigRegistry        ="Software\Creative Tech\Web Cameras\PD1120"

szVfwKey                ="PD1120VFW"
szVfwDeviceDesc         ="Creative WebCam NX Ultra (VFW)"
szTwainDSDesc           ="Creative WebCam NX Ultra"
szUninstall             ="Creative PD1120"
szUninstallDisplay      ="Creative WebCam NX Ultra Driver"
szStillImageDesc        ="PD1120 Still Image USD"
szStiAppName            ="PC-CAM Center"
szStiEventNewPic        ="New Picture"
szStiEventLaunchApp     ="Launch Application"

szDiskName              ="Creative WebCam NX Ultra Driver Disk"
szVidServiceName        ="P1120VID"
szDeviceSetup           ="Creative WebCam NX Ultra Setup"

; File names
szInsPlugIn             ="P1120Pin.dll"
szInsPlugInRes          ="P1120Pin.crl"
szExtPageFile           ="P1120Ext.ax"
szUNSScript             ="Pd1120.uns"
szVfwBaseFileName       ="P1120Vfw"
szVideoDriver           ="P1120Vid.sys"
szStiDriver             ="P1120Sti.dll"

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

szCustomInterface.GUID         ="{F0C8D8C0-EE38-4e0e-9414-AA8811332997}"
szSTIDevice.GUID               ="{B1A2E53B-7164-4b4b-A9BC-2D57DBAB8B4F}"
szSTIEvent.GUID                ="{85281D4C-F6FC-417e-9387-09E2FE4E01FC}"

;----------------------
; Version information
;----------------------
szVersion         ="1.01.03.0112"   ; Vendor build 04-01-12
