summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-08 23:51:11 -0500
committerPietro Gagliardi <[email protected]>2014-02-08 23:51:11 -0500
commitecc00bd1f5cb5d97387f762455c6c51afd0f2fae (patch)
treec8fdb445944dcb5d231c7d57a12b747708ed6f57 /common.go
parent35e8a028f5d5f9654d7fa34ebadf26cfef845759 (diff)
Added a lot of the stuff needed to create a simple window. Not done yet...
Diffstat (limited to 'common.go')
-rw-r--r--common.go16
1 files changed, 15 insertions, 1 deletions
diff --git a/common.go b/common.go
index 8b4daa5..f4c769e 100644
--- a/common.go
+++ b/common.go
@@ -7,11 +7,25 @@ import (
var (
user32 = syscall.NewLazyDLL("user32.dll")
+ kernel32 = syscall.NewLazyDLL("kernel32.dll")
)
-type HWND uintptr
+type HANDLE uintptr
+type HWND HANDLE
+type HBRUSH HANDLE
const (
NULL = 0
)
+type ATOM uint16
+
+// TODO pull the thanks for these three from the old wingo source
+type WPARAM uintptr
+type LPARAM uintptr
+type LRESULT uintptr
+
+// microsoft's header files do this
+func MAKEINTRESOURCE(what uint16) uintptr {
+ return uintptr(what)
+}