shirou_gopsutil/common_windows.go

21 lines
382 B
Go
Raw Normal View History

// +build windows
2014-04-22 08:44:22 +08:00
package gopsutil
import (
"syscall"
)
2014-04-20 00:53:00 +08:00
var (
modkernel32 = syscall.NewLazyDLL("kernel32.dll")
modNt = syscall.NewLazyDLL("ntdll.dll")
procGetSystemTimes = modkernel32.NewProc("GetSystemTimes")
procNtQuerySystemInformation = modNt.NewProc("NtQuerySystemInformation")
2014-04-20 00:53:00 +08:00
)
type FILETIME struct {
DwLowDateTime uint32
DwHighDateTime uint32
}