;
; CoachVid.inf
; Video Capture Minidriver for Digital Camera with Coach Chipset
; Windows 2000
; Copyright (C) 2007, FotoNation
;

; ===================== Version section =======================

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Provider%
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
CatalogFile=CoachVid.cat
DriverVer=03/13/2007, 4.69.0.0

; ====================== Files section ========================

[SourceDisksNames]
;1=%InstallDisk%  ; this doesn't work on win98
1=%InstallDisk%,,,

[SourceDisksFiles]
CoachVid.sys=1
JpegCode.dll=1
CoachDlg.dll=1

[DestinationDirs]
CamVc.Files.Sys  = 10,system32\drivers
CamVc.Files.Jpg  = 11
CamVc.Files.Dlg  = 11

[CamVc.Files.Sys]
CoachVid.sys
stream.sys ; needed by 98

[CamVc.Files.Jpg]
JpegCode.dll

[CamVc.Files.Dlg]
CoachDlg.dll

; ================== Manufacturer & Models section ============

[Manufacturer]
%Mfg.Desc% = Models

[Models]
%Coach1.DevDesc% = CamVc, COACH\CAP&VID_052B&PID_1820
%Coach2.DevDesc% = CamVc, COACH\CAP&VID_052B&PID_4344

; ================== Win9x Device Install section =============

[CamVc]
Include       = ks.inf, kscaptur.inf, ksfilter.inf, dshowext.inf
Needs         = KS.Registration,KSCAPTUR.Registration,MSPCLOCK.Installation, DSHOWEXT.Registration
DelReg        = CamVc.DelReg
CopyFiles     = CamVc.Files.Sys,CamVc.Files.Jpg,CamVc.Files.Dlg
AddReg        = CamVc.AddReg,CamVc.AddReg.Jpg
UpdateInis    = CamVc.UpdateInis.Jpg

SubClass      = StillImage
DeviceType    = 3
DeviceSubType = 0x1
Capabilities  = 0x00000031
DeviceData    = CamVc.DeviceData
ICMProfiles   = "sRGB Color Space Profile.icm"

