; Windows Virtual Serial Port Setup File
; Copyright (c) 2012 ZTE CORPORATION
; Manufacturer: ZTE CORPORATION
;
;This INF file installs ZTE USB Diag port on 32-bit and 64-bit Windows OS, such as Windows 2000, Windows XP, Vista and Win7.

[Version]
signature   = "$WINDOWS NT$"
Class       = Ports
Provider    = %ZTE%
ClassGuid   = {4D36E978-E325-11CE-BFC1-08002BE10318}
DriverVer   = 11/16/2012,8.2088.0.5
CatalogFile = zgdcdiag.cat

[ControlFlags]
ExcludeFromSelect = *

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

[SourceDisksNames.amd64]
1000 = %ZTESRCDISK%,,,\amd64

[SourceDisksFiles]
zgdcdiag.sys = 1000,,

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

[Manufacturer]
%ZTE% = ZTEcomSerialPort, NTamd64

[ZTEcomSerialPort]
;Al621
%ZTEDIAG19D20167%   = ZTEportInstall6k, USB\VID_19D2&PID_0167&MI_00
;EuFi890
%ZTEDIAG19D20191%   = ZTEportInstall6k, USB\VID_19D2&PID_0191&MI_00
;MF821
%ZTEDIAG19D20257%   = ZTEportInstall6k, USB\VID_19D2&PID_0257&MI_00
;MF91
%ZTEDIAG19D21426%   = ZTEportInstall6k, USB\VID_19D2&PID_1426&MI_00
%ZTEDIAG19D21333%   = ZTEportInstall6k, USB\VID_19D2&PID_1333&MI_00
%ZTEDIAG19D20312%   = ZTEportInstall6k, USB\VID_19D2&PID_0312
;MF821D
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0330&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0350&MI_02
;MF826
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0317&MI_00
;ZM8510
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0189&MI_00
;MF91S
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0390&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0387&MI_02
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0447&MI_02
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0448&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0443&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0445&MI_00

[ZTEcomSerialPort.NTamd64]
;Al621
%ZTEDIAG19D20167%   = ZTEportInstall6k, USB\VID_19D2&PID_0167&MI_00
;EuFi890
%ZTEDIAG19D20191%   = ZTEportInstall6k, USB\VID_19D2&PID_0191&MI_00
;MF821
%ZTEDIAG19D20257%   = ZTEportInstall6k, USB\VID_19D2&PID_0257&MI_00
;MF91
%ZTEDIAG19D21426%   = ZTEportInstall6k, USB\VID_19D2&PID_1426&MI_00
;download mode
%ZTEDIAG19D21333%   = ZTEportInstall6k, USB\VID_19D2&PID_1333&MI_00
%ZTEDIAG19D20312%   = ZTEportInstall6k, USB\VID_19D2&PID_0312
;MF821D
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0330&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0350&MI_02
;MF826
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0317&MI_00
;ZM8510
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0189&MI_00
;MF91S
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0390&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0387&MI_02
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0447&MI_02
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0448&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0443&MI_00
%ZTEDiagGeneral%    = ZTEportInstall6k, USB\VID_19D2&PID_0445&MI_00

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

[ZTEportInstall6k.NT.Copy]
zgdcdiag.sys

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

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

[All6k]
HKR,,NTMPDriver,,zgdcdiag.sys

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

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

[Strings]
ZTE                       = "ZTE Corporation"
ZTESRCDISK                = "ZTE Multimedia USB COM Driver Disk"
ZTEDIAG19D20191           = "ZTE Mobile Broadband Diagnostics Port"
ZTEDIAG19D20257           = "ZTE Mobile Broadband Diagnostics Port"
ZTEDIAG19D21426           = "ZTE Mobile Broadband Diagnostics Port"
ZTEDIAG19D20167           = "ZTE Mobile Broadband Diagnostics Port"
ZTEDIAG19D21333           = "ZTE Mobile Broadband Diagnostics Port"
ZTEDIAG19D20312           = "ZTE LTE Datacard Download Diag-only Port"
ZTEDiagGeneral            = "ZTE Mobile Broadband Diagnostics Port"
ZTEcomSerialPortName6k    = "ZTE Datacard Diagnostics Port"
FLG_ADDREG_TYPE_DWORD     = 0x00010001
