;==============================================================================
; CONNECT N3
; BDA Driver Install Script (64 bit)
; Copyright (c) 2011, TERRATEC Electronic GmbH
;------------------------------------------------------------------------------        
; History:
;------------------------------------------------------------------------------    
; 02-Mar-11 KJ device name changed to 'CONNECT N3'
; 17-Mar-11 KJ fix for directshow names
;
;------------------------------------------------------------------------------
; Notes:
;------------------------------------------------------------------------------
;
;==============================================================================

[Version]
Signature   = "$CHICAGO$"
Class       = Media
ClassGUID   = {4d36e96c-e325-11ce-bfc1-08002be10318} 
Provider    = %Provider% 
DriverVer   = 03/17/2011,1.00.07.701
CatalogFile = connect_n3.cat

[SourceDisksNames]
1 = %DiskName%,,

[SourceDisksFiles]
connect_n3.sys = 1

[DestinationDirs]
Cinergy.CopySys   = 12                  ; driver files
Cinergy.CopyDll32 = 10,SysWow64         ; 32-bit DLLs
Cinergy.CopyDll64 = 11                  ; 64-bit DLLs

[ControlFlags]
ExcludeFromSelect = *


[Manufacturer]
%Provider% = TERRATEC, NTamd64

[TERRATEC.NTamd64]
;CONNECT N3
%Cinergy.DeviceDesc% = Cinergy, USB\VID_0CCD&PID_10B5


[Cinergy.NTamd64]
Include       = ks.inf, kscaptur.inf, ksfilter.inf, bda.inf, wdmaudio.inf
Needs         = KS.Registration, KSCAPTUR.Registration.NT, BDA.Installation.NT, WDMAUDIO.Registration.NT
AddReg        = Cinergy.AddReg
CopyFiles     = Cinergy.CopySys, Cinergy.CopyDll32, Cinergy.CopyDll64
RegisterDlls  = Cinergy.RegisterDlls

[Cinergy.CopySys]
connect_n3.sys

[Cinergy.CopyDll32]

[Cinergy.CopyDll64]

[Cinergy.RegisterDlls]
;TODO: Register COM objects
;11,,Cinergy_Template32.ax,1
;11,,Cinergy_Template64.ax,1

;===============================================================
;                R e g i s t r y
;===============================================================

[Cinergy.AddReg]
HKR,,DevLoader,,*NTKERN
;HKR,,Driver,,connect_n3.sys
HKR,,NTMPDriver,,connect_n3.sys

;HKR,,OkToHibernate                 ,3,1
HKR,,PageOutWhenUnopened            ,3,1
;HKR,,DontSuspendIfStreamsAreRunning,3,1


;---------------------------------------------------------------
;                S e t t i n g s
;---------------------------------------------------------------

; LNBLOFLowBand = 9750  MHz
HKR,"DriverData","LNBLOFLowBand",0x00010001, 0x16,0x26,0x00,0x00
; LNBLOFHighBand = 10600 MHz
HKR,"DriverData","LNBLOFHighBand",0x00010001, 0x68,0x29,0x00,0x00
; LNBLOF Low/High band switch, 11700 MHz
HKR,"DriverData","LNBLOFHiLoSwitch",0x00010001, 0xb4,0x2d,0x00,0x00


; DiSEqC Selection
; 0: Normal ; 1: DiSEqC A ; 2: DiSEqC B ; 3: DiSEqC C ; 4: DiSEqC D
HKR,"DriverData","DiSEqC",0x00010001, 0x00,0x00,0x00,0x00

; LNB Power
; 0: OFF ; 1: ON
HKR,"DriverData","LNBPower",0x00010001, 0x01,0x00,0x00,0x00

; 22k Tone
; 0: ON/OFF by LNB switch frequency ; 1: OFF ; 2: ON
HKR,"DriverData","Tone",0x00010001, 0x01,0x00,0x00,0x00

; Tone and Data Burst
; 0: Tone and data burst off ; 1: Tone burst on ; 2: Data burst on
HKR,"DriverData","ToneDataBurst",0x00010001, 0x00,0x00,0x00,0x00

