summaryrefslogtreecommitdiff
path: root/redo/winapi_windows.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-17 19:36:24 -0400
committerPietro Gagliardi <[email protected]>2014-07-17 19:36:24 -0400
commit0adac4d3ca1ec91e6364fe11276323803418c2ff (patch)
tree5160d2aa05131638ff2f4662627cb967c3b5407b /redo/winapi_windows.h
parent257fd8f07c821a9dd1f879e94c703cbbb9a2c764 (diff)
Began the drudgery of converting all the Windows code to use cgo, because I'm not going to wait to debug this smashed stack.
Diffstat (limited to 'redo/winapi_windows.h')
-rw-r--r--redo/winapi_windows.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/redo/winapi_windows.h b/redo/winapi_windows.h
new file mode 100644
index 0000000..59b99fe
--- /dev/null
+++ b/redo/winapi_windows.h
@@ -0,0 +1,27 @@
+/* 17 july 2014 */
+
+#define UNICODE
+#define _UNICODE
+#define STRICT
+#define STRICT_TYPED_ITEMIDS
+/* get Windows version right; right now Windows XP */
+#define WINVER 0x0501
+#define _WIN32_WINNT 0x0501
+#define _WIN32_WINDOWS 0x0501 /* according to Microsoft's winperf.h */
+#define _WIN32_IE 0x0600 /* according to Microsoft's sdkddkver.h */
+#define NTDDI_VERSION 0x05010000 /* according to Microsoft's sdkddkver.h */
+#include <windows.h>
+#include <commctrl.h>
+#include <stdint.h>
+
+/* global messages unique to everything */
+enum {
+ msgRequest = WM_APP + 1, /* + 1 just to be safe */
+ msgCOMMAND, /* WM_COMMAND proxy; see forwardCommand() in controls_windows.go */
+};
+
+/* uitask_windows.c */
+extern void uimsgloop(void);
+extern void issue(void *);
+extern HWND msgwin;
+extern DWORD makemsgwin(char **);