winapi

package
v0.0.0-...-2b5c435 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KF_FLAG_DEFAULT                          = 0
	KF_FLAG_FORCE_APP_DATA_REDIRECTION       = 0x00080000
	KF_FLAG_RETURN_FILTER_REDIRECTION_TARGET = 0x00040000
	KF_FLAG_FORCE_PACKAGE_REDIRECTION        = 0x00020000
	KF_FLAG_NO_PACKAGE_REDIRECTION           = 0x00010000
	KF_FLAG_FORCE_APPCONTAINER_REDIRECTION   = 0x00020000 // Deprecated
	KF_FLAG_NO_APPCONTAINER_REDIRECTION      = 0x00010000 // Deprecated
	KF_FLAG_CREATE                           = 0x00008000
)

Variables

View Source
var (
	FOLDERID_System         = KNOWNFOLDERID{0x1AC14E77, 0x02E7, 0x4E5D, [8]byte{0xB7, 0x44, 0x2E, 0xB1, 0xAE, 0x51, 0x98, 0xB7}}
	FOLDERID_RoamingAppData = KNOWNFOLDERID{0x3EB685DB, 0x65F9, 0x4CF6, [8]byte{0xA0, 0x3A, 0xE3, 0xEF, 0x65, 0x72, 0x9F, 0x3D}}
)

Functions

func GetStdHandle

func GetStdHandle(file *os.File) (syscall.Handle, error)

GetStdHandle returns a handle to one of stdin/stdout/stderr, which can be inherited by a child process. The caller is responsible for closing the result.

func SHGetKnownFolderPath

func SHGetKnownFolderPath(rfid KNOWNFOLDERID, flags DWORD) (string, error)

Types

type DWORD

type DWORD uint32

type HResult

type HResult uint32

func (HResult) Error

func (hr HResult) Error() string

func (HResult) Ok

func (hr HResult) Ok() bool

func (HResult) Unwrap

func (hr HResult) Unwrap() error

type KNOWNFOLDERID

type KNOWNFOLDERID syscall.GUID

Jump to

Keyboard shortcuts

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