winutil

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: BSD-3-Clause Imports: 0 Imported by: 10

Documentation

Overview

Package winuntil contains misc Windows/win32 helper functions.

Index

Constants

View Source
const RegBase = `SOFTWARE\Tailscale IPN`

Variables

This section is empty.

Functions

func GetDesktopPID

func GetDesktopPID() (pid uint32, ok bool)

GetDesktopPID searches the PID of the process that's running the currently active desktop and whether it was found. Usually the PID will be for explorer.exe.

func GetRegString added in v1.8.0

func GetRegString(name, defval string) string

GetRegString looks up a registry path in our local machine path, or returns the given default if it can't.

This function will only work on GOOS=windows. Trying to run it on any other OS will always return the default value.

func WTSGetActiveConsoleSessionId added in v1.12.0

func WTSGetActiveConsoleSessionId() uint32

TODO(crawshaw): replace with x/sys/windows... one day. https://go-review.googlesource.com/c/sys/+/331909

Types

This section is empty.

Jump to

Keyboard shortcuts

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