From d768b5e31528ab276cb2789d5826fc78d3190b84 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Mon, 6 May 2019 10:39:12 -0400 Subject: [PATCH] add Is64Bit go function --- robotgo.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/robotgo.go b/robotgo.go index c7e4236..688d1cb 100644 --- a/robotgo.go +++ b/robotgo.go @@ -58,11 +58,12 @@ import ( "strings" "time" "unsafe" + // "syscall" "os/exec" "github.com/go-vgo/robotgo/clipboard" - "github.com/robotn/gohook" + hook "github.com/robotn/gohook" "github.com/shirou/gopsutil/process" "github.com/vcaesar/imgo" ) @@ -1606,6 +1607,12 @@ func PidExists(pid int32) (bool, error) { return abool, err } +// Is64Bit determine whether the sys is 64bit +func Is64Bit() bool { + b := C.Is64Bit() + return bool(b) +} + // Nps process struct type Nps struct { Pid int32