wintun/wintun.inf
Simon Rozman 06851f8497 Fix driver service name
AddService:
- ServiceName parameter must not be localized. [1]
- EventName does not need to be specified when same as ServiceName.
   [1]

Service-related Ndi key:
- The Service value must match the ServiceName parameter of the
  AddService directive that references the service-install-section for
  the primary service. [2]

[1](https://docs.microsoft.com/en-us/windows-hardware/drivers/install/inf-addservice-directive)
[2](https://docs.microsoft.com/en-us/windows-hardware/drivers/network/adding-service-related-values-to-the-ndi-key)

Signed-off-by: Simon Rozman <simon@rozman.si>
2019-03-28 14:30:44 +01:00

67 lines
1.6 KiB
INI

; 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 = %Wintun.CompanyName%
CatalogFile.NT = wintun.cat
[Manufacturer]
%Wintun.CompanyName% = %Wintun.Name%, NT$ARCH$
[SourceDisksNames]
1 = %Wintun.DiskDesc%, "", ,
[SourceDisksFiles]
wintun.sys = 1
[DestinationDirs]
DefaultDestDir = 12
Wintun.CopyFiles.Sys = 12
[Wintun.CopyFiles.Sys]
wintun.sys, , , 0x00004002 ; COPYFLG_IN_USE_RENAME | COPYFLG_NOSKIP
[Wintun.NT$ARCH$]
%Wintun.DeviceDesc% = Wintun.Install, Wintun
[Wintun.Install]
Characteristics = 0x1 ; NCF_VIRTUAL
AddReg = Wintun.Ndi
CopyFiles = Wintun.CopyFiles.Sys
*IfType = 53 ; IF_TYPE_PROP_VIRTUAL
*MediaType = 19 ; NdisMediumIP
*PhysicalMediaType = 0 ; NdisPhysicalMediumUnspecified
EnableDhcp = 0 ; Disable DHCP
[Wintun.Install.Services]
AddService = wintun, 2, Wintun.Service, Wintun.EventLog
[Wintun.Ndi]
HKR, , DeviceVxDs, , wintun.sys
HKR, Ndi, Service, 0, wintun
HKR, Ndi\Interfaces, UpperRange, , "ndis5"
HKR, Ndi\Interfaces, LowerRange, , "nolower"
[Wintun.Service]
DisplayName = %Wintun.Name%
Description = %Wintun.DeviceDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\wintun.sys
LoadOrderGroup = NDIS
[Wintun.EventLog]
HKR, , EventMessageFile, 0x00020000, "%11%\IoLogMsg.dll;%12%\wintun.sys"
HKR, , TypesSupported, 0x00010001, 7
[Strings]
Wintun.Name = "Wintun"
Wintun.DiskDesc = "Wintun Driver Install Disk"
Wintun.DeviceDesc = "Wintun Userspace Tunnel"
Wintun.CompanyName = "WireGuard LLC"