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

Function isDoubleClick

mother.go:12–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func isDoubleClick() bool {
13 kernel32 := syscall.NewLazyDLL("kernel32.dll")
14 lp := kernel32.NewProc("GetConsoleProcessList")
15 if lp != nil {
16 var ids [2]uint32
17 var maxCount uint32 = 2
18 ret, _, _ := lp.Call(uintptr(unsafe.Pointer(&ids)), uintptr(maxCount))
19 if ret > 1 {
20 return false
21 }
22 }
23 return true
24}
25
26func winBox(title string, msg string) error {
27 tt, _ := syscall.UTF16PtrFromString(title)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected