wintun: allow retrieving DLL version
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
f87e87af0d
commit
fdf57a1fa4
4 changed files with 37 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue