dll

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ErrDllFileIsNotSet = "DLL file is not set"
)

Variables

This section is empty.

Functions

func LoadLibrary

func LoadLibrary(
	dllFile string,
	h *windows.Handle,
	funcMappings []FuncMapping,
	funcNamePrefix string,
) (err error)

LoadLibrary loads the DLL library and its functions.

func MustBeNoCallError

func MustBeNoCallError(callErr windows.Errno)

MustBeNoCallError checks for a call error. If call error is set, it finds a name of the function which started this function and panics about that function's failure.

Types

type FuncMapping

type FuncMapping struct {
	Fn           *uintptr
	FunctionName string
}

Jump to

Keyboard shortcuts

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