handle

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateAccess

type DuplicateAccess uint32

DuplicateAccess is the enum for handle duplicate access flags.

const (
	// ThreadQueryAccess determines that handle duplication requires the ability to query thread info.
	ThreadQueryAccess DuplicateAccess = 0x0040
	// ProcessQueryAccess determines that handle duplication requires the ability to query process info.
	ProcessQueryAccess DuplicateAccess = 0x1000
	// ReadControlAccess specifies the ability to query the security descriptor.
	ReadControlAccess DuplicateAccess = 0x00020000
	// SemaQueryAccess is the duplicate access type required for synchronization objects such as mutants.
	SemaQueryAccess DuplicateAccess = 0x0001
	// AllAccess doesn't specify the access mask.
	AllAccess DuplicateAccess = 0
)

type Handle

type Handle uintptr

Handle represents the handle type.

func (Handle) Close

func (handle Handle) Close()

Close disposes the underlying handle object.

func (Handle) Duplicate

func (handle Handle) Duplicate(src, dest Handle, access DuplicateAccess) (Handle, error)

Duplicate duplicates an object handle in the caller address's space.

func (Handle) IsValid

func (handle Handle) IsValid() bool

IsValid determines if handle instance if valid.

Jump to

Keyboard shortcuts

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