//go:build windows package ui import "golang.org/x/sys/windows" // MB_ICONHAND selects the system critical-stop sound for a confirmed fall. const mbIconHand = 0x00000010 var ( user32 = windows.NewLazySystemDLL("user32.dll") procMessageBeep = user32.NewProc("MessageBeep") ) func playAlertSound() { _, _, _ = procMessageBeep.Call(uintptr(mbIconHand)) }