;----------------------------------------------------------------------- TERRATEC (CINERGY 400 USB)
[Version]
Signature                         =                            "$CHICAGO$"	; FOR 95 & NT SYSTEMS
Class                             =                                 MEDIA	; MEDIA CLASS
ClassGUID                         = {4D36E96C-E325-11CE-BFC1-08002BE10318}	; MEDIA CLASS GUID
Provider                          =                        %PROVIDER.NAME%	; PROVIDER NAME
LayoutFile                        =  LAYOUT.INF, LAYOUT1.INF, LAYOUT2.INF	;
DriverVer                         =                  04/24/2007, 1.0.0.57	; INF VERSION
CatalogFile                       =                        CINERGY400.CAT	;
[Manufacturer]
%MANUFACTURER.NAME%               =                        ENTRY, NTamd64	; ASSIGN MODELS SECTION
[ControlFlags]
ExcludeFromSelect                 =                                     *	; 
[DestinationDirs]
DefaultDestDir                    =                                    11	; C:\WINDOWS\SYSTEM32
CINERGY400.CopyApplications       =                                 16409	; ..\DESKTOP
CINERGY400.CopyPropertyPages.X86  =                                    11	; C:\WINDOWS\SYSTEM32
CINERGY400.CopyPropertyPages.X64  =                          10, SYSWOW64	; C:\WINDOWS\SYSWOW64
CINERGY400.CopyDrivers            =                  10, SYSTEM32\DRIVERS	; C:\WINDOWS\SYSTEM32\DRIVERS
[SourceDisksNames]
1                                 =                            %DISK.NAME%	;
[SourceDisksFiles]
CINERGY400.X86.SYS                =                                     1	;
CINERGY400.X64.SYS                =                                     1	;
CINERGY400.X86.AX                 =                                     1	;
CINERGY400.X64.AX                 =                                     1	;

;--------------------------------------------------------------------------------------- MAIN ENTRY
[ENTRY]
%PRODUCT.NAME% = CINERGY400.X86,  USB\VID_0CCD&PID_003B&MI_00 ; TERRATEC (CINERGY 400 USB)
%PRODUCT.NAME% = CINERGY400.X86, USB2\VID_0CCD&PID_003B&MI_00

[ENTRY.NTamd64]
%PRODUCT.NAME% = CINERGY400.X64,  USB\VID_0CCD&PID_003B&MI_00 ; TERRATEC (CINERGY 400 USB)
%PRODUCT.NAME% = CINERGY400.X64, USB2\VID_0CCD&PID_003B&MI_00

[CINERGY400.X86]
Include       = KS.INF, KSCAPTUR.INF, BDA.INF
Needs         = KS.REGISTRATION, KSCAPTUR.REGISTRATION, BDA.REGISTRATION, BDA.INSTALLATION
AddReg        = CINERGY400.X86.AddReg, CINERGY400.AddReg
CopyFiles     = CINERGY400.CopyDrivers, CINERGY400.CopyPropertyPages.X86, CINERGY400.CopyApplications

[CINERGY400.X86.NT]
Include       = KS.INF, KSCAPTUR.INF, BDA.INF
Needs         = KS.REGISTRATION, KSCAPTUR.REGISTRATION.NT, BDA.REGISTRATION.NT, BDA.INSTALLATION.NT
AddReg        = CINERGY400.X86.AddReg, CINERGY400.AddReg
CopyFiles     = CINERGY400.CopyDrivers, CINERGY400.CopyPropertyPages.X86, CINERGY400.CopyApplications

[CINERGY400.X64]
Include       = KS.INF, KSCAPTUR.INF, BDA.INF
Needs         = KS.REGISTRATION, KSCAPTUR.REGISTRATION, BDA.REGISTRATION, BDA.INSTALLATION
AddReg        = CINERGY400.X64.AddReg, CINERGY400.AddReg
CopyFiles     = CINERGY400.CopyDrivers, CINERGY400.CopyPropertyPages.X86, CINERGY400.CopyPropertyPages.X64, CINERGY400.CopyApplications

[CINERGY400.X64.NT]
Include       = KS.INF, KSCAPTUR.INF, BDA.INF
Needs         = KS.REGISTRATION, KSCAPTUR.REGISTRATION.NT, BDA.REGISTRATION.NT, BDA.INSTALLATION.NT
AddReg        = CINERGY400.X64.AddReg, CINERGY400.AddReg
CopyFiles     = CINERGY400.CopyDrivers, CINERGY400.CopyPropertyPages.X86, CINERGY400.CopyPropertyPages.X64, CINERGY400.CopyApplications

; ------------------------------------------------------------------------------ HARDWARE RELATIONS
[CINERGY400.X86.HW]

[CINERGY400.X86.NT.HW]

[CINERGY400.X64.HW]

[CINERGY400.X64.NT.HW]

