GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lazercorn/w32: A wrapper of Windows APIs for Go

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
.gitignore
.gitignore
 
 
AUTHORS
AUTHORS
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
advapi32.go
advapi32.go
 
 
comctl32.go
comctl32.go
 
 
comdlg32.go
comdlg32.go
 
 
constants.go
constants.go
 
 
dwmapi.go
dwmapi.go
 
 
gdi32.go
gdi32.go
 
 
gdiplus.go
gdiplus.go
 
 
idispatch.go
idispatch.go
 
 
istream.go
istream.go
 
 
iunknown.go
iunknown.go
 
 
kernel32.go
kernel32.go
 
 
ole32.go
ole32.go
 
 
oleaut32.go
oleaut32.go
 
 
opengl32.go
opengl32.go
 
 
psapi.go
psapi.go
 
 
shell32.go
shell32.go
 
 
typedef.go
typedef.go
 
 
user32.go
user32.go
 
 
utils.go
utils.go
 
 
vars.go
vars.go
 
 

Repository files navigation

Notes

The original repository appear[s|ed] to be abandoned. This mirror has some of my own additions plus updates from other forks of the original project. I've attempted to document where I've pulled code from someone else.

Additional APIs compared to original repo:

  • GetWindowTextW
  • GetForegroundWindow
  • VirtualAllocEx
  • VirtualAlloc
  • GetProcAddress
  • CreateRemoteThread
  • LoadLibraryA
  • CreateProcessA
  • SetWinEventHook
  • UnhookWinEvent

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/JamesHovious/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!

About

A wrapper of Windows APIs for Go

Resources

Readme
License
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.