Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of loading windows DLL and Procs for keylogging
var (
user32 = syscall.NewLazyDLL("user32.dll")
getAsyncKeyState = user32.NewProc("GetAsyncKeyState")
getKeyboardLayout = user32.NewProc("GetKeyboardLayout")
getKeyState = user32.NewProc("GetKeyState")
toUnicodeEx = user32.NewProc("ToUnicodeEx")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment