wintun: load wintun.dll from RCDATA resource

Signed-off-by: Simon Rozman <simon@rozman.si>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Simon Rozman
2020-11-06 05:24:50 +01:00
committed by Jason A. Donenfeld
parent 3e08b8aee0
commit 65e03a9182
19 changed files with 1578 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ type Adapter struct {
}
var (
modwintun = windows.NewLazyDLL("wintun.dll")
modwintun = newLazyDLL("wintun.dll")
procWintunCreateAdapter = modwintun.NewProc("WintunCreateAdapter")
procWintunDeleteAdapter = modwintun.NewProc("WintunDeleteAdapter")