Load DLL in a manner compatible with Go's sysdll registration (#15)
This commit is contained in:
Родитель
76b57228f3
Коммит
55fedc85a6
|
@ -35,7 +35,7 @@ const (
|
|||
)
|
||||
|
||||
var reportEvent = func() func(eventType eventType, eventID int32, msg string) {
|
||||
advAPI32 := syscall.MustLoadDLL("AdvAPI32.dll")
|
||||
advAPI32 := syscall.MustLoadDLL("advapi32.dll") // lower case to tie in with Go's sysdll registration
|
||||
registerEventSource := advAPI32.MustFindProc("RegisterEventSourceW")
|
||||
|
||||
sourceName, _ := os.Executable()
|
||||
|
|
Загрузка…
Ссылка в новой задаче