wintun: load wintun.dll from RCDATA resource

Signed-off-by: Simon Rozman <[email protected]>
Signed-off-by: Jason A. Donenfeld <[email protected]>
This commit is contained in:
Simon Rozman
2020-11-07 15:20:49 +01:00
committed by Jason A. Donenfeld
parent 3e08b8aee0
commit 65e03a9182
19 changed files with 1578 additions and 2 deletions
+1 -1
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")