; CH341PAR.INF
; Driver for CH341 (USB=>PARALLEL chip) V1.1
; WDM&VXD for Windows 98
; Copyright (C) W.ch 2001-2005
;

[Version]
Signature = "$Chicago$"
Class     = Ports
ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider  = %WinChipHead%
DriverVer = 12/29/2005, 1.1.2005.12

[ControlFlags]
;ExcludeFromSelect = USB\VID_4348&PID_5512
ExcludeFromSelect = USB\VID_1A86&PID_7584
ExcludeFromSelect = USB\VID_1A86&PID_5584
ExcludeFromSelect = USB\VID_4348&PID_5584
ExcludeFromSelect = USB\VID_4348&PID_5584&REV_0250
ExcludeFromSelect = USBPARPORT\PAR5512
ExcludeFromSelect = CH341PORT\PAR5512

[Manufacturer]
%WinChipHead% = WinChipHead

[WinChipHead]
;%CH341PAR.DeviceDesc% = CH341PAR_Install, USB\VID_4348&PID_5512
%CH340PRT.DeviceDesc% = CH341PAR_Install, USB\VID_1A86&PID_7584
%CH341APRT.DeviceDesc% = CH341PAR_Install, USB\VID_1A86&PID_5584
%CH341PRT.DeviceDesc% = CH341PAR_Install, USB\VID_4348&PID_5584
%CH340PRT.DeviceDesc% = CH341PAR_Install, USB\VID_4348&PID_5584&REV_0250
%CH341P98.DeviceDesc% = CH341P98_Install, USBPARPORT\PAR5512, CH341PORT\PAR5512

[CH341PAR_Install]
CopyFiles = CH341PAR.CopyFiles.SYS, CH341PAR.CopyFiles.DLL
AddReg    = CH341PAR.9X.AddReg, CH341PAR.AddReg

[CH341PAR_Install.NT]
CopyFiles = CH341PAR.NT.CopyFiles.SYS, CH341PAR.CopyFiles.DLL
AddReg    = CH341PAR.NT.AddReg, CH341PAR.AddReg

[CH341PAR_Install.NT.HW]
AddReg    = CH341PAR.NT.HW.AddReg

[CH341P98_Install]
CopyFiles = CH341P98.CopyFiles.VXD, CH341PAR.CopyFiles.SYS
AddReg    = CH341P98.9X.AddReg, CH341P98.AddReg

[CH341P98_Install.NT]

[CH341PAR.CopyFiles.SYS]
CH341P98.SYS, , , 2

[CH341PAR.NT.CopyFiles.SYS]
CH341PAR.SYS, , , 2

[CH341P98.CopyFiles.VXD]
CH341PAR.VXD, , , 2

[CH341PAR.CopyFiles.DLL]
CH341PT.DLL, , , 2
;安装DLL是可选的,DLL可以用于识别CH341端口和监视CH341端口的插拔事件

[CH341PAR.9X.AddReg]
HKR, , DevLoader, , *NTKERN
HKR, , NTMPDriver, , CH341P98.SYS

[CH341PAR.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,ParallelPortPropPageProvider"

[CH341PAR.NT.HW.AddReg]
;HKR,,"UpperFilters",0x00010000,"lptenum"
;上面这行用于枚举接在并口的即插即用设备,启动时将产生枚举信号,如果需要枚举,请将上面这行的分号去掉

[CH341P98.9X.AddReg]
HKR, , DevLoader, , *vcomm
HKR, , PortDriver, , CH341PAR.VXD
HKR, , PortSubClass, 1, 00

[CH341PAR.AddReg]
HKLM, SOFTWARE\WinChipHead\IC\CH341PAR, WDM, 0x00010001, 0x00000011
HKLM, SOFTWARE\WinChipHead\IC\CH341PORT, DLL, 0x00010001, 0x00000010
HKLM, SOFTWARE\WinChipHead\IC\CH341PAR, Function, , "USB=>Parallel"

[CH341P98.AddReg]
HKLM, SOFTWARE\WinChipHead\IC\CH341PAR, VXD, 0x00010001, 0x00000010

[CH341PAR_Install.NT.Services]
AddService = CH341PAR, 2, CH341PAR.Service

[CH341PAR.Service]
DisplayName   = "CH341PAR"
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %10%\System32\Drivers\CH341PAR.SYS

[DestinationDirs]
DefaultDestDir      = 10, System32\Drivers
CH341PAR.CopyFiles.SYS = 10, System32\Drivers
CH341PAR.NT.CopyFiles.SYS = 10, System32\Drivers
CH341P98.CopyFiles.VXD = 11
CH341PAR.CopyFiles.DLL = 11

[SourceDisksFiles]
CH341PAR.SYS  = 1
CH341P98.SYS  = 1
CH341PAR.VXD  = 1

[SourceDisksNames]
1 = "CH341 Parallel Installation Disk", CH341PAR.INF, ,

[Strings]
WinChipHead      = "wch.cn"
CH341PAR.DeviceDesc = "USB-PARALLEL CH341"
CH341PRT.DeviceDesc = "USB-PRINT CH341"
CH340PRT.DeviceDesc = "USB-PRINT CH340"
CH341P98.DeviceDesc = "USB-PRINT CH341"
CH341APRT.DeviceDesc = "USB-PRINT CH341A"
