Ariver
2026-06-02 3fbceec8de833416bf1ae049f959f222c3f1a4a0
1
2
3
4
5
6
7
8
9
10
package main
 
import "syscall"
 
func isChinese() bool {
    kernel32 := syscall.NewLazyDLL("kernel32.dll")
    proc := kernel32.NewProc("GetUserDefaultUILanguage")
    langID, _, _ := proc.Call()
    return (langID & 0x3FF) == 0x04 // LANG_CHINESE
}