;------------------------------------------------------------------------------
; Comunication Device Class driver (CDC) INF FILE
; (C)2015 Copyright
;------------------------------------------------------------------------------

[Version]
;Signature指示该INF文件运行在何种操作系统上
Signature="$CHICAGO$"

;属于设备管理器中哪类设备
Class=Ports

;使用的安装类GUID.该GUID类的设备为“端口（COM和LPT）”
;在设备管理器中可看到最后生成的设备放在了“端口（COM和LPT）”下。
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}

;驱动程序的提供商，它将显示在设备属性的驱动程序标签页的驱动程序提供商中。
;驱动程序提供商名称COMPANY在该文件最后被定义，它是一个字符串
Provider=%PRVDR%

;驱动文件所在目录
LayoutFile=layout.inf

;驱动程序的日期和版本号
DriverVer=11/20/2015,1.0.0

[Manufacturer]
;等号前指示硬件制造商，等号后指示进一步安装驱动的指针
%MFGNAME%=DeviceList,NT,NTamd64

[DeviceList.nt]
;设置显示设备的名称以及匹配的ID号
%DESCRIPTION%=Driverinstall.nt,USB\VID_8888&PID_CDC0

[DeviceList.NTamd64]
%DESCRIPTION%=Driverinstall.ntamd64,USB\VID_8888&PID_CDC0

;-----------------------------------------------------------------------
;Windows 2000, winxp, win7 32bit Sections
;-----------------------------------------------------------------------
[Driverinstall.nt]
CopyFiles=DriverCopyFiles.nt
AddReg=Driverinstall.nt.AddReg

[DriverCopyFiles.NT]
usbser.sys,,,0x20

[Driverinstall.nt.AddReg]
;增加注册表项
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Driverinstall.nt.Services]
;增加驱动服务
AddService=%DRIVERFILENAME%,0x00000002,ServiceInstall.nt

[ServiceInstall.nt]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys

;-----------------------------------------------------------------------
;64bit Sections
;-----------------------------------------------------------------------
[Driverinstall.NTamd64]
CopyFiles=DriverCopyFiles.NTamd64
AddReg=Driverinstall.NTamd64.AddReg

[DriverCopyFiles.NTamd64]
usbser.sys,,,0x20

[Driverinstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Driverinstall.NTamd64.Services]
AddService=%DRIVERFILENAME%,0x00000002,ServiceInstall.NTamd64

[ServiceInstall.NTamd64]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys


[DestinationDirs]
;目标文件夹位置，12为system32目录
DefaultDestDir=12  ;%windir%system32/drivers

[Strings]
PRVDR          = "Beelink"
MFGNAME        = "Beelink"
DESCRIPTION    = "Beelink Virtual Com Port"
DRIVERFILENAME = "usbser"
SERVICE        = "Virtual COM Driver"