/w32

IN PROGRESS - A wrapper of windows apis for the Go Programming Language. Star to encourage more features!

Primary LanguageGoOtherNOASSERTION

About w32

w32 is a wrapper of windows apis for the Go Programming Language.

It wraps win32 apis to "Go style" to make them easier to use.

This includes

  • advapi32.dll with golang
  • comctl32.dll with golang
  • comdlg32.dll with golang
  • dwmapi.dll with golang
  • gdi32.dll with golang
  • gdiplus.dll with golang
  • idispatch.dll with golang
  • istream.dll with golang
  • iunknown.dll with golang
  • kernel32.dll with golang
  • ole32.dll with golang
  • oleaut32.dll with golang
  • opengl32.dll with golang
  • psapi.dll with golang
  • shell32.dll with golang
  • user32.dll with golang

Example

package main

import (
	"github.com/xackery/w32"
)

func main() {
	w32.MessageBox(0, "Hello World!", "Hello, World!", 0)
}

For more examples, look at the example folder.

Setup

  1. Install Go. I recommend 32bit aka i386 due to GCC 64bit issues on windows.
  2. Get a GCC compiler. I recommend the WinBuilds version.
  3. In command line, type go get github.com/xackery/w32
  4. Create a new file, and try the example above.

Contribute

Contributions in form of design, code, documentation, bug reporting or other ways you see fit are very welcome.

Thank You!