MCPcopy
hub / github.com/RimoChan/match-you / winBox

Function winBox

mother.go:26–35  ·  view source on GitHub ↗
(title string, msg string)

Source from the content-addressed store, hash-verified

24}
25
26func winBox(title string, msg string) error {
27 tt, _ := syscall.UTF16PtrFromString(title)
28 mg, _ := syscall.UTF16PtrFromString(msg)
29 _, _, _ = syscall.NewLazyDLL("user32.dll").NewProc("MessageBoxW").Call(
30 0,
31 uintptr(unsafe.Pointer(mg)),
32 uintptr(unsafe.Pointer(tt)),
33 uintptr(0x00000030|0x00000001))
34 return nil
35}
36
37func consoleMessage() {
38 fmt.Println("阿,您配吗")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected