add Is64Bit go function

This commit is contained in:
vcaesar 2019-05-06 10:39:12 -04:00
parent f7c0fa2441
commit d768b5e315

View File

@ -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