; -------------------------------------------------------------------------------------- INTERFACES
[CINERGY400.X86.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%,  %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_VIDEO%,    %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_CROSSBAR%, %ANALOGX.CROXBAR.FILTER.GUID%, CINERGY400.InterfaceB
AddInterface = %KSCATEGORY_TVTUNER%,  %ANALOGX.TVTUNER.FILTER.GUID%, CINERGY400.InterfaceC
AddInterface = %KSCATEGORY_TVAUDIO%,  %ANALOGX.TVAUDIO.FILTER.GUID%, CINERGY400.InterfaceD

[CINERGY400.X86.NT.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%,  %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_VIDEO%,    %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_CROSSBAR%, %ANALOGX.CROXBAR.FILTER.GUID%, CINERGY400.InterfaceB
AddInterface = %KSCATEGORY_TVTUNER%,  %ANALOGX.TVTUNER.FILTER.GUID%, CINERGY400.InterfaceC
AddInterface = %KSCATEGORY_TVAUDIO%,  %ANALOGX.TVAUDIO.FILTER.GUID%, CINERGY400.InterfaceD

[CINERGY400.X64.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%,  %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_VIDEO%,    %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_CROSSBAR%, %ANALOGX.CROXBAR.FILTER.GUID%, CINERGY400.InterfaceB
AddInterface = %KSCATEGORY_TVTUNER%,  %ANALOGX.TVTUNER.FILTER.GUID%, CINERGY400.InterfaceC
AddInterface = %KSCATEGORY_TVAUDIO%,  %ANALOGX.TVAUDIO.FILTER.GUID%, CINERGY400.InterfaceD

[CINERGY400.X64.NT.Interfaces]
AddInterface = %KSCATEGORY_CAPTURE%,  %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_VIDEO%,    %ANALOGX.CAPTURE.FILTER.GUID%, CINERGY400.InterfaceA
AddInterface = %KSCATEGORY_CROSSBAR%, %ANALOGX.CROXBAR.FILTER.GUID%, CINERGY400.InterfaceB
AddInterface = %KSCATEGORY_TVTUNER%,  %ANALOGX.TVTUNER.FILTER.GUID%, CINERGY400.InterfaceC
AddInterface = %KSCATEGORY_TVAUDIO%,  %ANALOGX.TVAUDIO.FILTER.GUID%, CINERGY400.InterfaceD

[CINERGY400.InterfaceA]
AddReg = CINERGY400.InterfaceA.AddReg

[CINERGY400.InterfaceA.AddReg]
HKR, , FriendlyName, , %PRODUCT.ANALOGX.CAPTURE.NAME%
HKR, , CLSID, , %KSPROXY.CLSID%

[CINERGY400.InterfaceB]
AddReg = CINERGY400.InterfaceB.AddReg

[CINERGY400.InterfaceB.AddReg]
HKR, , FriendlyName, , %PRODUCT.ANALOGX.CROSSBAR.NAME%
HKR, , CLSID, , %KSXBAR.CLSID%

[CINERGY400.InterfaceC]
AddReg = CINERGY400.InterfaceC.AddReg

[CINERGY400.InterfaceC.AddReg]
HKR, , FriendlyName, , %PRODUCT.ANALOGX.TVTUNER.NAME%
HKR, , CLSID, , %KSTVTUNE.CLSID%

[CINERGY400.InterfaceD]
AddReg = CINERGY400.InterfaceD.AddReg

[CINERGY400.InterfaceD.AddReg]
HKR, , FriendlyName, , %PRODUCT.ANALOGX.TVAUDIO.NAME%
HKR, , CLSID, , %KSTVAUDIO.CLSID%

; ---------------------------------------------------------------------------------------- SERVICES
[CINERGY400.X86.NT.Services] 
AddService = CINERGY400.X86, 0x00000002, CINERGY400.X86.NT.ServiceA

[CINERGY400.X86.NT.ServiceA]
DisplayName   = %SERVICE.NAME.X86%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\SYSTEM32\DRIVERS\CINERGY400.X86.SYS

[CINERGY400.X64.NT.Services] 
AddService = CINERGY400.X64, 0x00000002, CINERGY400.X64.NT.ServiceA

[CINERGY400.X64.NT.ServiceA]
DisplayName   = %SERVICE.NAME.X64%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\SYSTEM32\DRIVERS\CINERGY400.X64.SYS

; -------------------------------------------------------------------------------------- COPY FILES
[CINERGY400.CopyDrivers]
CINERGY400.X86.SYS, , , 0x00000004
CINERGY400.X64.SYS, , , 0x00000004

[CINERGY400.CopyPropertyPages.X86]
CINERGY400.X86.AX , , , 0x00000004
CINERGY400.X64.AX , , , 0x00000004

[CINERGY400.CopyPropertyPages.X64]
CINERGY400.X86.AX , , , 0x00000004
CINERGY400.X64.AX , , , 0x00000004

[CINERGY400.CopyApplications]

; ---------------------------------------------------------------------------------------- REGISTRY
[CINERGY400.X86.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,CINERGY400.X86.SYS
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{0527D1D0-88C2-11D2-82C7-00C04F8EC183}"
HKR,,PageOutWhenUnopened,3,01

; ICustomProperty
;
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, , , %CUSTOM.PROPERTY.INTERFACE.NAME%
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\InprocServer32, , , CINERGY400.X86.AX
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\InprocServer32, ThreadingModel, , Both
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, , , %CUSTOM.PROPERTY.INTERFACE.NAME%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, IID, 1, 9F,20,E5,D1, FD,68, 29,45, 0xBE, 0xE0, 0x5E, 0x7A, 0x1F, 0x47, 0x92, 0x04

; CCustomPropertyPage
;
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}, , , %CUSTOM.PROPERTY.PAGE.NAME%
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}\InprocServer32, , , CINERGY400.X86.AX
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}\InprocServer32, ThreadingModel, , Both
HKLM,System\CurrentControlSet\Control\MediaSets\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\PropertyPages\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}, , , %CUSTOM.PROPERTY.PAGE.NAME%

