mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
add Is64Bit go function
This commit is contained in:
parent
f7c0fa2441
commit
d768b5e315
@ -58,11 +58,12 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
// "syscall"
|
// "syscall"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/go-vgo/robotgo/clipboard"
|
"github.com/go-vgo/robotgo/clipboard"
|
||||||
"github.com/robotn/gohook"
|
hook "github.com/robotn/gohook"
|
||||||
"github.com/shirou/gopsutil/process"
|
"github.com/shirou/gopsutil/process"
|
||||||
"github.com/vcaesar/imgo"
|
"github.com/vcaesar/imgo"
|
||||||
)
|
)
|
||||||
@ -1606,6 +1607,12 @@ func PidExists(pid int32) (bool, error) {
|
|||||||
return abool, err
|
return abool, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Is64Bit determine whether the sys is 64bit
|
||||||
|
func Is64Bit() bool {
|
||||||
|
b := C.Is64Bit()
|
||||||
|
return bool(b)
|
||||||
|
}
|
||||||
|
|
||||||
// Nps process struct
|
// Nps process struct
|
||||||
type Nps struct {
|
type Nps struct {
|
||||||
Pid int32
|
Pid int32
|
||||||
|
Loading…
Reference in New Issue
Block a user