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

[ControlFlags]
ExcludeFromSelect=*
InteractiveInstall=USB\VID_041E&PID_4015&MI_01

[Manufacturer]
%szMfg%=Creative

[DestinationDirs]
DefaultDestDir=11               ; LDID_SYS
CTL.CopyTwainFiles=10,TWAIN_32\Creative\PD1080
CTL.CopyUserSysFiles=11
CTL.CopyUserSysFiles.SYS=11
CTL.CopyKernDrivers=10,System32\Drivers

[Creative]
%szDeviceDesc%= CtlCam.Dev,USB\VID_041E&PID_4015&MI_01

[CtlCam.Dev]
DriverVer=     07/14/2003,%szVersion%
CopyFiles=     CTL.CopyKernDrivers,CTL.CopyUserSysFiles,CTL.CopyTwainFiles
AddReg=        CtlCam.AddReg,CtlCam.AddReg.Register.W98
SubClass=      StillImage
DeviceType=    2           ; DeviceType should be set to 1 = scanner or 2 = camera.
DeviceSubType= 0x1         ; Device SubType is Vendor-unique

Capabilities=  0x00000001
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

[CtlCam.Dev.NT]
CopyFiles=     CTL.CopyKernDrivers,CTL.CopyUserSysFiles,CTL.CopyTwainFiles
AddReg=        CtlCam.AddReg,CtlCam.AddReg.Register.NT
SubClass=      StillImage
DeviceType=    2           ; DeviceType should be set to 1 = scanner or 2 = camera.
DeviceSubType= 0x1         ; Device SubType is Vendor-unique

Capabilities=  0x00000011
Events=        CtlCam.StiEvents
DeviceData=    CtlCam.DeviceData
ICMProfiles=   "sRGB Color Space Profile.icm"

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

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