[CINERGY400.X64.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,CINERGY400.X64.SYS
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{0527D1D0-88C2-11D2-82C7-00C04F8EC183}"
HKR,,PageOutWhenUnopened,3,01

; ICustomProperty
;
HKCR,Wow6432Node\CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, , , %CUSTOM.PROPERTY.INTERFACE.NAME%
HKCR,Wow6432Node\CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\InprocServer32, , , CINERGY400.X86.AX
HKCR,Wow6432Node\CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\InprocServer32, ThreadingModel, , Both
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, , , %CUSTOM.PROPERTY.INTERFACE.NAME%
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\InprocServer32, , , CINERGY400.X64.AX
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\InprocServer32, ThreadingModel, , Both
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, , , %CUSTOM.PROPERTY.INTERFACE.NAME%
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}, IID, 1, 9F,20,E5,D1, FD,68, 29,45, 0xBE, 0xE0, 0x5E, 0x7A, 0x1F, 0x47, 0x92, 0x04

; CCustomPropertyPage
;
HKCR,Wow6432Node\CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}, , , %CUSTOM.PROPERTY.PAGE.NAME%
HKCR,Wow6432Node\CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}\InprocServer32, , , CINERGY400.X86.AX
HKCR,Wow6432Node\CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}\InprocServer32, ThreadingModel, , Both
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}, , , %CUSTOM.PROPERTY.PAGE.NAME%
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}\InprocServer32, , , CINERGY400.X64.AX
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}\InprocServer32, ThreadingModel, , Both
HKLM,System\CurrentControlSet\Control\MediaSets\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}\PropertyPages\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}, , , %CUSTOM.PROPERTY.PAGE.NAME%

[CINERGY400.AddReg]
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{6F814BE9-9AF6-43CF-9249-C0345A010004},Name,0,"Video Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{6F814BE9-9AF6-43CF-9249-C0345A010004},Display,1,00,00,00,00
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{6F814BE9-9AF6-43CF-9249-C0345A010104},Name,0,"Audio Capture"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{6F814BE9-9AF6-43CF-9249-C0345A010104},Display,1,00,00,00,00
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{6F814BE9-9AF6-43CF-9249-C0345A010204},Name,0,"Analog Audio In"
HKLM,SYSTEM\CurrentControlSet\Control\MediaCategories\{6F814BE9-9AF6-43CF-9249-C0345A010204},Display,1,00,00,00,00

HKR,,AnalogVideoProcAmpBrightnessProperty,     0x00010001,0x00000080 ; 0x80 = 128 (0 ~ 255)
HKR,,AnalogVideoProcAmpContrastProperty,       0x00010001,0x000000C7 ; 0xC7 = 199 (0 ~ 255)
HKR,,AnalogVideoProcAmpHueProperty,            0x00010001,0x00000080 ; 0x80 = 128 (0 ~ 255)
HKR,,AnalogVideoProcAmpSaturationProperty,     0x00010001,0x000000C0 ; 0xC0 = 192 (0 ~ 255)
HKR,,AnalogVideoProcAmpSharpnessProperty,      0x00010001,0x00000020 ; 0x20 =  32 (0 ~ 255)
HKR,,AnalogCrossbarVideoInputProperty,         0x00010001,0x00000000 ; 0 = COMPOSITE, 1 = S-VIDEO / 2 = TV TUNER
HKR,,AnalogCrossbarAudioInputProperty,         0x00010001,0x00000003 ; 3 = LINE IN / 4 = TV AUDIO
HKR,,AnalogVideoDecoderStandardProperty,       0x00010001,0x00000010 ; 1 = NTSC M / 16 = PAL B
HKR,,AnalogTunerStandardProperty,              0x00010001,0x00000010 ; 1 = NTSC M / 16 = PAL B
HKR,,CustomAnalogVideoDeinterlaceTypeProperty, 0x00010001,0x00000001 ; 0 = BOB / 1 = WEAVE / 2 = LOW MOTION / 3 = HIGH MOTION
HKR,,CustomAnalogAudioStereoSystemProperty,    0x00010001,0x00000000 ; 0 = A2 / 1 = NICAM / 2 = BTSC / 3 = EIAJ
HKR,,CustomUsbSelectiveSuspendEnableProperty,  0x00010001,0x00000000 ; 0 = DISBALE / 1 = ENABLE
HKR,,CustomDeviceInfoDirectoryProperty, ,     "\??\%10%\CINERGY400\"

