diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-11 16:17:17 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-11 16:17:17 -0500 |
| commit | 9b19ee72457586e41da5788f802c6bc55ea7a84b (patch) | |
| tree | eea575b4db46d314f27a1da3044a25dea7787dc7 /unmigrated/wndproc_windows.go | |
| parent | 9794814e9375e597d087b94e9643c943f7999f9c (diff) | |
Moved things that I haven't migated yet out of the way for now.
Diffstat (limited to 'unmigrated/wndproc_windows.go')
| -rw-r--r-- | unmigrated/wndproc_windows.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/unmigrated/wndproc_windows.go b/unmigrated/wndproc_windows.go new file mode 100644 index 0000000..b9c13f2 --- /dev/null +++ b/unmigrated/wndproc_windows.go @@ -0,0 +1,24 @@ +// 8 february 2014 +package main + +import ( +// "syscall" +// "unsafe" +) + +// TODO error handling +type WNDPROC func(hwnd HWND, uMsg uint32, wParam WPARAM, lParam LPARAM) LRESULT + +var ( + defWindowProc = user32.NewProc("DefWindowProcW") +) + +// TODO error handling +func DefWindowProc(hwnd HWND, uMsg uint32, wParam WPARAM, lParam LPARAM) LRESULT { + r1, _, _ := defWindowProc.Call( + uintptr(hwnd), + uintptr(uMsg), + uintptr(wParam), + uintptr(lParam)) + return LRESULT(r1) +} |
