;*************************************************************************************
;
; Name      :  PTUMLMbmp.inf
;
; Function  :  Install CDMA USB Mobile Broadband device driver on Windows 7
;	
; Copyright (c) DEVGURU Co., LTD. (www.devguru.co.kr)
;
;*************************************************************************************


[Version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Provider%
DriverVer	= 12/03/2013,4.14.8.0
CatalogFile	= PTUMLMBMP.cat

[ControlFlags]
ExcludeFromSelect = *

[SourceDisksNames.x86]
1 = %DiskString%,,,\i386

[SourceDisksNames.amd64]
1 = %DiskString%,,,\amd64


[SourceDisksFiles]
; filename = diskid[,[ subdir][, size]]
PTUMLMbmp.sys  = 1
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames


;-----------------------------------------------------------------------------
; DestinationDirs
;

[DestinationDirs]
DefaultDestDir  = 12
CopyFiles       = 12                    ; system32\drivers
CoInstaller_CopyFiles = 11

;-----------------------------------------------------------------------------
; Table of Contents
;-----------------------------------------------------------------------------
[Manufacturer]
%PTUML% = PTUML, NTx86.6.1, NTamd64.6.1

[PTUML.NTx86.6.1]
%USB\VID_106C&PID_3718&MBMPADPT.DeviceDesc%    = PTUML.Install, USB\VID_106C&PID_3718&MP&Class_ff&SubClass_f1&Prot_ff
;%USB\VID_106C&PID_3718&MBMPADPT.DeviceDesc%    = PTUML.Install, USB\{9C26AF91-DF51-4744-A70C-060193889BBA}_RMNET_VID_106C&PID_3718&Class_ff&SubClass_f1&Prot_ff

[PTUML.NTamd64.6.1]
%USB\VID_106C&PID_3718&MBMPADPT.DeviceDesc%    = PTUML.Install, USB\VID_106C&PID_3718&MP&Class_ff&SubClass_f1&Prot_ff
;%USB\VID_106C&PID_3718&MBMPADPT.DeviceDesc%    = PTUML.Install, USB\{9C26AF91-DF51-4744-A70C-060193889BBA}_RMNET_VID_106C&PID_3718&Class_ff&SubClass_f1&Prot_ff

;-------------------------------------------------------------------------------
; Microsoft Virtual Ethernet Adapter
;
[PTUML.Install.NT]
*IfType            = 243        ; IF_TYPE_WWANPP GSM:243 CDMA:244
*MediaType         = 9          ; NdisMediumWirelessWan 
EnableDhcp         = 0          ; Disable DHCP 
*PhysicalMediaType = 8          ; NdisPhysicalMediumWirelessWan 

;Characteristics = 0x1 ; NCF_VIRTUAL, This driver's parent is rmnet service driver(virtual bus)
Characteristics = 0x4  ; 
BusType		= 15

AddReg          = PTUML.Reg
CopyFiles       = CopyFiles, CopyFiles.Win2K

[PTUML.Install.NT.Services]
AddService      = PTUMLMBMP, 2, PTUML.Service, PTUML.EventLog

;-----------------------------------------------------------------------------
; Microsoft Virtual Miniport Common
;
[PTUML.Reg]
HKR,    ,                         BusNumber,           0, "0"
HKR, Ndi,                         Service,             0, "PTUMLMbmp"
HKR, Ndi\Interfaces,              UpperRange,          0, "flpp4,flpp6"
HKR, Ndi\Interfaces,              LowerRange,          0, "ppip"

[CopyFiles]
PTUMLMBMP.sys

[CopyFiles.Win2K]

;-----------------------------------------------------------------------------
; Driver and Service Section
;

[PTUML.Service]
DisplayName     = %PTUML.Service.Name%
Description		= %PTUML.Service.Desc%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\PTUMLMBMP.sys
LoadOrderGroup  = NDIS
AddReg          = TextModeFlags.Reg

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

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

[TextModeFlags.Reg]
HKR,           , TextModeFlags             , 0x00010001, 0x0001
HKR, Parameters, RadioState                , 0x00010001, 0x0001   ; power on
HKR, Parameters, ConnectionPropertyEx      , 0x00000001, FF,01,00,00,08,03,00,00,14,03,00,00        ; Dual IP bearer
HKR, Parameters, PinOperationProperty      , 0x00010001, 0x000F   ; not support unblock operation
HKR, Parameters, MTU                       , 0x00010001, 0x0594   ; MTU size
HKR, Parameters, InitWaitTime              , 0x00010001, 21       ; Sim Init Wait Time out(in Second)
HKR, Parameters, EnableImeiToMacAddress    , 0x00010001, 0x0001
HKR, Parameters, ProfileIndexProperty      , 0x00010001, 0x0003   ; default profile index number
HKR, Parameters, UimStatusChangeWaitTime   , 0x00010001, 20       ; Sim Status Change, Ready to Query Wait Time out(in Second)
HKR, Parameters, Ipv4ConnectRetryCount     , 0x00010001, 1        ; ipv4 connect retry count
HKR, Parameters, CheckUimStateRetryCount   , 0x00010001, 60       ; UIM get state query retry count

HKR, Parameters, MaxReadRequestCnt          , 0x00010001, 0x0014
HKR, Parameters, MaxReadBusyCnt             , 0x00010001, 0x0020
HKR, Parameters, EnableUsbBulkOutThreading  , 0x00010001, 0x0000
HKR, Parameters, EnableUsbBulkInThreading   , 0x00010001, 0x0001
HKR, Parameters, EnableSendCompleteThreading, 0x00010001, 0x0001
HKR, Parameters, EnableAsynchRecvResource   , 0x00010001, 0x0000
HKR, Parameters, ConnectMode                , 0x00010001, 0x00ff
HKR, Parameters, UseRmnetSyncQmi            , 0x00010001, 0x0000  ; Use synchronous Qmi Request / Response
HKR, Parameters, ResumeWaitTime             , 0x00010001, 21	  ; Resume Wait Time out (in Second)
HKR, Parameters, NotSupportWmbSms           , 0x00010001, 1	      ; Not support Wmb Sms for Windows 8 or later
HKR, Parameters, CmInitializeWaitTimeout    , 0x00010001, 25      ; CM Initialize Wait Time out (in Second)
HKR, Parameters, OidWaitTimeoutBeforeRstart , 0x00010001, 27      ; OID Wait Time out Before Restart (in Second)

;-------------- WDF Coinstaller installation

[PTUML.Install.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[PTUML.Install.NT.Wdf]
KmdfService = PTUMLMBMP, PTUMLMBMP_wdfsect
[PTUMLMBMP_wdfsect]
KmdfLibraryVersion = 1.9

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

;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
Provider		= "PANTECH CO., LTD"
PTUML			= "PANTECH CO., LTD"

USB\VID_106C&PID_3718&MBMPADPT.DeviceDesc      = "PANTECH UML290 Mobile Broadband"

PTUML.Service.Name		= "PANTECH UML290 Mobile Broadband"
PTUML.Service.Desc		= "PANTECH UML290 Mobile Broadband device driver"

DiskString = "PANTECH UML290 Mobile Broadband Device Installation Disk #1"