[CtlCam.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%szBulkDriver%
HKR,,CtProductName,,%szProductName%       ; Creative

HKR,,WdmDeviceDesc,,%szDeviceDesc%
HKR,,SymbolicName,,"P1080STL"

; ** STI driver registration **
HKR,,USDClass,,%szSTIDevice.GUID%
HKR,,CLSID,,%szSTIDevice.GUID%
HKCR,CLSID\%szSTIDevice.GUID%,,,%szStillImageDesc%
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,,,%11%\p1080sti.dll
HKCR,CLSID\%szSTIDevice.GUID%\InProcServer32,ThreadingModel,,"Both"

; ** WIA MiniDriver registration **
HKCR,CLSID\%szWIADevice.GUID%,,,"PD1080 WIA MiniDriver"
HKCR,CLSID\%szWIADevice.GUID%\InProcServer32,,,%11%\p1080wia.dll
HKCR,CLSID\%szWIADevice.GUID%\InProcServer32,ThreadingModel,,"Both"

; for ISP
HKLM,%szConfigRegistry%,"Still Prefilter",0,"45"
HKLM,%szConfigRegistry%,"Still Prefilter Compressed",0,"60"
HKLM,%szConfigRegistry%,"Imager Override",0,"1"
HKLM,%szConfigRegistry%,"Bayer Mirror",0,"1"
HKLM,%szConfigRegistry%,"Bayer Start",0,"0"
HKLM,%szConfigRegistry%,"Bayer Invert",0,"1"
HKLM,%szConfigRegistry%,"Still Offset Bayer",0,"0"
HKLM,%szConfigRegistry%,"Still Gamma Select",0,"1"
HKLM,%szConfigRegistry%,"Still Saturation Default",0,"512"
HKLM,%szConfigRegistry%,"Still Sharpness Default",0,"90"

; these are for trace messages
HKR,Parameters,TraceDevice,65537,3,0,0,0
HKR,Parameters,TraceOutputLevel,65537,5,0,0,0
HKR,Parameters,TraceBreakLevel,65537,4,0,0,0
HKR,Parameters,BreakOnEntry,65537,0,0,0,0

[CtlCam.AddReg.Register.W98]
HKLM,%MSRunOnce%,"Register_Endpoints_StillCam_AVI_Source",,"regsvr32.exe /s %11%\p1080avi.ax"

[CtlCam.AddReg.Register.NT]
HKLM,%MSRunOnce%,"Register_Endpoints_StillCam_AVI_Source",,"RunDLL32.exe %11%\p1080avi.ax,DllRegisterServer"

[CtlCam.Dev.NT.Services]
AddService= %szBulkServiceName%,0x00000002,CtlCam.ServiceInstall

[CtlCam.ServiceInstall]
DisplayName=   %szDeviceDesc%
ServiceType=   %SERVICE_KERNEL_DRIVER%
StartType=     %SERVICE_DEMAND_START%
ErrorControl=  %SERVICE_ERROR_NORMAL%
ServiceBinary= %12%\%szBulkDriver%
LoadOrderGroup=Base

[CtlCam.DeviceData]
TwainDS=       %szTwainDSDesc%
Server=        local
STIHardwareID= %szSTIHardwareID%
ISP Module=    p1080dex.ax
CameraIndexFilename=%szCameraIndexFilename%
;for internal debugging use only
IgnoreImageDecodeErrors=0
;if 1, this informs StillImage Monitor app to create index file from camera memory
CreateIndexFile=0
;if TRUE, prevents the still image app from issuing the StartAVICreator event
SkipStartAVICreator=True
;if TRUE, prevents the still image app from issuing the StartImageEditor event
SkipStartImageEditor=True
;if 1, this informs A/V creation process to read data from index file (instead of camera)
;UseIndexFileForAVImages=1
;if 1, this informs TWAIN Data Source to read data from index file (instead of camera)
;UseIndexFileForImages=1
;AVI_NOTE - if 1, this informs TWAIN Data Source to create RAW AVIs (instead of compressed RGB)
;CreateRAWAVIs=1

[CtlCam.StiEvents]
LaunchApp      =%szLaunchApp%,%szSTILaunch.GUID%,%szStiAppName%
NewPicture     =%szNewPicture%,%szSTINewPicture.GUID%,%szStiAppName%
;;NewDownloadPics=%szDownloadPics%,%szSTIDownload.GUID%,%szStiAppName%

; ----------------------------- FILES COPY ---------------------------------

[CTL.CopyKernDrivers]
p1080stl.sys

[CTL.CopyUserSysFiles]
p1080sti.dll
p1080wia.dll
p1080avi.ax
p1080dex.ax
p1080pin.dll

[CTL.CopyTwainFiles]
p1080twn.ds
p1080twn.ini
unicows.dll
ept_engl.dll
ept_fren.dll
ept_germ.dll
ept_ital.dll
ept_japa.dll
ept_span.dll
ept_chit.dll
ept_bpor.dll
ept_dutc.dll
;ept_chs.dll

[CTL.CopyCoInstFile]

[SourceDisksNames]
1=%szDiskName%,,,

[SourceDisksFiles]
p1080stl.sys=1,,
p1080sti.dll=1,,
p1080wia.dll=1,,
p1080avi.ax=1,,
p1080twn.ds=1,,
p1080twn.ini=1,,
unicows.dll=1,,
p1080dex.ax=1,,
p1080pin.dll=1,,
ept_engl.dll=1,,
ept_fren.dll=1,,
ept_germ.dll=1,,
ept_ital.dll=1,,
ept_japa.dll=1,,
ept_span.dll=1,,
ept_chit.dll=1,,
ept_bpor.dll=1,,
ept_dutc.dll=1,,
;ept_chs.dll=1,,


;-----------------------  STRINGS DEFINITION ---------------------------------

[Strings]
;--------------------------------
; System related. Do not change.
;--------------------------------
; ** Note: only register value is case sensitive, key is not. **
SERVICE_KERNEL_DRIVER=1

; PnP should use demand start
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

MSRun                  ="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
MSRunOnce              ="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"

;-------------------------------------
; User-definable - hardware dependent
;-------------------------------------
szMfg             ="Creative Labs"
szDeviceDesc      ="Creative CardCam Value (Still Image)"

szProductName     ="Creative CardCam Value"
szConfigRegistry  ="Software\Creative Tech\Dual Mode Cameras\PD1080"
szDownloadPics    ="New Download Pictures"
szLaunchApp       ="Open Application"
szNewPicture      ="New Picture Captured"
szDiskName        ="Creative CardCam Value Driver Disk"
szStillImageDesc  ="PD1080 Still Image USD"
szStiAppName      ="PC-CAM Center"
szTwainDSDesc     ="Creative CardCam Value"
szBulkServiceName ="P1080BLK"

szSTIDevice.GUID  = "{4F221CC8-F791-45fe-94B7-B0434B7B707F}"
szSTILaunch.GUID  = "{FAA10A9D-3727-4327-9A82-C0C42A078EBD}"
szSTIDownload.GUID= "{F9926C80-20D6-11D4-83B4-00104B6DC9C2}"
szSTINewPicture.GUID= "{61127F40-E1A5-11D0-B454-00A02438AD48}"
szWIADevice.GUID  = "{0EB7BFFF-33A9-4dd7-9C93-EF709A1DFC02}"

szSTIHardwareID   = "0x41E4015"

; this specifies the filename used to store the camera memory
szCameraIndexFilename="se402sc.idx"

szBulkDriver      ="P1080Stl.sys"
szInsPlugIn       ="P1080pin.dll"


;----------------------
; Version information
;----------------------
szVersion         =1.02.01.1024  ; Vendor build 02-10-24
