Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func BytePtrToString(p *uint8) string
- func CreateQuery() (syscall.Handle, error)
- func GetAdapterList() (*syscall.IpAdapterInfo, error)
- func RegGetInt(hKey uint32, subKey string, value string) (uint32, error)
- func RegGetString(hKey uint32, subKey string, value string) (string, error)
- type CounterInfo
- type MEMORYSTATUSEX
- type PDH_FMT_COUNTERVALUE_DOUBLE
- type PDH_FMT_COUNTERVALUE_ITEM_DOUBLE
- type SYSTEM_INFO
Constants ¶
View Source
const ( ERROR_SUCCESS = 0 DRIVE_REMOVABLE = 2 DRIVE_FIXED = 3 HKEY_LOCAL_MACHINE = 0x80000002 RRF_RT_REG_SZ = 0x00000002 RRF_RT_REG_DWORD = 0x00000010 PDH_FMT_DOUBLE = 0x00000200 PDH_INVALID_DATA = 0xc0000bc6 )
Variables ¶
View Source
var ( RegGetValue = modadvapi32.NewProc("RegGetValueW") GetSystemInfo = modkernel32.NewProc("GetSystemInfo") GetTickCount = modkernel32.NewProc("GetTickCount") GetDiskFreeSpaceEx = modkernel32.NewProc("GetDiskFreeSpaceExW") GetLogicalDriveStrings = modkernel32.NewProc("GetLogicalDriveStringsW") GetDriveType = modkernel32.NewProc("GetDriveTypeW") QueryDosDevice = modkernel32.NewProc("QueryDosDeviceW") GetVolumeInformationW = modkernel32.NewProc("GetVolumeInformationW") GlobalMemoryStatusEx = modkernel32.NewProc("GlobalMemoryStatusEx") PdhOpenQuery = modpdh.NewProc("PdhOpenQuery") PdhAddCounter = modpdh.NewProc("PdhAddCounterW") PdhCollectQueryData = modpdh.NewProc("PdhCollectQueryData") PdhGetFormattedCounterValue = modpdh.NewProc("PdhGetFormattedCounterValue") PdhCloseQuery = modpdh.NewProc("PdhCloseQuery") )
Functions ¶
func BytePtrToString ¶
func CreateQuery ¶
func GetAdapterList ¶
func GetAdapterList() (*syscall.IpAdapterInfo, error)
Types ¶
type CounterInfo ¶
func CreateCounter ¶
func CreateCounter(query syscall.Handle, k, v string) (*CounterInfo, error)
type MEMORYSTATUSEX ¶
type PDH_FMT_COUNTERVALUE_ITEM_DOUBLE ¶
type PDH_FMT_COUNTERVALUE_ITEM_DOUBLE struct { Name *uint16 FmtValue PDH_FMT_COUNTERVALUE_DOUBLE }
type SYSTEM_INFO ¶
Click to show internal directories.
Click to hide internal directories.