mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add Is64Bit go function
This commit is contained in:
parent
f7c0fa2441
commit
d768b5e315
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user