kernel32

package
v0.0.0-...-6065391 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Kernel32 = windows.NewLazySystemDLL("Kernel32.dll")

Functions

func CloseHandleN

func CloseHandleN(handle *unsafe.Pointer) (err error)

CloseHandleN closes an open object handle The "N" in the function name is for Native as it avoids using external packages https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-closehandle

func GetConsoleWindowG

func GetConsoleWindowG() (handle windows.Handle, err error)

GetConsoleWindowG Retrieves the window handle used by the console associated with the calling process. The "G" at the end of the function name is for Golang because it uses the golang.org/x/sys/windows Go package https://docs.microsoft.com/en-us/windows/console/getconsolewindow

func GetConsoleWindowN

func GetConsoleWindowN() (handle *unsafe.Pointer, err error)

GetConsoleWindowN Retrieves the window handle used by the console associated with the calling process. The "N" in the function name is for Native as it avoids using external packages https://docs.microsoft.com/en-us/windows/console/getconsolewindow

func GetCurrentProcessN

func GetCurrentProcessN() (hProc *unsafe.Pointer, err error)

GetCurrentProcessN retrieves a pseudo handle for the current process. The "N" in the function name is for Native as it avoids using external packages https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentprocess

func GetCurrentThreadN

func GetCurrentThreadN() (hThread *unsafe.Pointer, err error)

GetCurrentThreadN Retrieves a pseudo handle for the calling thread. The "N" in the function name is for Native as it avoids using external packages https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getcurrentthread

func OpenProcessG

func OpenProcessG(ProcessId uint32, DesiredAccess uint32, InheritHandle bool) (handle windows.Handle, err error)

OpenProcessG Opens an existing local process object and returns a handle to it The "G" at the end of the function name is for Golang because it uses the golang.org/x/sys/windows Go package https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocess

func OpenProcessN

func OpenProcessN(ProcessId uint32, DesiredAccess uint32, InheritHandle bool) (hProc *unsafe.Pointer, err error)

OpenProcessN Opens an existing local process object and returns a handle to it The "N" in the function name is for Native as it avoids using external packages https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocess

Types

This section is empty.

Jump to

Keyboard shortcuts

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