;-------------------------------------------------------------------------------
; ENGNET.INF
;
; Sony Wireless Network Device for development

[version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %SONY%
DriverVer   = 11/06/2013,4.0.1.92
CatalogFile.NTx86   = engnetx86.cat
CatalogFile.NTamd64 = engnetamd64.cat

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%SONY% = SonyNet, NTx86, NTamd64

[SourceDisksNames]
1001 = %SonySrcDisk%,,,\i386
1002 = %SonySrcDisk%,,,\amd64

[SourceDisksFiles.x86]
sonyusbnet.sys = 1001

[SourceDisksFiles.amd64]
sonyusbnet.sys = 1002


[SonyNet.NTx86]
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_5146&MI_05
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_6146&MI_05
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_A146&MI_06
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_B146&MI_06
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_C146&MI_07
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_1146&MI_07
%sonywwan.DeviceDesc2%   = sonywwan.ndi, USB\VID_0FCE&PID_1146&MI_08
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_F146&MI_07
%sonywwan.DeviceDesc2%   = sonywwan.ndi, USB\VID_0FCE&PID_F146&MI_08

[SonyNet.NTamd64]
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_5146&MI_05
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_6146&MI_05
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_A146&MI_06
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_B146&MI_06
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_C146&MI_07
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_1146&MI_07
%sonywwan.DeviceDesc2%   = sonywwan.ndi, USB\VID_0FCE&PID_1146&MI_08
%sonywwan.DeviceDesc%    = sonywwan.ndi, USB\VID_0FCE&PID_F146&MI_07
%sonywwan.DeviceDesc2%   = sonywwan.ndi, USB\VID_0FCE&PID_F146&MI_08

;-------------------------------------------------------------------------------
; Virtual Ethernet Adapter
;
[sonywwan.ndi]
Characteristics = 0x4 ; NCF_PHYSICAL
BusType         = 15  ; PNPBus
AddReg          = sonywwan.Reg
CopyFiles       = sonywwan.CopyFiles

[sonywwan.ndi.Services]
AddService      = sonysbnet, 2, sonywwan.Service, sonywwan.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
;
[sonywwan.Reg]
HKR,    ,                         BusNumber,           0, "0" 
HKR, Ndi,                         Service,             0, "sonyusbnet"
HKR, Ndi\Interfaces,              UpperRange,          0, "ndis5"
HKR, Ndi\Interfaces,              LowerRange,          0, "ethernet"
; HKR, Ndi\params\VlanID,     ParamDesc,       0, %VlanID%
; HKR, Ndi\params\VlanID,     default,         0, "777"
; HKR, Ndi\params\VlanID,     type,            0, "long"
; HKR, Ndi\params\VlanID,     min,             0, "0"
; HKR, Ndi\params\VlanID,     max,             0, "4095"
; HKR, Ndi\params\VlanID,     step,            0, "1"
; HKR, Ndi\params\VlanID,     base,            0, "10"
HKR,, QCDevDisableQoS, 0x00010001, 0x00000003

; Diable QMI
; HKR,, QCMPDisableQMI, 0x00010001, 0x00000001

; Disable QMAP V2
; HKR,, QCMPEnableQMAPV2, 0x00010001, 0x00000000

; Disable QMAP V1
; HKR,, QCMPEnableQMAPV1, 0x00010001, 0x00000000

; Disable QCNCM UL
; HKR,, QCMPEnableMBIMUL, 0x00010001, 0x00000000

; Disable QCNCM DL
; HKR,, QCMPEnableMBIMDL, 0x00010001, 0x00000000

; Disable TLP UL
; HKR,, QCMPEnableTLP, 0x00010001, 0x00000000

; Disable TLP DL
; HKR,, QCMPEnableDLTLP, 0x00010001, 0x00000000

; Max aggregated packets
; HKR,, QCDriverTLPMaxPackets, 0x00010001, 0x00000003

;-----------------------------------------------------------------------------
; Driver and Service Section
;
[sonywwan.CopyFiles]
sonyusbnet.sys

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

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

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

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

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

;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
DefaultDestDir = 12

;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
SonySrcDisk = "Sony USB Driver Disk"
SONY                       = "Sony"                      
sonywwan.DeviceDesc           = "Sony Wireless Ethernet Adapter"
sonywwan.DeviceDesc2      = "Sony Wireless Ethernet Adapter 2"
sonywwan.Service.DispName     = "Sony USB-NDIS miniport for Engineering"
DiskId1 = "Sony USB-NDIS Miniport Device Installation Disk #1"
