taskuser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package taskuser verifies only the current Windows process's read-only identity. It does not connect to Task Scheduler, run scripts or manage tasks.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupported = errors.New("Windows current-user task identity is unsupported on this platform")
	ErrIdentity    = errors.New("Windows current-user task identity is unverified or not permitted")
)

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context has no public constructor or writable identity fields. Its zero value is unverified. A successful Current does not prove an active Scheduler session, task permission, task registration, process readiness or USB availability.

func Current

func Current() (Context, error)

func (Context) AdminMembership

func (c Context) AdminMembership() string

func (Context) ElevationType

func (c Context) ElevationType() uint32

func (Context) IntegrityRID

func (c Context) IntegrityRID() uint32

func (Context) SID

func (c Context) SID() string

func (Context) SessionID

func (c Context) SessionID() uint32

func (Context) TaskPath

func (c Context) TaskPath() string

func (Context) Valid

func (c Context) Valid() bool

Jump to

Keyboard shortcuts

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