; CH432PORT.INF
; Driver for CH432 (PCI=>Serials) chip V1.0
; For Windows 2K/XP/VISTA
; Copyright (C) WCH 2001-2007
;

[Version]
signature="$Windows NT$"
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%WinChipHead%
DriverVer=05/08/2007

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%WinChipHead%=WinChipHead

[WinChipHead]
%WinChipHead.ComPortName%=ComPort0,MF\PCI5049_COM_0
%WinChipHead.ComPortName%=ComPort1,MF\PCI5049_COM_1
%WinChipHead.ComPortName%=ComPort2,MF\PCI5049_COM_2
%WinChipHead.ComPortName%=ComPort3,MF\PCI5049_COM_3
%WinChipHead.ComPortName%=ComPort4,MF\PCI5049_COM_4
%WinChipHead.ComPortName%=ComPort5,MF\PCI5049_COM_5
%WinChipHead.ComPortName%=ComPort6,MF\PCI5049_COM_6
%WinChipHead.ComPortName%=ComPort7,MF\PCI5049_COM_7

;Port0 install
[ComPort0.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort0.NT.HW]
AddReg=MultiComPort0.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort0.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port1 install
[ComPort1.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort1.NT.HW]
AddReg=MultiComPort1.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort1.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port2 install
[ComPort2.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort2.NT.HW]
AddReg=MultiComPort2.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort2.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port3 install
[ComPort3.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort3.NT.HW]
AddReg=MultiComPort3.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort3.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port4 install
[ComPort4.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort4.NT.HW]
AddReg=MultiComPort4.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort4.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port5 install
[ComPort5.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort5.NT.HW]
AddReg=MultiComPort5.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort5.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port6 install
[ComPort6.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort6.NT.HW]
AddReg=MultiComPort6.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort6.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

;Port7 install
[ComPort7.NT]
CopyFiles=ComPort.NT.Copy
AddReg=ComPort.AddReg, ComPort.NT.AddReg
SyssetupPnPFlags = 1

[ComPort7.NT.HW]
AddReg=MultiComPort7.NT.HW.AddReg,ComPort.NT.HW.AddReg

[ComPort7.NT.Services]
AddService = PCISER, 0x00000002, Serial_Service_Inst, Serial_EventLog_Inst
AddService = Serenum,,Serenum_Service_Inst

[ComPort.NT.Copy]
PCISER.sys

[DestinationDirs]
ComPort.NT.Copy = 12        ;DIRID_DRIVERS

[ComPort.AddReg]
HKR,,PortSubClass,1,01

[ComPort.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[ComPort.NT.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"serenum"

[MultiComPort0.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,1

[MultiComPort1.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,2

[MultiComPort2.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,3

[MultiComPort3.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,4

[MultiComPort4.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,5

[MultiComPort5.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,6

[MultiComPort6.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,7

[MultiComPort7.NT.HW.AddReg]
HKR,,MultiportDevice,0x00010001,1
HKR,,PortIndex,0x00010001,8

[Serial_Service_Inst]
DisplayName    = %Serial.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 1               ; SERVICE_SYSTEM_START (this driver may do detection)
ErrorControl   = 0               ; SERVICE_ERROR_IGNORE
ServiceBinary  = %12%\PCISER.sys
LoadOrderGroup = Extended base

[Serial_EventLog_Inst]
AddReg = Serial_EventLog_AddReg

; -------------- Serenum Driver install section
[Serenum_Service_Inst]
DisplayName    = %Serenum.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\serenum.sys
LoadOrderGroup = PNP Filter

[Strings]
WinChipHead= "wch.cn"
WinChipHead.ComPortName = "PCI_COM"
Serial.SVCDESC   = "PCISER port driver"