wtsapi32

package
v0.30.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	WTSSessionStates = map[WTSConnectState]string{
		// contains filtered or unexported fields
	}
)

Functions

func WTSCloseServer

func WTSCloseServer(server windows.Handle) error

func WTSFreeMemoryEx

func WTSFreeMemoryEx(class WTSTypeClass, pMemory uintptr, numberOfEntries uint32) error

func WTSOpenServer

func WTSOpenServer(server string) (windows.Handle, error)

Types

type WTSConnectState

type WTSConnectState uint32

type WTSSession

type WTSSession struct {
	ExecEnvID   uint32
	State       WTSConnectState
	SessionID   uint32
	SessionName string
	HostName    string
	UserName    string
	DomainName  string
	FarmName    string
}

func WTSEnumerateSessionsEx

func WTSEnumerateSessionsEx(server windows.Handle, logger *slog.Logger) ([]WTSSession, error)

type WTSTypeClass

type WTSTypeClass int
const (
	WTSTypeProcessInfoLevel0 WTSTypeClass = iota
	WTSTypeProcessInfoLevel1
	WTSTypeSessionInfoLevel1
)

The valid values for the WTSTypeClass enumeration.

Jump to

Keyboard shortcuts

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