;
; IntelMBIM - USB CDC MBIM Driver
; Copyright (c) 2013 Smith Micro Software, Inc. All Rights Reserved. http://www.smithmicro.com/
; Copyright (c) 2013 Intel Mobile Communications GmbH. All Rights Reserved. http://www.intel.com/
; Copyright (c) 2015 Sierra Wireless. All Rights Reserved. http://www.sierrawireless.com/
;

[Version]
Signature = "$Windows NT$"
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider = %ProviderName%
DriverVer=10/13/2015,1.5.1.1404
CatalogFile = SWMBIM00.cat

[Manufacturer]
%ProviderName% = Sierra,NTx86

[ControlFlags]
ExcludeFromSelect = *

[Sierra.NTx86]
%EM7340.DeviceDesc% = SWMBIMDrv.ndi,USB\VID_1199&PID_A002&MI_00
%EM7345.DeviceDesc% = SWMBIMDrv.ndi,USB\VID_1199&PID_A003&MI_00
%EM7445.DeviceDesc% = SWMBIMDrv.ndi,USB\VID_1199&PID_A005&MI_00

;
; Virtual Ethernet Adapter
;
[SWMBIMDrv.ndi.NTx86]
*IfType         = 243  ; IF_TYPE_WWANPP
*MediaType      = 9    ; NdisMediumWirelessWan
*PhysicalMediaType = 8 ; NdisPhysicalMediumWirelessWan
EnableDhcp      = 0    ; Disable DHCP
Characteristics = 0x84 ; NCF_HAS_UI|NCF_PHYSICAL
BusType         = 15   ; DSFInterfaceTypePNPBus
AddReg          = SWMBIMDrv.Reg
CopyFiles       = SWMBIMDrv.CopyFiles

[SWMBIMDrv.ndi.NTx86.Services]
AddService = SWMBIM, 2, SWMBIM.Service, SWMBIM.EventLog

;
; Registry Setup
;
[SWMBIMDrv.Reg]
HKR, Ndi,                         Service,    0, "SWMBIM"
HKR, Ndi\Interfaces,              UpperRange, 0, "flpp4, flpp6"
HKR, Ndi\Interfaces,              LowerRange, 0, "ppip"

;
; Service Install
;
[SWMBIM.Service]
DisplayName     = %WinMBIM.Service.DispName%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\SWMBIM00.sys
LoadOrderGroup  = NDIS
AddReg          = TextModeFlags.Reg

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

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

[TextModeFlags.Reg]
HKR, , TextModeFlags,    0x00010001, 0x0001

;
; DestinationDirs
;
[DestinationDirs]
SWMBIMDrv.CopyFiles = 12

[SWMBIMDrv.CopyFiles]
SWMBIM00.sys,,,2

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

[SourceDisksFiles]
SWMBIM00.sys = 1,,

;
; Localizable Strings
;
[Strings]
ProviderName              = "Sierra Wireless"
EM7340.DeviceDesc         = "Sierra Wireless EM7340 4G LTE"
EM7345.DeviceDesc         = "Sierra Wireless EM7345 4G LTE"
EM7445.DeviceDesc         = "Sierra Wireless EM7445 4G LTE"
WinMBIM.Service.DispName  = "Sierra Wireless MBIM Service 00"
DiskId1                   = "MBIM Driver Disk"
