2014-04-18 23:09:25 +08:00
|
|
|
// +build windows
|
|
|
|
|
2014-04-22 08:44:22 +08:00
|
|
|
package gopsutil
|
2014-04-18 23:09:25 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2014-04-20 00:53:00 +08:00
|
|
|
var (
|
2014-04-28 00:15:29 +08:00
|
|
|
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
|
2014-04-25 22:45:22 +08:00
|
|
|
modNt = syscall.NewLazyDLL("ntdll.dll")
|
2014-04-28 00:15:29 +08:00
|
|
|
|
|
|
|
procGetSystemTimes = modkernel32.NewProc("GetSystemTimes")
|
|
|
|
procNtQuerySystemInformation = modNt.NewProc("NtQuerySystemInformation")
|
2014-04-20 00:53:00 +08:00
|
|
|
)
|
2014-04-22 21:10:13 +08:00
|
|
|
|
|
|
|
type FILETIME struct {
|
|
|
|
DwLowDateTime uint32
|
|
|
|
DwHighDateTime uint32
|
|
|
|
}
|