
[Version]
signature="$CHICAGO$"
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Msft%
LayoutFile=Layout.inf
DriverVer=02/05/2009,1.6.20.106

; F i l e   c o p y i n g   s e c t i o n s (where the files go to).
;
[DestinationDirs]
Clement.CopyDrivers=10,System32\Drivers  ; ie  \windows\system32\drivers
; Clement.CopyInf=10,Inf                   ; ie  \windows\Inf


[Manufacturer]
%MfgName%=LY,NTAMD64

[ControlFlags]
ExcludeFromSelect=*
ExcludeFromSelect.NT=*


; =================== Generic ==================================

[LY]
%Clement.DeviceDesc%=Clement.Device,USB\VID_3344&PID_1120
%Clement.DeviceDesc%=Clement.Device,USB\VID_3344&PID_1122
%Clement.DeviceDesc%=Clement.Device,USB\VID_3344&PID_22A0

[LY.NTAMD64]
%Clement.DeviceDesc%=Clement.Device,USB\VID_3344&PID_1120
%Clement.DeviceDesc%=Clement.Device,USB\VID_3344&PID_1122
%Clement.DeviceDesc%=Clement.Device,USB\VID_3344&PID_22A0

[Clement.Device]
Include    = ks.inf, kscaptur.inf,ksfilter.inf, wdmaudio.inf, bda.inf
Needs      = KS.Registration, KSCAPTUR.Registration,MSPCLOCK.Installation, WDMAUDIO.Registration, BDA.Registration, bda.Installation
AddReg     = Clement.AddReg
CopyFiles  = Clement.CopyDrivers
; KnownFiles = Clement.KnownFiles

[Clement.Device.NT]
Include    = ks.inf, kscaptur.inf,ksfilter.inf, wdmaudio.inf, bda.inf
Needs      = KS.Registration, KSCAPTUR.Registration.NT,MSPCLOCK.Installation, WDMAUDIO.Registration, BDA.Registration, bda.Installation.NT
AddReg     = Clement.AddReg
CopyFiles  = Clement.CopyDrivers

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

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

[Clement.CopyDrivers]
US280D.sys

[Clement.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,US280D.sys
HKR,,PageOutWhenUnopened,3,01
HKLM,System\CurrentControlSet\Control\MediaCategories\{1A9333B6-3704-4b18-A6DD-E1979FC56970}
HKLM,System\CurrentControlSet\Control\MediaCategories\{1A9333B6-3704-4b18-A6DD-E1979FC56970},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{1A9333B6-3704-4b18-A6DD-E1979FC56970},Name,,"Tuner Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{F65394A2-A018-4307-8D12-35AA494A406F}
HKLM,System\CurrentControlSet\Control\MediaCategories\{F65394A2-A018-4307-8D12-35AA494A406F},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{F65394A2-A018-4307-8D12-35AA494A406F},Name,,"Demodulator Node"
HKLM,System\CurrentControlSet\Control\MediaCategories\{870E4D6F-77E7-4c40-ADE3-BEF8708A9D52}
HKLM,System\CurrentControlSet\Control\MediaCategories\{870E4D6F-77E7-4c40-ADE3-BEF8708A9D52},Display,0x00010001,0
HKLM,System\CurrentControlSet\Control\MediaCategories\{870E4D6F-77E7-4c40-ADE3-BEF8708A9D52},Name,,"Antenna In Pin"

[Clement.Device.Interfaces]
AddInterface=%GUID.TunerCatID%,%KSNAME_Filter%,Clement.Interfaces,
AddInterface=%GUID.DeviceCtrl%,%DeviceControl_Filter%,LYBdaDeviceControl.Interfaces,

[Clement.Device.NT.Interfaces]
AddInterface=%GUID.TunerCatID%,%KSNAME_Filter%,Clement.Interfaces,
AddInterface=%GUID.DeviceCtrl%,%DeviceControl_Filter%,LYBdaDeviceControl.Interfaces,

[Clement.Interfaces]
AddReg=Clement.Interface.AddReg

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

[LYBdaDeviceControl.Interfaces]
AddReg=LYBdaDeviceControl.Interface.AddReg

[LYBdaDeviceControl.Interface.AddReg]
HKR,,CLSID,,%Clement.CLSID%
HKR,,FriendlyName,,%LYBdaDeviceControl.FriendlyName%

[Strings]
Msft                = "LME Software Team"
MfgName             = "Leaguer MicroElectronics (LME)"
Clement.CLSID      ="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"  ; KsProxy.ax's ID, REQUIRED

Clement.DeviceDesc = "LME_PCTV_DVBS_LG"
Clement.FriendlyName = "LME_PCTV_DVBS_LG"

;Clement.FriendlyName = "L.M.E PCTV BDA(22A0)"

Clement.Tuner      = "LY.Tuner(22A0)"
LYBdaDeviceControl.FriendlyName = "LY Device Control"
KSNAME_Filter         = "{9B365890-165F-11D0-A195-0020AFD156E4}"
DeviceControl_Filter = "{0296E039-4771-430a-934E-ECE85E452A40}"
;
; The following items should be moved to KS_registration - TCP
;
Plugin_BdaDevice        ="BDA Device Control Plug-in"
GUID.TunerCatID         ="{71985F48-1CA1-11d3-9CC8-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}"
GUID.DeviceCtrl		="{CC7BFB46-F175-11d1-A392-00E0291F3959}"

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

;***********************************************************************
; Kingkonger China
;***********************************************************************