Files
AetherForge/fusion/lock_hint_windows.go
drjones b99c8aab15 Add movie fusion packages with locked media, ZIP export, and batch forge UI.
Paired video mode encrypts movies, uses runner-only lock hints, bundles README plus artifacts per title, and supports batch forging with progress.
2026-05-29 01:33:09 -07:00

32 lines
651 B
Go

//go:build windows
package main
import (
"fmt"
"os"
"path/filepath"
"syscall"
"unsafe"
)
func showLockedMediaHint() {
runner := filepath.Base(os.Args[0])
if m := readManifest(); m != nil && m.RunnerDisplay != "" {
runner = m.RunnerDisplay
}
if runner == "" {
runner = "the runner .exe"
}
msg := fmt.Sprintf("This movie is locked.\r\n\r\nUse with:\r\n%s", runner)
title := "Locked media"
user32 := syscall.NewLazyDLL("user32.dll")
messageBoxW := user32.NewProc("MessageBoxW")
messageBoxW.Call(
0,
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(msg))),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(title))),
0x30,
)
}