;
; DUAL STACK NDIS enumerator
;

[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
DriverVer=09/14/2010,5.34.3366
Provider=%PROVIDER%
CatalogFile=zte_drivers.cat

; ================= Device section =====================

;---------------------------------------------------------------;
; PROFILE

[zte_ecm_enum]
%Dev.19D2.0107.04%=DevInstall, USB\VID_19D2&PID_0107&MI_04
%Dev.19D2.0142.04%=DevInstall, USB\VID_19D2&PID_0142&MI_04
%Dev.19D2.1208.04%=DevInstall, USB\VID_19D2&PID_1208&MI_04
%Dev.19D2.1211.04%=DevInstall, USB\VID_19D2&PID_1211&MI_04
%Dev.19D2.1217.08%=DevInstall, USB\VID_19D2&PID_1217&MI_08
%Dev.19D2.1220.04%=DevInstall, USB\VID_19D2&PID_1220&MI_04
%Dev.19D2.1512.08%=DevInstall, USB\VID_19D2&PID_1512&MI_08

[zte_ecm_enum.NTx86]
%Dev.19D2.0107.04%=DevInstall, USB\VID_19D2&PID_0107&MI_04
%Dev.19D2.0142.04%=DevInstall, USB\VID_19D2&PID_0142&MI_04
%Dev.19D2.1208.04%=DevInstall, USB\VID_19D2&PID_1208&MI_04
%Dev.19D2.1211.04%=DevInstall, USB\VID_19D2&PID_1211&MI_04
%Dev.19D2.1217.08%=DevInstall, USB\VID_19D2&PID_1217&MI_08
%Dev.19D2.1220.04%=DevInstall, USB\VID_19D2&PID_1220&MI_04
%Dev.19D2.1512.08%=DevInstall, USB\VID_19D2&PID_1512&MI_08

[zte_ecm_enum.NTamd64]
%Dev.19D2.0107.04%=DevInstall, USB\VID_19D2&PID_0107&MI_04
%Dev.19D2.0142.04%=DevInstall, USB\VID_19D2&PID_0142&MI_04
%Dev.19D2.1208.04%=DevInstall, USB\VID_19D2&PID_1208&MI_04
%Dev.19D2.1211.04%=DevInstall, USB\VID_19D2&PID_1211&MI_04
%Dev.19D2.1217.08%=DevInstall, USB\VID_19D2&PID_1217&MI_08
%Dev.19D2.1220.04%=DevInstall, USB\VID_19D2&PID_1220&MI_04
%Dev.19D2.1512.08%=DevInstall, USB\VID_19D2&PID_1512&MI_08

[zte_ecm_enum.NTx86.6.1]
%Dev.19D2.0107.04%=DevInstall, USB\VID_19D2&PID_0107&MI_04
%Dev.19D2.0142.04%=DevInstall, USB\VID_19D2&PID_0142&MI_04
%Dev.19D2.1208.04%=DevInstall, USB\VID_19D2&PID_1208&MI_04
%Dev.19D2.1211.04%=DevInstall, USB\VID_19D2&PID_1211&MI_04
%Dev.19D2.1217.08%=DevInstall, USB\VID_19D2&PID_1217&MI_08
%Dev.19D2.1220.04%=DevInstall, USB\VID_19D2&PID_1220&MI_04
%Dev.19D2.1512.08%=DevInstall, USB\VID_19D2&PID_1512&MI_08

[zte_ecm_enum.NTamd64.6.1]
%Dev.19D2.0107.04%=DevInstall, USB\VID_19D2&PID_0107&MI_04
%Dev.19D2.0142.04%=DevInstall, USB\VID_19D2&PID_0142&MI_04
%Dev.19D2.1208.04%=DevInstall, USB\VID_19D2&PID_1208&MI_04
%Dev.19D2.1211.04%=DevInstall, USB\VID_19D2&PID_1211&MI_04
%Dev.19D2.1217.08%=DevInstall, USB\VID_19D2&PID_1217&MI_08
%Dev.19D2.1220.04%=DevInstall, USB\VID_19D2&PID_1220&MI_04
%Dev.19D2.1512.08%=DevInstall, USB\VID_19D2&PID_1512&MI_08



;---------------------------------------------------------------;
; START IAD CONFIG

[DevInstall.NT]
CopyFiles=ecm_enum_Files_Ext

[DevInstall.NT.Services]
AddService = %ecm_enum.SvcName%, %SPSVCINST_ASSOCSERVICE%, CdcInstall_AddService, CdcInstall_EventLog
AddService = zte_ecm_enum_filter,, CdcInstall_AddFilterService,

[DevInstall.NT.HW]
AddReg = CdcInstall_NT_HW_AddReg,CdcInstall_NT_HW_AddReg_UpperFilter,CdcInstall_NT_HW_AddReg_IdleTimeout,CdcInstall_NT_HW_AddReg_SSEnableOverride

[CdcInstall_NT_HW_AddReg]
HKR,,"EnableZLP",           %FLG_ADDREG_TYPE_DWORD%,0x1	     ; Enable zero length packet

[CdcInstall_NT_HW_AddReg_UpperFilter]
HKR,,UpperFilters,%FLG_ADDREG_TYPE_MULTI_SZ%,zte_ecm_enum_filter

[CdcInstall_NT_HW_AddReg_IdleTimeout]
HKR,,"IdleTimeout",         %FLG_ADDREG_TYPE_DWORD%,0   ; SS Idle Timeout

[CdcInstall_NT_HW_AddReg_SSEnableOverride]
HKR,,"SSEnableOverride",%FLG_ADDREG_TYPE_DWORD%,0

; END IAD CONFIG
;---------------------------------------------------------------;

[CdcInstall_EventLog]
AddReg = CdcInstall_EventLog_Reg

[CdcInstall_EventLog_Reg]
HKR,, EventMessageFile, %FLG_ADDREG_EXPAND_SZ%, "%%SystemRoot%%\System32\drivers\zte_ecm_enum.sys;%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,, TypesSupported,   %FLG_ADDREG_TYPE_DWORD%, 7

[CdcInstall_AddService]
DisplayName     = %ecm_enum.SvcDesc%
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\zte_ecm_enum.sys
AddReg          = CdcInstall_AddReg

[CdcInstall_AddFilterService]
DisplayName     = zte_ecm_enum_filter
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\zte_ecm_enum_filter.sys

[CdcInstall_AddReg]
HKR, Parameters\Wdf, VerboseOn,       %FLG_ADDREG_TYPE_DWORD%, 0
HKR, Parameters\Wdf, VerifierOn,      %FLG_ADDREG_TYPE_DWORD%, 0
HKR, Parameters\Wdf, DbgBreakOnError, %FLG_ADDREG_TYPE_DWORD%, 0
HKR, Parameters,     DebugLevel,      %FLG_ADDREG_TYPE_DWORD%, 4
HKR, Parameters,     Provider,        %FLG_ADDREG_TYPE_SZ%,    %PROVIDER%


[ecm_enum_Files_Ext]
zte_ecm_enum.sys,,,0x6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK
zte_ecm_enum_filter.sys,,,0x6 ; COPYFLG_NOSKIP | COPYFLG_NOVERSIONCHECK

;---------------------------------------------------------------;
; START WDF Coinstallers installation


[DevInstall.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[DevInstall.NT.Wdf]
KmdfService = %ecm_enum.SvcName%, ecm_enum_wdfsect

[DestinationDirs]
CoInstaller_CopyFiles = 11

[SourceDisksFiles.x86]
wdfcoinstaller01009.dll=1,"\x86" ; make sure the number matches with SourceDisksNames

[SourceDisksFiles.amd64]
wdfcoinstaller01009.dll=1,"\x64" ; make sure the number matches with SourceDisksNames

[CoInstaller_CopyFiles]
wdfcoinstaller01009.dll,,,%COPYFLG_NO_OVERWRITE%

[CoInstaller_AddReg]
HKR,,CoInstallers32,%FLG_ADDREG_TYPE_MULTI_SZ%, "wdfcoinstaller01009.dll,WdfCoInstaller"

[ecm_enum_wdfsect]
KmdfLibraryVersion = 1.9

; END WDF Coinstallers installation
;---------------------------------------------------------------;
; Uninstall

[Uninstall]
DelFiles=ecm_enum_Files_Ext

[Uninstall.HW]
DelReg=CdcInstall_NT_HW_AddReg

[Uninstall.Services]
DelService=%ecm_enum.SvcName%,0x00000204 ;SPSVCINST_DELETEEVENTLOGENTRY||SPSVCINST_STOPSERVICE 

;---------------------------------------------------------------;
;
[Manufacturer]
%MANUFACTURER%=zte_ecm_enum,NTx86,NTamd64

[SourceDisksNames]
1=%DISKID%,

[DestinationDirs]
DefaultDestDir = 12

[SourceDisksFiles.x86]
zte_ecm_enum.sys=1,"\x86"
zte_ecm_enum_filter.sys=1,"\x86"

[SourceDisksFiles.amd64]
zte_ecm_enum.sys=1,"\x64"
zte_ecm_enum_filter.sys=1,"\x64"

;---------------------------------------------------------------;

[Strings]
PROVIDER                    = "ZTE"
MANUFACTURER                = "ZTE"
DISKID                      = "ZTE All Wireless Communications Device Installation Disk #1"

Dev.19D2.1217.08 = "ZTE Mobile Connect Enumerator for Wireless Ethernet Adapter"
Dev.19D2.0107.04 = "ZTE Mobile Connect Enumerator For Network Device"
Dev.19D2.1208.04 = "ZTE Mobile Connect Enumerator For Network Device"
Dev.19D2.0142.04 = "ZTE Mobile Connect Enumerator For Network Device"
Dev.19D2.1211.04 = "ZTE Mobile Connect Enumerator For Network Device"
Dev.19D2.1220.04 = "ZTE Mobile Connect Enumerator For Network Device"
Dev.19D2.1512.08 = "ZTE Mobile Connect Enumerator for Wireless Ethernet Adapter"


ecm_enum.SvcName             = "zte_ecm_enum"
ecm_enum.SvcDesc             = "ZTE All DC Enumerator"

SPSVCINST_TAGTOFRONT                 = 0x00000001
SPSVCINST_ASSOCSERVICE               = 0x00000002
SPSVCINST_DELETEEVENTLOGENTRY        = 0x00000004
SPSVCINST_NOCLOBBER_DISPLAYNAME      = 0x00000008
SPSVCINST_NOCLOBBER_STARTTYPE        = 0x00000010
SPSVCINST_NOCLOBBER_ERRORCONTROL     = 0x00000020
SPSVCINST_NOCLOBBER_LOADORDERGROUP   = 0x00000040
SPSVCINST_NOCLOBBER_DEPENDENCIES     = 0x00000080
SPSVCINST_NOCLOBBER_DESCRIPTION      = 0x00000100
SPSVCINST_STOPSERVICE                = 0x00000200

FLG_ADDREG_KEYONLY          = 0x00000010
FLG_ADDREG_TYPE_MULTI_SZ    = 0x00010000
FLG_ADDREG_TYPE_DWORD       = 0x00010001
FLG_ADDREG_TYPE_BIN         = 0x00000001
FLG_ADDREG_TYPE_SZ          = 0x00000000
FLG_ADDREG_EXPAND_SZ        = 0x00020000

COPYFLG_WARN_IF_SKIP        = 0x00000001
COPYFLG_NOSKIP              = 0x00000002
COPYFLG_NOVERSIONCHECK      = 0x00000004
COPYFLG_FORCE_FILE_IN_USE   = 0x00000008
COPYFLG_NO_OVERWRITE        = 0x00000010
COPYFLG_NO_VERSION_DIALOG   = 0x00000020
COPYFLG_OVERWRITE_OLDER_ONLY= 0x00000040
COPYFLG_REPLACEONLY         = 0x00000400
COPYFLG_NODECOMP            = 0x00000800
COPYFLG_REPLACE_BOOT_FILE   = 0x00001000
COPYFLG_NOPRUNE             = 0x00002000
COPYFLG_IN_USE_RENAME       = 0x00004000

SERVICE_ERROR_CRITICAL        = 0x00000003
SERVICE_ERROR_IGNORE          = 0x00000000
SERVICE_ERROR_NORMAL          = 0x00000001
SERVICE_ERROR_SEVERE          = 0x00000002
SERVICE_AUTO_START            = 0x00000002
SERVICE_BOOT_START            = 0x00000000
SERVICE_DEMAND_START          = 0x00000003
SERVICE_DISABLED              = 0x00000004
SERVICE_INTERACTIVE_PROCESS   = 0x00000100
SERVICE_SYSTEM_START          = 0x00000001
SERVICE_ADAPTER               = 0x00000004
SERVICE_FILE_SYSTEM_DRIVER    = 0x00000002
SERVICE_KERNEL_DRIVER         = 0x00000001
SERVICE_RECOGNIZER_DRIVER     = 0x00000008
SERVICE_WIN32_OWN_PROCESS     = 0x00000010
SERVICE_WIN32_SHARE_PROCESS   = 0x00000020

SELECTIVE_SUSPEND_IDLE_TIMEOUT = 0
