wintun: allow retrieving DLL version

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2021-10-20 12:13:44 -06:00
parent f87e87af0d
commit fdf57a1fa4
4 changed files with 37 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ func Uninstall() (err error) {
return
}
// RunningVersion returns the version of the running Wintun driver.
// RunningVersion returns the version of the loaded driver.
func RunningVersion() (version uint32, err error) {
r0, _, e1 := syscall.Syscall(procWintunGetRunningDriverVersion.Addr(), 0, 0, 0, 0)
version = uint32(r0)