; Windows Virtual Serial Port Setup File
; Copyright (c) 2012 ZTE CORPORATION
; Manufacturer: ZTE CORPORATION
;
; This INF file installs a virtual COM port on Win2K system.

[Version]
signature  = "$WINDOWS NT$"
Class      = Ports
Provider   = %ZTE%
ClassGuid  = {4D36E978-E325-11CE-BFC1-08002BE10318}
DriverVer  = 01/14/2015,2.1.0.7
CatalogFile = Trap_driver_dev.cat

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames.x86]
1000 = %ZTESRCDISK%,,,\i386

[SourceDisksNames.amd64]
1000 = %ZTESRCDISK%,,,\amd64
[SourceDisksFiles]
Trap_driver_dev.sys = 1000,,

[DestinationDirs]
DefaultDestDir = 12
ZTEportInstall6k.NT.Copy=12

[Manufacturer]
%ZTE% = ZTEcomSerialPort,NTamd64

[ZTEcomSerialPort]
%ZTEDIAG19D20197_00% = ZTEportInstall6k, USB\VID_19D2&PID_0197&MI_00
%ZTEDIAG19D20197_01% = ZTEportInstall6k, USB\VID_19D2&PID_0197&MI_01

[ZTEcomSerialPort.NTamd64]
%ZTEDIAG19D20197_00% = ZTEportInstall6k, USB\VID_19D2&PID_0197&MI_00
%ZTEDIAG19D20197_01% = ZTEportInstall6k, USB\VID_19D2&PID_0197&MI_01

; ###### Installation Section ######
[ZTEportInstall6k.NT]
CopyFiles=ZTEportInstall6k.NT.Copy
AddReg = All6k, AddReg.NT

[ZTEportInstall6k.NT.Copy]
Trap_driver_dev.sys

[ZTEportInstall6k.NT.Services]
AddService = Trap_driver_dev, 0x00000002, ZTEport_Service_Inst6k

[ZTEport_Service_Inst6k]
;DisplayName   = %ZTEcomSerialPortNameTRAP%
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
AddReg        = PortDriver.Service.Reg
ServiceBinary = %12%\Trap_driver_dev.sys

[All6k]
HKR,,NTMPDriver,,Trap_driver_dev.sys
HKR, ,QCDriverDebugMask, 0x00010001, 0xffffffff

[PortDriver.Service.Reg]
HKR,,QCDriverSelectiveSuspendIdleTime,%FLG_ADDREG_TYPE_DWORD%, 0x00000000
HKR,,QCDriverPowerManagementEnabled,%FLG_ADDREG_TYPE_DWORD%, 0x00000000

[AddReg.NT]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[Strings]
ZTE                       = "ZTE"
ZTESRCDISK                = "ZTE Multimedia USB COM Driver Disk"
ZTEDIAG19D20197_00        = "Trap1 Interface"
ZTEDIAG19D20197_01        = "Trap2 Interface"
;ZTEcomSerialPortNameTRAP    = "Qihoo CMCC Trap Interface Gemeni"
FLG_ADDREG_TYPE_DWORD     = 0x00010001
