Documentation
¶
Rendered for windows/amd64
Overview ¶
Package win32 provides WinAPI functions and wrappers that are either inaccessible through golang.org/x/sys/windows or too complex to use directly.
Index ¶
- Constants
- func ConvertSidToStringSid(sid *windows.SID) (string, error)
- func CreateRemoteThreadMinimal(process windows.Handle, startAddress uintptr) error
- func GetModuleFilenameExW(process windows.Handle, module windows.Handle) (string, error)
- func GetSystemTimes() (idleTicks int64, kernelTicks int64, userTicks int64, err error)
- func GetTokenOwner(token windows.Token) (*windows.SID, error)
- func ListThreads(pid uint32) ([]uint32, error)
- func QueryFullProcessImageName(procHandle windows.Handle) (string, error)
- func ReadProcessMemory(process windows.Handle, address uintptr, buffer []byte) (int, error)
- func ResumeProcess(pid uint32) error
- func SuspendProcess(pid uint32) error
- func SuspendThread(thread windows.Handle) (uint32, error)
- type MemoryBasicInformation
- type MemoryStatusEx
- type TokenOwner
Constants ¶
View Source
const ( MEM_IMAGE = 0x1000000 MEM_MAPPED = 0x40000 MEM_PRIVATE = 0x20000 MEM_COMMIT = windows.MEM_COMMIT MEM_FREE = 0x10000 MEM_RESERVE = windows.MEM_RESERVE )
View Source
const DwordNegativeOne uintptr = 0xffffffff
View Source
const Null uintptr = 0
Variables ¶
This section is empty.
Functions ¶
func GetModuleFilenameExW ¶
func GetSystemTimes ¶
func ListThreads ¶
func ReadProcessMemory ¶
func ResumeProcess ¶
func SuspendProcess ¶
Types ¶
type MemoryBasicInformation ¶
type MemoryBasicInformation struct { BaseAddress uintptr AllocationBase uintptr AllocationProtect uint32 RegionSize uintptr State uint32 Protect uint32 Type uint32 // contains filtered or unexported fields }
func VirtualQueryEx ¶
func VirtualQueryEx(process windows.Handle, address uintptr) (MemoryBasicInformation, error)
type MemoryStatusEx ¶
type MemoryStatusEx struct { Length uint32 MemoryLoad uint32 TotalPhys uint64 AvailPhys uint64 TotalPageFile uint64 AvailPageFile uint64 TotalVirtual uint64 AvailVirtual uint64 AvailExtendedVirtual uint64 }
func GlobalMemoryStatusEx ¶
func GlobalMemoryStatusEx() (*MemoryStatusEx, error)
type TokenOwner ¶
Click to show internal directories.
Click to hide internal directories.