[CamVc.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,

; ================== WinNT Device Install section =============

[CamVc.NT]
Include       = ks.inf, kscaptur.inf, ksfilter.inf, dshowext.inf
Needs         = KS.Registration,KSCAPTUR.Registration.NT,MSPCLOCK.Installation, DSHOWEXT.Registration
DelReg        = CamVc.DelReg
CopyFiles     = CamVc.Files.Sys,CamVc.Files.Jpg,CamVc.Files.Dlg
AddReg        = CamVc.AddReg,CamVc.AddReg.Jpg

SubClass      = StillImage
DeviceType    = 3
DeviceSubType = 0x1
Capabilities  = 0x00000031
DeviceData    = CamVc.DeviceData
ICMProfiles   = "sRGB Color Space Profile.icm"

[CamVc.NT.Services]
AddService = %CamVc.SvcName%,0x00000002,CamVc.NT.AddService

[CamVc.NT.AddService]
DisplayName   = %CamVc.SvcDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\CoachVid.sys

[CamVc.NT.Interfaces]
AddInterface={65e8773d-8f56-11d0-a3b9-00a0c9223196},"GLOBAL",VideoCapture,

; ================= Common Device Install section =============


[CamVc.AddReg.Jpg]
HKLM,%Drivers32Key%,VIDC.JPEG,,JpegCode.dll
HKLM,%Drivers32Key%,VIDC.MJPG,,JpegCode.dll

[CamVc.UpdateInis.Jpg]
system.ini, drivers32,,"VIDC.JPEG=JpegCode.dll"
system.ini, drivers32,,"VIDC.MJPG=JpegCode.dll"


[CamVc.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={5d8ef5a3-ac13-11d2-a093-00c04f72dc3c}

[CamVc.DelReg]
HKR,,DontSuspendIfStreamsAreRunning

[CamVc.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,CoachVid.sys
HKR,,PageOutWhenUnopened,3,01
;HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,USDClass,,"{0527d1d0-88c2-11d2-82c7-00c04f8ec183}"

[VideoCapture]
AddReg=VideoCapture.AddReg

[VideoCapture.AddReg]
HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
HKR,,FriendlyName,,%CamVc.FriendlyName%
; IAMVideoCompression installed as static interface on both output pins
HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}
HKR,PinFactory\1\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}
HKR,,ExtensionDLL,,CoachDlg.dll
; Register custom VideoProcAmp property page.
; The CLSID of VideoProcAmp is {EE8C4B01-7ED1-3077-BDFC-E92FDB18E96E}, note that the lower byte must be 0x01
HKR,PageAliases,{71F96464-78F3-11d0-A18C-00A0C9118956},1,0x01,0x4B,0x8C,0xEE,0xD1,0x7E,0x77,0x30,0xBD,0xFC,0xE9,0x2F,0xDB,0x18,0xE9,0x6E
HKCR,CLSID\{EE8C4B01-7ED1-3077-BDFC-E92FDB18E96E},,,"Custom VideoProcAmp property page"
HKCR,CLSID\{EE8C4B01-7ED1-3077-BDFC-E92FDB18E96E}\InprocServer32,,,%11%\CoachDlg.dll
HKCR,CLSID\{EE8C4B01-7ED1-3077-BDFC-E92FDB18E96E}\InprocServer32,ThreadingModel,,Both
; Register custom StreamConfig property page.
; The CLSID of StreamConfig is {EE8C4B02-7ED1-3077-BDFC-E92FDB18E96E}, note that the lower byte must be 0x02
HKR,PageAliases,{71F96467-78F3-11d0-A18C-00A0C9118956},1,0x02,0x4B,0x8C,0xEE,0xD1,0x7E,0x77,0x30,0xBD,0xFC,0xE9,0x2F,0xDB,0x18,0xE9,0x6E
HKCR,CLSID\{EE8C4B02-7ED1-3077-BDFC-E92FDB18E96E},,,"Custom StreamConfig property page"
HKCR,CLSID\{EE8C4B02-7ED1-3077-BDFC-E92FDB18E96E}\InprocServer32,,,%11%\CoachDlg.dll
HKCR,CLSID\{EE8C4B02-7ED1-3077-BDFC-E92FDB18E96E}\InprocServer32,ThreadingModel,,Both


; ==================== String macro section ===================

[Strings]

; ======== Handy macro substitutions (non-localizable) ========

; Service Type 
SERVICE_KERNEL_DRIVER       = 0x1
SERVICE_FILE_SYSTEM_DRIVER  = 0x2
SERVICE_ADAPTER             = 0x4

; Driver Start Code
SERVICE_BOOT_START     = 0
SERVICE_SYSTEM_START   = 1
SERVICE_AUTO_START     = 2
SERVICE_DEMAND_START   = 3
SERVICE_DISABLED       = 4

; Error Control Level
SERVICE_ERROR_IGNORE   = 0
SERVICE_ERROR_NORMAL   = 1
SERVICE_ERROR_SEVERE   = 2
SERVICE_ERROR_CRITICAL = 3

SPSVCINST_ASSOCSERVICE = 0x00000002

; Registry Value Type (don't use on Win 98/ME)
REG_EXPAND_SZ          = 0x00020000
REG_DWORD              = 0x00010001
REG_MULTI_SZ           = 0x00010000

; ======= Private macro substitutions (non-localizable) =======
; Modification of those strings can cause incorrect installation

Drivers32Key  = "Software\Microsoft\Windows NT\CurrentVersion\Drivers32"
CamVc.SvcName = "CoachVid"
CamVc.SvcDesc = "CoachVid"

; ============== Localizable macro substitutions ==============

InstallDisk               = "DV Driver"
Provider                  = "DV Manufacturer"
CamVc.FriendlyName        = "Digital Video Camera"
Mfg.Desc                  = "DV Manufacturer"
Coach1.DevDesc = "Digital Video"
Coach2.DevDesc = "Digital Video"
