wtsapi32

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

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 syscall.Handle) error

func WTSFreeMemoryEx

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

func WTSOpenServer

func WTSOpenServer(server string) (syscall.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 syscall.Handle, logger log.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