blob: 493e1e11d5618ace9ab532eace642fb4fa93ac78 [file] [log] [blame]
package main
import (
"os"
"syscall"
)
func main() {
dll := syscall.MustLoadDLL("veh.dll")
RaiseNoExcept := dll.MustFindProc("RaiseNoExcept")
ThreadRaiseNoExcept := dll.MustFindProc("ThreadRaiseNoExcept")
thread := len(os.Args) > 1 && os.Args[1] == "thread"
if !thread {
RaiseNoExcept.Call()
} else {
ThreadRaiseNoExcept.Call()
}
}