; TSGenSimulator
; 0:Disabled, 1:DVB-S, 2:DVB-T, 4:DVB-C, 8:ATSC 16:MCE DVB-T
HKR,"DriverData","TSGenSimulator",0x00010001, 0x00,0x00,0x00,0x00

; Device/Driver information
; SupportHWInfo (MAX 32 bytes)
HKR,"DriverData","SupportHWInfo",0x00010000, "CONNECT N3"

; Device_Name (MAX 32 bytes)
;HKR,"DriverData","Device_Name",0x00010000, "CONNECT N3"

; tuner names(MAX 128 bytes)
HKR,"DriverData","DVBSTunerName",0x00010000, %DShow.DigitalTuner%
HKR,"DriverData","DVBSCaptureName",0x00010000, %DShow.DigitalCapture%

;powersaving time:5Min
HKR,"DriverData","PowerSaveTimeOut",0x00010001, 0x96,0x00,0x00,0x00

;---------------------------------------------------------------
;                MediaCategories
;---------------------------------------------------------------
;DVB-S
HKLM,System\CurrentControlSet\Control\MediaCategories\{FF7451BA-42F1-4a9e-9908-E12406A48D6D}
HKLM,System\CurrentControlSet\Control\MediaCategories\{FF7451BA-42F1-4a9e-9908-E12406A48D6D},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{FF7451BA-42F1-4a9e-9908-E12406A48D6D},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{7969986E-A637-4e4e-8AC8-0BD9A02DFC1F}
HKLM,System\CurrentControlSet\Control\MediaCategories\{7969986E-A637-4e4e-8AC8-0BD9A02DFC1F},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{7969986E-A637-4e4e-8AC8-0BD9A02DFC1F},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{54B37042-5CED-48dd-BF4B-16FF7D6E8C81}
HKLM,System\CurrentControlSet\Control\MediaCategories\{54B37042-5CED-48dd-BF4B-16FF7D6E8C81},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{54B37042-5CED-48dd-BF4B-16FF7D6E8C81},Name,,"Antenna In Pin"



;===============================================================
;                I n t e r f a c e s
;===============================================================

[Cinergy.NTamd64.Interfaces]

AddInterface=%KSCATEGORY_BDA_RECEIVER%,%REFGUID_BDA_RECEIVER% ,BdaReceiver_Interface
AddInterface=%KSCATEGORY_BDA_TUNER%   ,%REFGUID_BDA_TUNER_S%  ,BdaTuner_Interface


;---------------------------------------------------------------
; BDA interfaces
;---------------------------------------------------------------

[BdaReceiver_Interface]
AddReg=BdaReceiver_Interface.AddReg

[BdaReceiver_Interface.AddReg]
HKR,,CLSID,,%PROXY_CAPTURE%
HKR,,FriendlyName,,%DShow.DigitalCapture%

[BdaTuner_Interface]
AddReg=BdaTuner_Interface.AddReg

[BdaTuner_Interface.AddReg]
HKR,,CLSID,,%PROXY_CAPTURE%
HKR,,FriendlyName,,%DShow.DigitalTuner%
;===============================================================
;                S e r v i c e s
;===============================================================

[Cinergy.NTamd64.Services]
AddService = TERRATECN3, 0x00000002, Cinergy.ServiceInstall

[Cinergy.ServiceInstall]
DisplayName   = %Service.FriendlyName%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\connect_n3.sys
LoadOrderGroup = Base

;===============================================================
;                S t r i n g s
;===============================================================

[Strings]
;---------------------------------------------------------------
; Non-localizable (Windows)
;---------------------------------------------------------------
; Registry types
REG_SZ                           = 0x00000000
REG_MULTI_SZ                     = 0x00010000
REG_EXPAND_SZ                    = 0x00020000
REG_DWORD                        = 0x00010001

; Service: ServiceType values
SERVICE_KERNEL_DRIVER            = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER       = 0x00000002
SERVICE_ADAPTER                  = 0x00000004
SERVICE_RECOGNIZER_DRIVER        = 0x00000008
SERVICE_WIN32_OWN_PROCESS        = 0x00000010
SERVICE_WIN32_SHARE_PROCESS      = 0x00000020
SERVICE_INTERACTIVE_PROCESS      = 0x00000100
SERVICE_INTERACTIVE_SHARE_PROCESS= 0x00000120

