Documentation ¶
Index ¶
- Variables
- func CloseHandleN(handle *unsafe.Pointer) (err error)
- func GetConsoleWindowG() (handle windows.Handle, err error)
- func GetConsoleWindowN() (handle *unsafe.Pointer, err error)
- func GetCurrentProcessN() (hProc *unsafe.Pointer, err error)
- func GetCurrentThreadN() (hThread *unsafe.Pointer, err error)
- func OpenProcessG(ProcessId uint32, DesiredAccess uint32, InheritHandle bool) (handle windows.Handle, err error)
- func OpenProcessN(ProcessId uint32, DesiredAccess uint32, InheritHandle bool) (hProc *unsafe.Pointer, err error)
Constants ¶
This section is empty.
Variables ¶
var Kernel32 = windows.NewLazySystemDLL("Kernel32.dll")
Functions ¶
func CloseHandleN ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.