;------------------------------------------------------------------------
;
;   Copyright and Disclaimer:
;
;       ---------------------------------------------------------------
;       This software is provided "as is" without warranty of any kind,
;       either expressed or implied, including but not limited to the
;       implied warranties of merchantability and/or fitness for a
;       particular purpose.
;
;       Copyright (c) 1999-2009 Hauppauge Computer Works, Inc.
;       All Rights Reserved.
;       ---------------------------------------------------------------
;
;
;   Abstract:
;
;       BDA tuner/demod driver inf file for DVB-T NOVA-USB2-T
;       Firmware loader driver inf file for DVB-T NOVA-USB2-T
;
;------------------------------------------------------------------------

[Version]
signature	= "$CHICAGO$"
Class		= Media
ClassGUID	= {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider	= %MfgName%
DriverVer=01/05/2009,1.26.27005
CatalogFile.ntx86 = hcwu2dtd.cat


[Manufacturer]
"Hauppauge"=Hauppauge

[Hauppauge]
;%HCWLOADER.DeviceDesc%=HCWLOADER.Device,USB\VID_04B4&PID_8613	; FX2 hardware, virgin EEPROM
%HCWLOADER.DeviceDesc%=HCWLOADER.Device,USB\VID_2040&PID_9300	; Soho firmware loader
%HCWUSB2T.DeviceDesc% = HCWUSB2T.Device,USB\VID_2040&PID_9301   ; Soho BDA support


[DestinationDirs]
HCWUSB2T.CopyDrivers = 10,System32\Drivers 
HCWLOADER.Files.Ext  = 10,System32\drivers


[SourceDisksNames]
1 = %DiskName%,,,Driver93

[SourceDisksFiles]
; no files to copy

;[NocopySourceDisksFiles]
hcwu2dtd.sys=1
hcwu2dtl.sys=1

[DefaultDestFiles]
; nothing to copy

;[NocopyDefaultDestFiles]

[ControlFlags]
ExcludeFromSelect	= *
ExcludeFromSelect.NT	= *

[HCWUSB2T.Device.NT]
Include    = ks.inf, kscaptur.inf, bda.inf
Needs      = KS.Registration.NT, KSCAPTUR.Registration.NT, BDA.Installation.NT
AddReg     = HCWUSB2T.AddReg
CopyFiles  = HCWUSB2T.CopyDrivers,DefaultDestFiles


[HCWUSB2T.Device.NT.Services]
Addservice = HCWU2DTD, 0x00000002, HCWUSB2T.AddService


[HCWUSB2T.AddService]
DisplayName    = %HCWUSB2T.FriendlyName%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\hcwu2dtd.sys
LoadOrderGroup = Base


[HCWUSB2T.CopyDrivers]
hcwu2dtd.sys

[HCWUSB2T.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,hcwu2dtd.sys
HKR,,PageOutWhenUnopened,3,01

;HKR,"DriverData","ForceBW",0x00010001, 0x06,0x00,0x00,0x00
HKR,"DriverData","TunerRemap",0x00010001, 0x01,0x00,0x00,0x00

HKLM,System\CurrentControlSet\Control\MediaCategories\{681f4af0-30a2-48f4-b4af-d18d022c3610}
HKLM,System\CurrentControlSet\Control\MediaCategories\{681f4af0-30a2-48f4-b4af-d18d022c3610},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{681f4af0-30a2-48f4-b4af-d18d022c3610},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{71c7a84e-89dd-4b73-916d-1729efe5189b}
HKLM,System\CurrentControlSet\Control\MediaCategories\{71c7a84e-89dd-4b73-916d-1729efe5189b},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{71c7a84e-89dd-4b73-916d-1729efe5189b},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{dbda19fb-cacc-47a9-9792-a1a8ce0248b5}
HKLM,System\CurrentControlSet\Control\MediaCategories\{dbda19fb-cacc-47a9-9792-a1a8ce0248b5},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{dbda19fb-cacc-47a9-9792-a1a8ce0248b5},Name,,"Antenna In Pin"

HKLM,Software\Hauppauge\hcwTVWnd\DVBS, "BDA Receiver Component",0x4000,"Hauppauge Nova USB2 DVB-T TV Receiver"
HKLM,Software\Hauppauge\hcwTVWnd\DVBS, "BDA Source Filter",0x4000,""
HKLM,Software\Hauppauge\hcwTVWnd\DVBS, "BDA Network Provider",0x4000,"Microsoft DVBT Network Provider"

HKLM,Software\Hauppauge\IR, "IRPort",0x00014001,0x34,0x00,0x00,0x00
HKLM,Software\Hauppauge\IR, "I2Ctype",0x00014001,0x1a,0x00,0x00,0x00

; save our driver version for reference
HKLM,Software\Hauppauge\WDM, "Version",0x4000,"1.26.27005"


[HCWUSB2T.Device.NT.Interfaces]
AddInterface	= %KSCATEGORY_BDATUNER%,	%KSSTRING_BdaFilter%, HCWUSB2T.Interfaces,
AddInterface	= %KSCATEGORY_BDARECEIVER%,	%KSSTRING_BdaFilter%, HCWUSB2T.Interfaces,

[HCWUSB2T.Interfaces]
AddReg	= HCWUSB2T.Interface.AddReg

[HCWUSB2T.Interface.AddReg]
HKR,,CLSID,,%HCWUSB2T.CLSID%
HKR,,FriendlyName,,%HCWUSB2T.FriendlyName%

[HCWLOADER.Files.Ext]
hcwu2dtl.sys

[HCWLOADER.Device.NT]
AddReg=HCWLOADER.AddReg
CopyFiles=HCWLOADER.Files.Ext

[HCWLOADER.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,hcwu2dtl.sys


[HCWLOADER.Device.NT.Services]
AddService = HCWU2DTL,0x00000002,HCWLOADER.ServiceInstall

[HCWLOADER.ServiceInstall]
DisplayName 	= %HCWLOADER.DeviceDesc%
ServiceType   	= %SERVICE_KERNEL_DRIVER%
StartType     	= %SERVICE_DEMAND_START%
ErrorControl  	= %SERVICE_ERROR_NORMAL%
ServiceBinary 	= %12%\hcwu2dtl.sys


[Strings]
MfgName			= "Hauppauge Computer Works, Inc."
HCWUSB2T.CLSID		= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED
HCWUSB2T.DeviceDesc	= "Hauppauge Nova-USB2-T DVB-T Adapter"
HCWUSB2T.FriendlyName	= "Hauppauge Nova USB2 DVB-T TV Receiver"
DiskName 		= "Hauppauge Nova-USB2-T Driver Installation Disk"
KSSTRING_BdaFilter	= "{240388b4-a949-4b11-b431-96f33113198e}"

HCWLOADER.DeviceDesc="Hauppauge Nova-USB2-T Adapter Firmware Loader"

;
; The following items should be moved to KS_registration - TCP
;
KSCATEGORY_BDATUNER     = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
KSCATEGORY_BDARECEIVER	= "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"	
MediaCategories         = "SYSTEM\CurrentControlSet\Control\MediaCategories"
    

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

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

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

; Characteristic flags
NCF_VIRTUAL                 = 0x0001
NCF_WRAPPER                 = 0x0002
NCF_PHYSICAL                = 0x0004
NCF_HIDDEN                  = 0x0008
NCF_NO_SERVICE              = 0x0010
NCF_NOT_USER_REMOVABLE      = 0x0020
NCF_HAS_UI                  = 0x0080
NCF_MODEM                   = 0x0100

; Registry types
REG_MULTI_SZ                = 0x10000
REG_EXPAND_SZ               = 0x20000
REG_DWORD                   = 0x10001

; Win9x Compatible Types
REG_BINARY                  = 17
REG_SZ                      = 0

; Service install flags
SPSVCINST_TAGTOFRONT        = 0x1
SPSVCINST_ASSOCSERVICE      = 0x2
