Keep dist/navis-release/ path and ship Navis.exe as a same-hash alias of EvilFox.exe so 3.x clients can still update from the Windows branch feed.
17 lines
378 B
Go
17 lines
378 B
Go
//go:build windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"syscall"
|
|
"unsafe"
|
|
)
|
|
|
|
func messageBox(text string) {
|
|
user32 := syscall.NewLazyDLL("user32.dll")
|
|
proc := user32.NewProc("MessageBoxW")
|
|
title, _ := syscall.UTF16PtrFromString("EvilFox")
|
|
body, _ := syscall.UTF16PtrFromString(text)
|
|
proc.Call(0, uintptr(unsafe.Pointer(body)), uintptr(unsafe.Pointer(title)), 0x10) // MB_ICONERROR
|
|
}
|