; --------------------------------------------------------------------------------------- UNINSTALL
[CINERGY400.NT.Remove]
DelReg   = CINERGY400.DelReg
DelFiles = CINERGY400.CopyDrivers, CINERGY400.CopyPropertyPages.X86, CINERGY400.CopyPropertyPages.X64, CINERGY400.CopyApplications

[CINERGY400.NT.Remove.Services] 
DelService = CINERGY400.X86, 0x00000200
DelService = CINERGY400.X64, 0x00000200

[CINERGY400.DelReg]
HKCR,Wow6432Node\CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}
HKCR,Wow6432Node\CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}
HKCR,CLSID\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}
HKCR,CLSID\{15E3F6CE-F3DD-454A-8DEA-E4A380FCCB04}
HKLM,System\CurrentControlSet\Control\MediaInterfaces\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}
HKLM,System\CurrentControlSet\Control\MediaSets\{D1E5209F-68FD-4529-BEE0-5E7A1F479204}

; --------------------------------------------------------------------------------------- RESOURCES
[Strings]
PRODUCT.NAME                      = "Cinergy 400 USB"
PRODUCT.ANALOGX.CAPTURE.NAME      = "Cinergy 400 USB, Capture"
PRODUCT.ANALOGX.CROSSBAR.NAME     = "Cinergy 400 USB, Crossbar"
PRODUCT.ANALOGX.TVAUDIO.NAME      = "Cinergy 400 USB, TVAudio"
PRODUCT.ANALOGX.TVTUNER.NAME      = "Cinergy 400 USB, TVTuner"
CUSTOM.PROPERTY.INTERFACE.NAME    = "Cinergy 400 USB, Custom Property Interface"
CUSTOM.PROPERTY.PAGE.NAME         = "Cinergy 400 USB, Custom Property Page"
SERVICE.NAME.X86                  = "Cinergy 400 USB, Service X86"
SERVICE.NAME.X64                  = "Cinergy 400 USB, Service X64"
MANUFACTURER.NAME                 = "TERRATEC ELECTRONIC GMBH"
PROVIDER.NAME                     = "TERRATEC ELECTRONIC GMBH"
DISK.NAME                         = "TERRATEC DRIVER CD-ROM"
ANALOGX.CAPTURE.FILTER.GUID       = "{6F814BE9-9AF6-43CF-9249-C0345A000204}"	; 
ANALOGX.CROXBAR.FILTER.GUID       = "{6F814BE9-9AF6-43CF-9249-C0345A000404}"	; 
ANALOGX.TVTUNER.FILTER.GUID       = "{6F814BE9-9AF6-43CF-9249-C0345A000504}"	; 
ANALOGX.TVAUDIO.FILTER.GUID       = "{6F814BE9-9AF6-43CF-9249-C0345A000604}"	; 
KSPROXY.CLSID                     = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"	; KSPROXY.AX
KSXBAR.CLSID                      = "{71F96460-78F3-11D0-A18C-00A0C9118956}"	; KSXBAR.AX
KSTVAUDIO.CLSID                   = "{71F96462-78F3-11D0-A18C-00A0C9118956}"	; KSXBAR.AX
KSTVTUNE.CLSID                    = "{266EEE40-6C63-11CF-8A03-00AA006ECB65}"	; KSTVTUNE.AX
KSCATEGORY_CAPTURE                = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO                  = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_CROSSBAR               = "{A799A801-A46D-11D0-A18C-00A02401DCD4}"
KSCATEGORY_TVAUDIO                = "{A799A802-A46D-11D0-A18C-00A02401DCD4}"
KSCATEGORY_TVTUNER                = "{A799A800-A46D-11D0-A18C-00A02401DCD4}"
SERVICE_KERNEL_DRIVER             = 1
SERVICE_DEMAND_START              = 3
SERVICE_ERROR_NORMAL              = 1
SERVICE_ERROR_IGNORE              = 0
