;*******************************************************************************
;*
;*  File: usbvcom.inf
;*
;*  Description: Installs multi-interfaces serial port driver 
;*               for LeadCore only(Win2K/XP/Vista/Windows7).
;*
;*  Copyright (C) 2010 LeadCore Technology Co,.Ltd
;*
;*******************************************************************************

[version]
signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%Pro%
CatalogFile=usbvcom.cat
DriverVer=11/28/2012,1.17.7.4

[Manufacturer]
%Pro% = USBVCOM, NTamd64

[USBVCOM]
%USB\Vid_18d1&Pid_1810&MI_02.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_1810&MI_02
%USB\Vid_18d1&Pid_1810&MI_03.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_1810&MI_03

%USB\Vid_18d1&Pid_181a&MI_02.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181a&MI_02
%USB\Vid_18d1&Pid_181a&MI_03.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181a&MI_03

%USB\Vid_18d1&Pid_181b&MI_01.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_01
%USB\Vid_18d1&Pid_181b&MI_02.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_02
%USB\Vid_18d1&Pid_181b&MI_03.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_03
%USB\Vid_18d1&Pid_181b&MI_05.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_05

[USBVCOM.NTamd64]
%USB\Vid_18d1&Pid_1810&MI_02.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_1810&MI_02
%USB\Vid_18d1&Pid_1810&MI_03.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_1810&MI_03

%USB\Vid_18d1&Pid_181a&MI_02.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181a&MI_02
%USB\Vid_18d1&Pid_181a&MI_03.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181a&MI_03

%USB\Vid_18d1&Pid_181b&MI_01.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_01
%USB\Vid_18d1&Pid_181b&MI_02.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_02
%USB\Vid_18d1&Pid_181b&MI_03.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_03
%USB\Vid_18d1&Pid_181b&MI_05.DeviceDesc% = ComPort, USB\Vid_18d1&Pid_181b&MI_05

[ComPort.NT]
AddReg    = ComPort.NT.AddReg
CopyFiles = ComPort.NT.Copy

[ComPort.NTamd64]
AddReg    = ComPort.NT.AddReg
CopyFiles = ComPort.NTamd64.Copy

[ComPort.NT.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,LC1810TEMP.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[ComPort.NT.Services]
AddService = %ServiceName%, 0x00000002, Usbvcom_Service_Inst

[ComPort.NTamd64.Services]
AddService = %ServiceName%, 0x00000002, Usbvcom_Service_Inst

[Usbvcom_Service_Inst]
;DisplayName    = %ServiceDesc%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_SYSTEM_START (this driver may do detection)
ErrorControl   = 1               ; SERVICE_ERROR_IGNORE
ServiceBinary  = %10%\system32\drivers\LC1810Port.sys
LoadOrderGroup = Base
AddReg         = Usbvcom_Service_Inst.AddReg

[Usbvcom_Service_Inst.AddReg]
HKR,,"DriverType",0x00010001,1
HKR,,"LogFlags",0x00010001,0
HKR,,"ResetInputEnable",0x00010001,1
HKR,,"SSPMEnabled",0x00010001,0

[ComPort_Uninstall]
Delfiles = ComPort.DelFile

[ComPort.DelFile]
LC1810Port.sys,,,0x00000001

[ComPort_Uninstall.Services]
DelService = %ServiceName%, 0x200

[DestinationDirs]
ComPort.NTamd64.Copy = 10,system32\drivers
ComPort.NT.Copy      = 10,system32\drivers
ComPort.DelFile      = 10,system32\drivers

[SourceDisksNames]
1 = %Pro.Disk%,,,

[SourceDisksFiles]
usbvcom_x86.sys   = 1

[SourceDisksFiles.amd64]
usbvcom_amd64.sys = 1

[ComPort.NT.Copy]
LC1810Port.sys, usbvcom_x86.sys,,COPYFLG_OVERWRITE_OLDER_ONLY

[ComPort.NTamd64.Copy]
LC1810Port.sys, usbvcom_amd64.sys,,COPYFLG_OVERWRITE_OLDER_ONLY

[Strings]
Pro              = "LeadCore Tech Corporation"
Pro.Disk         = "LeadCoreTech Installation Media"

ServiceName      = "LC1810_VCOM_SERVICE"
;ServiceDesc      = "LC1810 VCOM Port Interface driver DS"

USB\Vid_18d1&Pid_1810&MI_02.DeviceDesc = "LeadCore AT Interface"
USB\Vid_18d1&Pid_1810&MI_03.DeviceDesc = "LeadCore VCOM"

USB\Vid_18d1&Pid_181a&MI_02.DeviceDesc = "LeadCore AT Interface"
USB\Vid_18d1&Pid_181a&MI_03.DeviceDesc = "LeadCore VCOM"

USB\Vid_18d1&Pid_181b&MI_01.DeviceDesc = "LeadCore AT Interface"
USB\Vid_18d1&Pid_181b&MI_02.DeviceDesc = "LeadCore VCOM"
USB\Vid_18d1&Pid_181b&MI_03.DeviceDesc = "LeadCore VCOM"
USB\Vid_18d1&Pid_181b&MI_05.DeviceDesc = "LeadCore VCOM"
