Documentation ¶
Overview ¶
Package winapi contains various low-level bindings to Windows APIs. It can be thought of as an extension to golang.org/x/sys/windows.
Index ¶
Constants ¶
View Source
const ( BINDFLT_FLAG_READ_ONLY_MAPPING uint32 = 0x00000001 BINDFLT_FLAG_MERGED_BIND_MAPPING uint32 = 0x00000002 BINDFLT_FLAG_USE_CURRENT_SILO_MAPPING uint32 = 0x00000004 )
View Source
const ( LOGON32_LOGON_INTERACTIVE uint32 = 2 LOGON32_LOGON_NETWORK uint32 = 3 LOGON32_LOGON_BATCH uint32 = 4 LOGON32_LOGON_SERVICE uint32 = 5 LOGON32_LOGON_UNLOCK uint32 = 7 LOGON32_LOGON_NETWORK_CLEARTEXT uint32 = 8 LOGON32_LOGON_NEW_CREDENTIALS uint32 = 9 )
Logon types
View Source
const ( LOGON32_PROVIDER_DEFAULT uint32 = 0 LOGON32_PROVIDER_WINNT40 uint32 = 2 LOGON32_PROVIDER_WINNT50 uint32 = 3 )
Logon providers
View Source
const ( PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE = 0x20016 PROC_THREAD_ATTRIBUTE_JOB_LIST = 0x2000D )
View Source
const ALL_PROCESSOR_GROUPS = 0xFFFF
Get count from all processor groups. https://docs.microsoft.com/en-us/windows/win32/procthread/processor-groups
View Source
const PROCESS_ALL_ACCESS uint32 = 2097151
View Source
const ProcessVmCounters = 3
ProcessVmCounters corresponds to the _VM_COUNTERS_EX and _VM_COUNTERS_EX2 structures.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegType ¶ added in v0.12.0
type RegType uint32
const ( // Registry value types: https://docs.microsoft.com/en-us/windows/win32/sysinfo/registry-value-types REG_TYPE_NONE RegType = 0 REG_TYPE_SZ RegType = 1 REG_TYPE_EXPAND_SZ RegType = 2 REG_TYPE_BINARY RegType = 3 REG_TYPE_DWORD RegType = 4 REG_TYPE_DWORD_LITTLE_ENDIAN RegType = 4 REG_TYPE_DWORD_BIG_ENDIAN RegType = 5 REG_TYPE_LINK RegType = 6 REG_TYPE_MULTI_SZ RegType = 7 REG_TYPE_RESOURCE_LIST RegType = 8 REG_TYPE_FULL_RESOURCE_DESCRIPTOR RegType = 9 REG_TYPE_RESOURCE_REQUIREMENTS_LIST RegType = 10 REG_TYPE_QWORD RegType = 11 REG_TYPE_QWORD_LITTLE_ENDIAN RegType = 11 )
type VM_COUNTERS_EX ¶ added in v0.9.3
type VM_COUNTERS_EX struct { PeakVirtualSize uintptr VirtualSize uintptr PageFaultCount uint32 PeakWorkingSetSize uintptr WorkingSetSize uintptr QuotaPeakPagedPoolUsage uintptr QuotaPagedPoolUsage uintptr QuotaPeakNonPagedPoolUsage uintptr QuotaNonPagedPoolUsage uintptr PagefileUsage uintptr PeakPagefileUsage uintptr PrivateUsage uintptr }
typedef struct _VM_COUNTERS_EX { SIZE_T PeakVirtualSize; SIZE_T VirtualSize; ULONG PageFaultCount; SIZE_T PeakWorkingSetSize; SIZE_T WorkingSetSize; SIZE_T QuotaPeakPagedPoolUsage; SIZE_T QuotaPagedPoolUsage; SIZE_T QuotaPeakNonPagedPoolUsage; SIZE_T QuotaNonPagedPoolUsage; SIZE_T PagefileUsage; SIZE_T PeakPagefileUsage; SIZE_T PrivateUsage; } VM_COUNTERS_EX, *PVM_COUNTERS_EX;
type VM_COUNTERS_EX2 ¶ added in v0.9.3
type VM_COUNTERS_EX2 struct { CountersEx VM_COUNTERS_EX PrivateWorkingSetSize uintptr }
typedef struct _VM_COUNTERS_EX2 { VM_COUNTERS_EX CountersEx; SIZE_T PrivateWorkingSetSize; SIZE_T SharedCommitUsage; } VM_COUNTERS_EX2, *PVM_COUNTERS_EX2;
Click to show internal directories.
Click to hide internal directories.