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:
parent
3e08b8aee0
commit
65e03a9182
19 changed files with 1578 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue