; SPDX-License-Identifier: GPL-2.0
;
; Copyright (C) 2018-2019 WireGuard LLC. All Rights Reserved.

[Version]
Signature = "$Windows NT$"
Class = Net
ClassGUID = {4D36E972-E325-11CE-BFC1-08002BE10318}
Provider = %Nlwt.CompanyName%
CatalogFile.NT = nlwt.cat
DriverVer = 04/02/2020,0.8.0.0

[Manufacturer]
%Nlwt.CompanyName% = %Nlwt.Name%, NTamd64

[SourceDisksNames]
1 = %Nlwt.DiskDesc%, "", ,

[SourceDisksFiles]
nlwt.sys = 1

[DestinationDirs]
DefaultDestDir = 12
Nlwt.CopyFiles.Sys = 12

[Nlwt.CopyFiles.Sys]
nlwt.sys, , , 0x00004002 ; COPYFLG_IN_USE_RENAME | COPYFLG_NOSKIP

[Nlwt.NTamd64]
%Nlwt.DeviceDesc% = Nlwt.Install, Nlwt

[Nlwt.Install]
Characteristics = 0x1 ; NCF_VIRTUAL
AddReg = Nlwt.Ndi
CopyFiles = Nlwt.CopyFiles.Sys
*IfType = 53 ; IF_TYPE_PROP_VIRTUAL
*MediaType = 19 ; NdisMediumIP
*PhysicalMediaType = 0 ; NdisPhysicalMediumUnspecified
EnableDhcp = 0 ; Disable DHCP

[Nlwt.Install.Services]
AddService = nlwt, 2, Nlwt.Service, Nlwt.EventLog ; 2=SPSVCINST_ASSOCSERVICE

[Nlwt.Ndi]
HKR, , DeviceVxDs, , nlwt.sys
HKR, Ndi, Service, 0, nlwt
HKR, Ndi\Interfaces, UpperRange, , "ndis5"
HKR, Ndi\Interfaces, LowerRange, , "nolower"

[Nlwt.Service]
DisplayName = %Nlwt.Name%
Description = %Nlwt.DeviceDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\nlwt.sys
LoadOrderGroup = NDIS

[Nlwt.EventLog]
HKR, , EventMessageFile, 0x00020000, "%11%\IoLogMsg.dll;%12%\nlwt.sys"
HKR, , TypesSupported, 0x00010001, 7

[Strings]
Nlwt.Name = "Nlwt"
Nlwt.DiskDesc = "Nlwt Driver Install Disk"
Nlwt.DeviceDesc = "Nlwt Tun"
Nlwt.CompanyName = "WireGuard LLC"