; Service: StartType values
SERVICE_BOOT_START               = 0x00000000
SERVICE_SYSTEM_START             = 0x00000001
SERVICE_AUTO_START               = 0x00000002
SERVICE_DEMAND_START             = 0x00000003
SERVICE_DISABLED                 = 0x00000004

; Service: ErrorControl values
SERVICE_ERROR_IGNORE             = 0x00000000
SERVICE_ERROR_NORMAL             = 0x00000001
SERVICE_ERROR_SEVERE             = 0x00000002
SERVICE_ERROR_CRITICAL           = 0x00000003

; DirectShow filter categories                                                DirectShow category name
KSCATEGORY_AUDIO                 = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER                = "{65E8773E-8F56-11D0-A3B9-00A0C9223196}" ; Audio Renderers
KSCATEGORY_TOPOLOGY              = "{DDA54A40-1E4C-11D1-A050-405705C10000}" ; Audio Mixer Devices

KSCATEGORY_VIDEO                 = "{6994AD05-93EF-11D0-A3CC-00A0C9223196}" ;

KSCATEGORY_CAPTURE               = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}" ; WDM Streaming capture Devices (audio & video)
KSCATEGORY_TVTUNER               = "{A799A800-A46D-11D0-A18C-00A02401DCD4}" ; WDM Streaming TV Tuner Devices 
KSCATEGORY_CROSSBAR              = "{A799A801-A46D-11D0-A18C-00A02401DCD4}" ; WDM Streaming Crossbar Devices
KSCATEGORY_TVAUDIO               = "{A799A802-A46D-11D0-A18C-00A02401DCD4}" ; WDM Streaming TV Audio Devices

KSCATEGORY_ENCODER               = "{19689BF6-C384-48fd-AD51-90E58C79F70B}" ; WDM Streaming Encoder Devices
KSCATEGORY_MULTIPLEXER           = "{7A5DE1D3-01A1-452c-B481-4FA2B96271E8}" ; WDM Streaming Multiplexer Devices

KSCATEGORY_BDA_RECEIVER          = "{FD0A5AF4-B41D-11D2-9C95-00C04F7971E0}" ; BDA Receiver Component
KSCATEGORY_BDA_TUNER             = "{71985F48-1CA1-11D3-9CC8-00C04F7971E0}" ; BDA Source Filters


; Proxy CLSIDs (KsProxy.ax)
PROXY_CAPTURE                    = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
PROXY_TVTUNER                    = "{266EEE40-6C63-11cf-8A03-00AA006ECB65}"
PROXY_CROSSBAR                   = "{71F96460-78F3-11D0-A18C-00A0C9118956}"
PROXY_TVAUDIO                    = "{71F96462-78F3-11D0-A18C-00A0C9118956}"


MediaCategories                  = "SYSTEM\CurrentControlSet\Control\MediaCategories"

;---------------------------------------------------------------
; Non-localizable (this driver)
;---------------------------------------------------------------
; Reference guids             
REFGUID_BDA_RECEIVER             = "{ADD1C9BA-71A8-4f73-B8A2-41E164E40BF1}"
REFGUID_BDA_TUNER_S              = "{2BC59444-39D8-49cb-ADD5-AB91AA7247AE}"

;---------------------------------------------------------------
; Localizable
;---------------------------------------------------------------

Provider                 = "TERRATEC "
DiskName                 = "TERRATEC Driver CD"

; Service strings
Service.FriendlyName     = "CONNECT N3 service"

; Device Manager
Cinergy.DeviceDesc       = "CONNECT N3"

; DirectShow filter names
DShow.DigitalCapture     = "CONNECT N3 Digital Capture"     ; KSCATEGORY_BDA_RECEIVER(BDA Receiver Component)
DShow.DigitalTuner       = "CONNECT N3 Digital Tuner"       ; KSCATEGORY_BDA_TUNER   (BDA Source Filters)


