; Copyright (c) AVerMedia All rights reserved.
;
; Installation inf file for AVerMedia A855 USB DMB-TH
;

[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
DriverVer=12/22/2007,1.0.0.19
CatalogFile=AVerLGS89.cat

[DestinationDirs]
AVerLGS89.CopyDrivers=10,System32\Drivers
AVerLGS89.CopyFiles=10,System32

[SourceDisksNames]
1=%AVerLGS89.Disc%,,,

[SourceDisksFiles]
AVerLGS89.sys=1

[Manufacturer]
%MfgName%=AVerMedia

[ControlFlags]
ExcludeFromSelect=*
ExcludeFromSelect.NT=*

[AVerMedia]
%AVerLGS89.DeviceDesc.A855% = AVerLGS89.Device,USB\VID_07ca&PID_a855

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

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

[AVerLGS89.AddService]
DisplayName    = %AVerLGS89.FriendlyName%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %10%\System32\Drivers\AVerLGS89.sys

[AVerLGS89.CopyDrivers]
AVerLGS89.sys

[AVerLGS89.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,AVerLGS89.sys
HKR,,PageOutWhenUnopened,3,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{f9ba6d3d-ad3f-4bda-8f47-59d10595b60c}
HKLM,System\CurrentControlSet\Control\MediaCategories\{f9ba6d3d-ad3f-4bda-8f47-59d10595b60c},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{f9ba6d3d-ad3f-4bda-8f47-59d10595b60c},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{8dc68d8a-b62c-4a3b-8bfa-92328019cfca}
HKLM,System\CurrentControlSet\Control\MediaCategories\{8dc68d8a-b62c-4a3b-8bfa-92328019cfca},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{8dc68d8a-b62c-4a3b-8bfa-92328019cfca},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{4e83f0b6-5365-440a-9bdf-5168fd9d6952}
HKLM,System\CurrentControlSet\Control\MediaCategories\{4e83f0b6-5365-440a-9bdf-5168fd9d6952},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{4e83f0b6-5365-440a-9bdf-5168fd9d6952},Name,,"Antenna In Pin"

HKR,"DriverData","SSEnable",       0x00010001, 0x01, 0x00, 0x00, 0x00

[AVerLGS89.Device.NT.Interfaces]
AddInterface=%GUID.TunerCatID%,%KSNAME_Filter%,AVerLGS89.Interfaces,
AddInterface=%GUID.BdaReceiverCompID%,%KSNAME_Filter%,AVerLGS89.Interfaces,
AddInterface=%GUID.BdaReceiverCtrl%,%KSNAME_Filter%,AVerLGS89.Interfaces,

[AVerLGS89.Interfaces]
AddReg=AVerLGS89.Interface.AddReg

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

[Strings]
MfgName						= "AVerMedia TECHNOLOGIES, Inc."
AVerLGS89.CLSID				= "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
AVerLGS89.Disc				= "AVerMedia DMB-TH BDA Video Capture Installation Disk"
AVerLGS89.DeviceDesc.A855	= "AVerMedia A855 USB DMB-TH"
AVerLGS89.FriendlyName		= "AVerMedia A855 BDA Digital Tuner"
KSNAME_Filter           = "{9B365890-165F-11D0-A195-0020AFD156E4}"
Plugin_BdaDevice        = "BDA Device Control Plug-in"
GUID.TunerCatID         = "{71985F48-1CA1-11d3-9CC8-00C04F7971E0}"
GUID.BdaReceiverCompID	= "{FD0A5AF4-B41D-11d2-9C95-00C04F7971E0}"
AMcatID                 = "{DA4E3DA0-D07D-11d0-BD50-00A0C911CE86}"
BDAReceivers            = "BDA Streaming Receiver Components"
MediaCategories         = "SYSTEM\CurrentControlSet\Control\MediaCategories"
Pin.BdaTransport        = "BDA Transport Stream"
GUID.BdaTransport       = "{78216A81-CFA8-493e-9711-36A61C08BD9D}"
GUID.BdaReceiverCtrl    = "{FD0A5AF3-B41D-11d2-9C95-00C04F7971E0}"

; 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

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

