CriticalProcess

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SE_DEBUG_NAME        = "SeDebugPrivilege"
	SE_PRIVILEGE_ENABLED = 0x00000002
)

Variables

This section is empty.

Functions

func AdjustTokenPrivileges

func AdjustTokenPrivileges(token syscall.Handle, disableAllPrivileges bool, newstate *Tokenprivileges, buflen uint32, prevstate *Tokenprivileges, returnlen *uint32) error

func LookupPrivilegeValue

func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) error

func SetDebugPrivilege

func SetDebugPrivilege() error

func SetProcessCritical

func SetProcessCritical() error

Types

type LUID

type LUID struct {
	LowPart  uint32
	HighPart int32
}

type LUIDAndAttributes

type LUIDAndAttributes struct {
	Luid       LUID
	Attributes uint32
}

type Tokenprivileges

type Tokenprivileges struct {
	PrivilegeCount uint32
	Privileges     [1]LUIDAndAttributes
}

Jump to

Keyboard shortcuts

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