;-------------------------------------------------------------------------------
; qecm.INF
;
; Quectel Wireless Network Device for Windows 7
;
; Copyright (c) 2014 Quectel Technologies, Inc.
; All rights reserved.


[Version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %QCOM%
DriverVer = 05/05/2019,19.0.33.3
Catalogfile = qcecm.cat

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%QCOM% = QCOM, NTx86.6.1,NTamd64.6.1

[SourceDisksNames.x86]
1000 = %QcomSrcDisk%,"",,\ecm\x86

[SourceDisksNames.amd64]
1001 = %QcomSrcDisk%,"",,\ecm\X64

[SourceDisksFiles.x86]
  QuectelECMDriverV2.sys = 1000

[SourceDisksFiles.amd64]
  QuectelECMDriverV2.sys = 1001

  

[QCOM.NTamd64.6.1]
;AG35
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0435&MI_04
;BG96
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0296&MI_04
;EC21 EC25 EC20 R2.0
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0125&MI_04
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0121&MI_04
;EP06 EM06 EG06
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0306&MI_04
;EG91 EG95
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0191&MI_04
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0195&MI_04
;Sdx20
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0512&MI_04
;AG15
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0415&MI_04
;EG61-NA
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0161&MI_04
;SDX24
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0620&MI_04
;RG500Q
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0800&MI_04
;AG520
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0452&MI_04




[QCOM.NTx86.6.1]
;AG35
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0435&MI_04
;BG96
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0296&MI_04
;EC21 EC25 EC20 R2.0
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0125&MI_04
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0121&MI_04
;EP06 EM06 EG06
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0306&MI_04
;EG91 EG95
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0191&MI_04
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0195&MI_04
;Sdx20
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0512&MI_04
;AG15
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0415&MI_04
;EG61-NA
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0161&MI_04
;SDX24
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0620&MI_04
;RG500Q
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0800&MI_04
;AG520
%Quectel_ECM_Adapter% = qecm.ndi, USB\VID_2C7C&PID_0452&MI_04


[qecm.ndi]
Characteristics = 0x4 ; NCF_PHYSICAL
BusType         = 15  ; PNPBus

; Windows 7 specific  WWAN Driver
;*IfType = 243 ; IF_TYPE_WWANPP
;*MediaType = 9 ; NdisMediumWirelessWan
;*PhysicalMediaType = 8 ; NdisPhysicalMediumWirelessWan

; ECM Driver 
*IfType = 6 
*MediaType = 0 ; NdisMedium802_3
*PhysicalMediaType = 14 ; NdisPhysicalMedium802_3

EnableDhcp = 1

AddReg          = qecm.Reg
CopyFiles       = qecm.CopyFiles

[qecm.ndi.Services]
AddService      = qusbecm, 2, qecm.Service, qecm.EventLog

;-----------------------------------------------------------------------------
; WMI security settings
;-----------------------------------------------------------------------------
[gobiwwan.ndi.WMI]
WMIInterface={DE81837E-BD78-4EC8-ABA8-89B7D026C1CF},,WMIGuidSecurity_AllReadAdminFul

[WMIGuidSecurity_AllReadAdminFul]
security="O:BAG:BAD:(A;;0x12001f;;;BA)(A;;0x12001f;;;LS)(A;;0x12001f;;;NS)(A;;0x12001f;;;SY)(A;;0x12001f;;;NO)(A;;CC;;;BU)"

;-----------------------------------------------------------------------------
; Virtual Miniport Common
;
[qecm.Reg]
HKR,    ,                         BusNumber,           0, "0" 
HKR, Ndi,                         Service,             0, "qusbecm"

;Entries to be put in add-registry-section for NdisMediumWirelessWan
HKR, Ndi\Interfaces, UpperRange, 0, "flpp4, flpp6"
HKR, Ndi\Interfaces, LowerRange, 0, "ppip"
HKR,, QCDevDisableQoS, 0x00010001, 0x00000003

;-----------------------------------------------------------------------------
; Driver and Service Section
;
[qecm.CopyFiles]
QuectelECMDriverV2.sys,,,2

[qecm.Service]
DisplayName     = %qecm.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\QuectelECMDriverV2.sys
LoadOrderGroup  = NDIS
AddReg          = TextModeFlags.Reg

[qecm.EventLog]
AddReg = qecm.AddEventLog.Reg

[qecm.AddEventLog.Reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7

[TextModeFlags.Reg]
HKR, , TextModeFlags,    0x00010001, 0x0001
HKR, Parameters      , WdfSection   , , "WdfSection"

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
QuectelECMDriverV2.sys  = 1,,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll = 1,,


;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
qecm.CopyFiles = 12
CpyCoInstaller_DLL  = 11



;------------------------------------WDF-------------------------------------

[CpyCoInstaller_DLL]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,,,2


;-------------------------------------------------------------------------
; NDISPROT Coinstaller installation
;-------------------------------------------------------------------------
[WdfSection]
KmdfService = qusbecm, NdisProt_WdfSection

[NdisProt_WdfSection]
KmdfLibraryVersion = $KMDFVERSION$


;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
QcomSrcDisk = "Quectel USB Driver Disk"
QCOM                       = "Quectel"  

Quectel_ECM_Adapter = "Quectel ECM Adapter"
                    


DiskId1 = "USB-NDIS Miniport Device Installation Disk #1"

qecm.Service.DispName = "Quectel ECM Adapter Service"
