;-----------------------------------
;Copyright (c) 2008-2025 Red Hat Inc.
;
;-----------------------------------
;          vioprot.inf
;-----------------------------------
;       VIRTIO network protocol
;-----------------------------------
;Installation Notes:
;    Step by step driver installation wiki:
;        https://github.com/virtio-win/kvm-guest-drivers-windows/wiki/Driver-installation
;

[version]
Signature   = "$Windows NT$"
Class       = NetTrans
ClassGUID   = {4d36e975-e325-11ce-bfc1-08002be10318}
Provider    = %VENDOR%
DriverVer = 02/18/2026,100.103.104.29700
CatalogFile  = vioprot.cat
PnpLockDown  = 1

[Manufacturer]
%VENDOR%=Standard,NTamd64.10.0

[Standard.NTamd64.10.0]
%NETKVMP_Desc%=Install,VIOPROT

;-------------------------------------------------------------------------
; Installation Section
;-------------------------------------------------------------------------
[Install]
AddReg=Inst_Ndi
Characteristics=0x0
CopyFiles=Copy.Exec

;-------------------------------------------------------------------------
; Ndi installation support
;-------------------------------------------------------------------------
[Inst_Ndi]
HKR, Ndi, ClsID, 0, {F69513F1-8E1A-4F35-82D9-046406970E6D}
HKR,Ndi,Service,,netkvmp
HKR,Ndi,HelpText,,%NETKVMP_HelpText%
HKR,Ndi\Interfaces, UpperRange,, noupper
HKR,Ndi\Interfaces, LowerRange,,"ndis5,ndis5_prot"

;-------------------------------------------------------------------------
; Service installation support
;-------------------------------------------------------------------------
[Install.Services]
AddService=netkvmp,0x800,NETKVMP.ServiceInst ;SPSVCSINST_STARTSERVICE

[NETKVMP.ServiceInst]
DisplayName     = %NETKVMP_Desc%
ServiceType     = 16 ;SERVICE_WIN32_OWN_PROCESS
StartType       = 2 ;SERVICE_AUTO_START
ErrorControl    = 1 ;SERVICE_ERROR_NORMAL
ServiceBinary   = %11%\netkvmps.exe
Description     = %NETKVMP_Desc%

[Install.Remove.Services]
DelService=netkvmp,0x200 ;SPSVCINST_STOPSERVICE

;-------------------------------------------------------------------------
; Declare Destination Directories for file copy/deletion
;-------------------------------------------------------------------------
[SourceDisksNames]
1=%DiskDescription%,"",,

[SourceDisksFiles]

[DestinationDirs]
Copy.Exec    = 11    ; %windir%\System32

;-------------------------------------------------------------------------
; Files to Copy/Delete - Referenced by Install and Remove sections above
;-------------------------------------------------------------------------
[Copy.Exec]

[Strings]
VENDOR = "Red Hat, Inc."
DiskDescription = "Red Hat VirtIO NetKVM Protocol Driver Disk"
NETKVMP_Desc = "Red Hat VirtIO NetKVM Protocol Driver"
NETKVMP_HelpText = "A driver to support SRIOV Failover for VirtIO network devices"
