windows

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIntegrityLevel = errors.New("Invalid Integrity Level")

ErrInvalidIntegrityLevel is used when an integrity level is not found in SidWinIntegrityLevels

View Source
var SidWinIntegrityLevels = map[string]uint32{
	"Untrusted": windows.WinUntrustedLabelSid,
	"Low":       windows.WinLowLabelSid,
}

SidWinIntegrityLevels contains a mapping of SIDs to integrity levels

Functions

func GetBasicJobLimitInfo

func GetBasicJobLimitInfo(job windows.Handle) (*windows.JOBOBJECT_BASIC_LIMIT_INFORMATION, error)

GetBasicJobLimitInfo retrieves limit and job state information from the job object.

func GetExtendedJobLimitInfo

func GetExtendedJobLimitInfo(job windows.Handle) (*windows.JOBOBJECT_EXTENDED_LIMIT_INFORMATION, error)

GetExtendedJobLimitInfo retrieves extended limit and job state information from the job object.

func GetIntegrityLevelToken

func GetIntegrityLevelToken(sidType uint32) (windows.Token, error)

GetIntegrityLevelToken returns an access token that represents the given SID

func NewJobFromProcess

func NewJobFromProcess(p *os.Process) (windows.Handle, error)

NewJobFromProcess assigns the process to a new job object.

func ResumeThread

func ResumeThread(pid uint32) error

ResumeThread resumes the execution of the main thread of the process associated with PID.

func SuspendThread

func SuspendThread(pid uint32) error

SuspendThread suspend the execution of the main thread of the process associated with PID.

func TerminateJob

func TerminateJob(job windows.Handle) error

TerminateJob terminates the job object and its child processes before closing the handle.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL