procthreadapi

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProcessCritical

func IsProcessCritical(process syscall.Handle) (critical bool, err error)

IsProcessCritical returns true if the given process handle represents a critical system process. It calls the IsProcessCritical windows API function.

This call is only supported on Windows 8.1 or newer.

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-isprocesscritical

func TerminateProcess

func TerminateProcess(process syscall.Handle, exitCode uint32) (err error)

TerminateProcess attempts to terminate the process with the given handle. It calls the TerminateProcess windows API function.

TerminateProcess returns nil if successful.

https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess

Types

This section is empty.

Jump to

Keyboard shortcuts

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