Documentation ¶
Index ¶
- Constants
- func AdjustTokenPrivileges(token syscall.Handle, disableAllPrivileges bool, newstate *Tokenprivileges, ...) error
- func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) error
- func SetDebugPrivilege() error
- func SetProcessCritical() error
- type LUID
- type LUIDAndAttributes
- type Tokenprivileges
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 SetDebugPrivilege ¶
func SetDebugPrivilege() error
func SetProcessCritical ¶
func SetProcessCritical() error
Types ¶
type LUIDAndAttributes ¶
type Tokenprivileges ¶
type Tokenprivileges struct { PrivilegeCount uint32 Privileges [1]LUIDAndAttributes }
Click to show internal directories.
Click to hide internal directories.