;
; Installation inf file for DVB-T USB adapter BDA driver
; Copyright 2004, KWorld

[Version]
signature	= "$CHICAGO$"
Class		= Media
ClassGUID	= {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider	= %KWorld%
DriverVer	= 06/03/2005,2.0.0.12
CatalogFile 	= modbda2.cat


[Manufacturer]
%MfgName% = KWorld


[KWorld]
%MOD3000.DeviceDesc%	= MOD3000.Device,USB\VID_06E1&PID_A334
%MOD3000.DeviceDesc%	= MOD3000.Device,USB\VID_06E1&PID_A334&MI_00
%MOD3000.DeviceDesc%	= MOD3000.Device,USB\VID_EB2A&PID_17DF
%MOD3000.DeviceDesc%	= MOD3000.Device,USB\VID_EB2A&PID_17DF&MI_00

[DestinationDirs]
MOD3000.CopyDrivers	= 10,System32\Drivers 


[SourceDisksNames]
1 = %INSTALLATION_DISK%,,


[SourceDisksFiles]
modbda2.sys = 1


[ControlFlags]
ExcludeFromSelect	= *
ExcludeFromSelect.NT	= *


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


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


[MOD3000.Device.NT.Services]
Addservice = MODBDA2, 0x00000002, MOD3000.AddService


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


[MOD3000.CopyDrivers]
modbda2.sys


[MOD3000.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,modbda2.sys
HKR,,PageOutWhenUnopened,3,01
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"

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

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

[MOD3000.Interfaces]
AddReg	= MOD3000.Interface.AddReg

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


[Strings]
KWorld				= "KWorld"
MfgName				= "KWorld"
MOD3000.CLSID			= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED
MOD3000.DeviceDesc		= "DVB-T USB adapter"
MOD3000.FriendlyName		= "KWorld MOD3000 TV receiver"
INSTALLATION_DISK 		= "DVB-T USB2.0 Adapter Installation Disk"
KSSTRING_BdaFilter		= "{2BC59444-39D8-49cb-ADD5-AB91AA7247AE}"

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