Versions in this module Expand all Collapse all v1 v1.1.0 Nov 21, 2017 Changes in this version + const ERROR_NOT_ALL_ASSIGNED — windows/amd64 + const MAX_PATH — windows/amd64 + const PROCESS_QUERY_LIMITED_INFORMATION — windows/amd64 + const PROCESS_VM_READ — windows/amd64 + const SeDebugPrivilege — windows/amd64 + const TH32CS_INHERIT — windows/amd64 + const TH32CS_SNAPHEAPLIST — windows/amd64 + const TH32CS_SNAPMODULE — windows/amd64 + const TH32CS_SNAPMODULE32 — windows/amd64 + const TH32CS_SNAPPROCESS — windows/amd64 + const TH32CS_SNAPTHREAD — windows/amd64 + func CreateToolhelp32Snapshot(flags, pid uint32) (syscall.Handle, error) — windows/amd64 + func EnableTokenPrivileges(token syscall.Token, privileges ...string) error — windows/amd64 + func EnumProcesses() ([]uint32, error) — windows/amd64 + func FiletimeToDuration(ft *syscall.Filetime) time.Duration — windows/amd64 + func GetDiskFreeSpaceEx(directoryName string) (freeBytesAvailable, totalNumberOfBytes, totalNumberOfFreeBytes uint64, ...) — windows/amd64 + func GetLogicalDriveStrings() ([]string, error) — windows/amd64 + func GetProcessImageFileName(handle syscall.Handle) (string, error) — windows/amd64 + func GetSystemTimes() (idle, kernel, user time.Duration, err error) — windows/amd64 + func GetTokenPrivileges(token syscall.Token) (map[string]Privilege, error) — windows/amd64 + func LookupPrivilegeName(systemName string, luid int64) (string, error) — windows/amd64 + type DebugInfo struct — windows/amd64 + Arch string + NumCPU int + OSVersion Version + ProcessPrivs map[string]Privilege + User User + func GetDebugInfo() (*DebugInfo, error) + func (d DebugInfo) String() string + type DriveType uint32 — windows/amd64 + const DRIVE_CDROM + const DRIVE_FIXED + const DRIVE_NO_ROOT_DIR + const DRIVE_RAMDISK + const DRIVE_REMOTE + const DRIVE_REMOVABLE + const DRIVE_UNKNOWN + func GetDriveType(rootPathName string) (DriveType, error) + func (dt DriveType) String() string + type MemoryStatusEx struct — windows/amd64 + AvailExtendedVirtual uint64 + AvailPageFile uint64 + AvailPhys uint64 + AvailVirtual uint64 + MemoryLoad uint32 + TotalPageFile uint64 + TotalPhys uint64 + TotalVirtual uint64 + func GlobalMemoryStatusEx() (MemoryStatusEx, error) + type Privilege struct — windows/amd64 + Enabled bool + EnabledByDefault bool + LUID int64 + Name string + Removed bool + Used bool + func (p Privilege) String() string + type ProcessBasicInformation struct — windows/amd64 + AffinityMask uint + BasePriority uint + ExitStatus uint + InheritedFromUniqueProcessID uint + PebBaseAddress uintptr + UniqueProcessID uint + func NtQueryProcessBasicInformation(handle syscall.Handle) (ProcessBasicInformation, error) + type ProcessEntry32 struct — windows/amd64 + CntThreads uint32 + CntUsage uint32 + DefaultHeapID uintptr + Flags uint32 + ModuleID uint32 + ParentProcessID uint32 + PriorityClassBase int32 + ProcessID uint32 + func Process32First(handle syscall.Handle) (ProcessEntry32, error) + func Process32Next(handle syscall.Handle) (ProcessEntry32, error) + func (p ProcessEntry32) ExeFile() string + func (p ProcessEntry32) String() string + type ProcessMemoryCountersEx struct — windows/amd64 + PageFaultCount uint32 + PagefileUsage uintptr + PeakPagefileUsage uintptr + PeakWorkingSetSize uintptr + PrivateUsage uintptr + QuotaNonPagedPoolUsage uintptr + QuotaPagedPoolUsage uintptr + QuotaPeakNonPagedPoolUsage uintptr + QuotaPeakPagedPoolUsage uintptr + WorkingSetSize uintptr + func GetProcessMemoryInfo(handle syscall.Handle) (ProcessMemoryCountersEx, error) + type SystemProcessorPerformanceInformation struct — windows/amd64 + IdleTime time.Duration + KernelTime time.Duration + UserTime time.Duration + func NtQuerySystemProcessorPerformanceInformation() ([]SystemProcessorPerformanceInformation, error) + type User struct — windows/amd64 + Account string + Domain string + SID string + Type uint32 + func GetTokenUser(token syscall.Token) (User, error) + func (u User) String() string + type Version struct — windows/amd64 + Build int + Major int + Minor int + func GetWindowsVersion() Version + func (v Version) IsWindowsVistaOrGreater() bool