Skip to content

easykoo/dll_caller

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dll_caller

A windows dll call hellper

Windows MessageBox Example

package main

import (
    "github.com/gogap/dll_caller"
    "fmt"
)

func main(){
    ShowMessageBox()
}

func ShowMessageBox() {
    var dll *dll_caller.Dll
    if d, e := dll_caller.NewDll("user32.dll"); e != nil {
        fmt.Println(e.Error())
        return
    } else {
        dll = d
    }

    if e := dll.InitalFunctions("MessageBoxW"); e != nil {
        fmt.Println(e.Error())
        return
    }

    ret, err := dll.Call("MessageBoxW", 0, "hello", "world", 3)

    fmt.Println(ret, err)
}

About

A windows dll call hellper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%