
;--------- Version Section ---------------------------------------------------

[Version]
Signature="$WINDOWS NT$"
Class=Ports
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Provider=%Provider%
DriverVer=01/27/2020,2.00.0000
CatalogFile.NTx86 = Weintek_COM_x86.cat
CatalogFile.NTAMD64 = Weintek_COM_amd64.cat

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
DefaultDestDir = 10
vserial_Files_Driver = 12


;--------- SourceDiskNames and SourceDiskFiles Section -----------------------
; These sections identify source disks and files for installation.

[SourceDisksNames.x86]
1 = %DiskId1%,,,\i386""

[SourceDisksNames.amd64]
2 = %DiskId1%,,,\amd64""


[SourceDisksFiles.x86]
vserial.sys  = 1,,

[SourceDisksFiles.amd64]
vserial.sys  = 2,,


;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName% = vserial_Mfg,NTx86,NTamd64,NTamd64.6.2

[vserial_Mfg]
; DisplayName               Section           DeviceId
%vserial_DeviceDesc%=vserial_DDI, *WeintekVSerial

[vserial_Mfg.NTx86]
; DisplayName               Section           DeviceId
%vserial_DeviceDesc%=vserial_DDI, *WeintekVSerial

[vserial_Mfg.NTamd64]
; DisplayName               Section           DeviceId
%vserial_DeviceDesc%=vserial_DDI, *WeintekVSerial


[vserial_Mfg.NTamd64.6.2]
; DisplayName               Section           DeviceId
%vserial_DeviceDesc%=vserial_DDI, *WeintekVSerial

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows NT -----------------

[vserial_DDI.NT]
CopyFiles=vserial_Files_Driver
AddReg=vserial_NT_AddReg

[vserial_DDI.NT.Services]
Addservice = vserial, 0x00000002, vserial_Service

[vserial_NT_AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

; --------- Service ----------------------

[vserial_Service]
DisplayName    = %vserial_SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\vserial.sys
LoadOrderGroup = Extended Base


; --------- Files ----------------------

[vserial_Files_Driver]
vserial.sys,,,2


;--------- Strings Section ---------------------------------------------------

[Strings]
Provider = "WEINTEK"
MfgName = "WEINTEK"
vserial_DeviceDesc = "Virtual Serial Port"
vserial_SvcDesc = "Virtual Serial Port Driver"
DiskId1 = "Installation Disk"

REG_SZ                      = 0x00000000
REG_MULTI_SZ                = 0x00010000
REG_EXPAND_SZ               = 0x00020000
REG_BINARY                  = 0x00000001
REG_DWORD                   = 0x00010001
REG_NONE                    = 0x00020001

SERVICE_KERNEL_DRIVER       = 0x00000001
SERVICE_FILE_SYSTEM_DRIVER  = 0x00000002
SERVICE_ADAPTER             = 0x00000004
SERVICE_RECOGNIZER_DRIVER   = 0x00000008

SERVICE_BOOT_START          = 0x0
SERVICE_SYSTEM_START        = 0x1
SERVICE_AUTO_START          = 0x2
SERVICE_DEMAND_START        = 0x3
SERVICE_DISABLED            = 0x4

SERVICE_ERROR_IGNORE        = 0x00000000
SERVICE_ERROR_NORMAL        = 0x00000001
SERVICE_ERROR_SEVERE        = 0x00000002
SERVICE_ERROR_CRITICAL      = 0x00000003

FLG_ADDREG_NOCLOBBER        = 0x00000002
FLG_ADDREG_DELVAL           = 0x00000004
FLG_ADDREG_APPEND           = 0x00000008
FLG_ADDREG_KEYONLY          = 0x00000010
FLG_ADDREG_OVERWRITEONLY    = 0x00000020
FLG_ADDREG_64BITKEY         = 0x00001000
FLG_ADDREG_KEYONLY_COMMON   = 0x00002000
FLG_ADDREG_32BITKEY         = 0x00004000

