nativeapi

package
v0.0.0-...-99bc6c1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyBuffer is returned when a nil or zero-sized buffer is provided
	// to a system call.
	ErrEmptyBuffer = errors.New("nil or empty buffer provided")
)

Functions

func ProcessCommandLine

func ProcessCommandLine(process syscall.Handle) (commandLine string, err error)

ProcessCommandLine requests the command line of a process from the NT kernel. It calls ProcessInfo.

This call is only supported on Windows 10 1511 or newer.

func ProcessInfo

func ProcessInfo(process syscall.Handle, class processinfo.Class, buffer []byte) (n uint32, err error)

ProcessInfo requests information about a process from the NT kernel. It calls the NtQueryInformationProcess NT native API function.

The type of information to be retrieved is defined by the given information class.

https://docs.microsoft.com/en-us/windows/desktop/api/winternl/nf-winternl-ntqueryinformationprocess

func ProcessSessionID

func ProcessSessionID(process syscall.Handle) (sessionID uint32, err error)

ProcessSessionID requests the session ID of a process from the NT kernel. It calls ProcessInfo.

Types

This section is empty.

Jump to

Keyboard shortcuts

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