Documentation ¶
Index ¶
- Variables
- func GetBasicJobLimitInfo(job windows.Handle) (*windows.JOBOBJECT_BASIC_LIMIT_INFORMATION, error)
- func GetExtendedJobLimitInfo(job windows.Handle) (*windows.JOBOBJECT_EXTENDED_LIMIT_INFORMATION, error)
- func GetIntegrityLevelToken(sidType uint32) (windows.Token, error)
- func NewJobFromProcess(p *os.Process) (windows.Handle, error)
- func ResumeThread(pid uint32) error
- func SuspendThread(pid uint32) error
- func TerminateJob(job windows.Handle) error
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidIntegrityLevel = errors.New("Invalid Integrity Level")
ErrInvalidIntegrityLevel is used when an integrity level is not found in SidWinIntegrityLevels
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 ¶
GetIntegrityLevelToken returns an access token that represents the given SID
func NewJobFromProcess ¶
NewJobFromProcess assigns the process to a new job object.
func ResumeThread ¶
ResumeThread resumes the execution of the main thread of the process associated with PID.
func SuspendThread ¶
SuspendThread suspend the execution of the main thread of the process associated with PID.
func TerminateJob ¶
TerminateJob terminates the job object and its child processes before closing the handle.
Types ¶
This section is empty.