Mercurial > projects > dynamin
annotate dynamin/c/windows.d @ 112:e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Sat, 19 Jan 2013 20:57:58 -0600 |
parents | acdbb30fee7e |
children |
rev | line source |
---|---|
0 | 1 module dynamin.c.windows; |
2 | |
3 /* | |
4 * A binding to at least the part of the Windows API that Dynamin uses. This | |
6
c41eb8d907b2
Change the Windows binding's description
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
5 * binding is obviously very incomplete but does contain _many_ functions |
c41eb8d907b2
Change the Windows binding's description
Jordan Miner <jminer7@gmail.com>
parents:
0
diff
changeset
|
6 * that the Phobos and Tango Windows bindings do not contain. |
0 | 7 */ |
8 | |
9 version(Windows) { | |
10 } else { | |
11 static assert(0); | |
12 } | |
13 | |
14 version(build) { pragma(link, gdi32, comdlg32, shell32, ole32, winmm); } | |
15 | |
16 extern(Windows): | |
17 | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
18 alias char* LPSTR; |
0 | 19 alias wchar* LPWSTR; |
106 | 20 alias const(char)* LPCSTR; |
21 alias const(wchar)* LPCWSTR; | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
22 // unicode |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
23 alias wchar TCHAR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
24 alias LPWSTR LPTSTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
25 alias LPCWSTR LPCTSTR; |
0 | 26 |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
27 alias VOID* HANDLE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
28 alias HANDLE HBITMAP; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
29 alias HANDLE HBRUSH; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
30 alias HANDLE HICON; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
31 alias HICON HCURSOR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
32 alias HANDLE HDC; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
33 alias HANDLE HGDIOBJ; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
34 alias HANDLE HGLOBAL; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
35 alias int HFILE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
36 alias HANDLE HFONT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
37 alias HANDLE HINSTANCE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
38 alias HANDLE HKEY; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
39 alias HANDLE HMENU; |
0 | 40 alias HINSTANCE HMODULE; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
41 alias int HRESULT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
42 alias HANDLE HRGN; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
43 alias HANDLE HTHEME; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
44 alias HANDLE HWND; |
0 | 45 |
46 version(Win64) { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
47 alias int HALF_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
48 alias uint UHALF_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
49 alias long INT_PTR; |
0 | 50 alias ulong UINT_PTR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
51 alias long LONG_PTR; |
0 | 52 alias ulong ULONG_PTR; |
53 } else { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
54 alias short HALF_PTR; |
0 | 55 alias ushort UHALF_PTR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
56 alias int INT_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
57 alias uint UINT_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
58 alias int LONG_PTR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
59 alias uint ULONG_PTR; |
0 | 60 } |
61 | |
62 alias INT_PTR function() FARPROC; | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
63 alias int BOOL; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
64 alias ubyte BYTE; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
65 alias char CHAR; |
0 | 66 alias wchar WCHAR; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
67 alias uint DWORD; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
68 alias ulong DWORDLONG; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
69 alias uint DWORD32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
70 alias ulong DWORD64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
71 alias float FLOAT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
72 alias int INT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
73 alias int INT32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
74 alias long INT64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
75 alias int LONG; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
76 alias int LONG32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
77 alias long LONG64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
78 alias UINT_PTR WPARAM; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
79 alias LONG_PTR LPARAM; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
80 alias LONG_PTR LRESULT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
81 alias char UCHAR; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
82 alias uint UINT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
83 alias uint UINT32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
84 alias ulong UINT64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
85 alias uint ULONG; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
86 alias uint ULONG32; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
87 alias ulong ULONG64; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
88 alias short SHORT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
89 alias ushort USHORT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
90 alias void VOID; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
91 alias ushort WORD; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
92 alias WORD ATOM; |
0 | 93 alias ULONG_PTR SIZE_T; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
94 alias DWORD COLORREF; |
0 | 95 alias LONG NTSTATUS; |
96 | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
97 const HRESULT S_OK = 0; |
0 | 98 const HRESULT S_FALSE = 1; |
99 const HRESULT NOERROR = 0; | |
100 | |
101 const int MAX_PATH = 260; | |
102 | |
103 alias UINT_PTR function(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam) LPOFNHOOKPROC; | |
104 alias LRESULT function(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) WNDPROC; | |
105 alias int function(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData) BFFCALLBACK; | |
106 | |
107 public import tango.sys.win32.Macros; | |
108 //public import tango.sys.win32.UserGdi : LOWORD, HIWORD, RGB; | |
109 | |
110 WORD MAKEWORD(BYTE a, BYTE b) { return cast(WORD)a | cast(WORD)b << 8; } | |
111 LONG MAKELONG(WORD a, WORD b) { return cast(WORD)a | cast(WORD)b << 16; } | |
112 BYTE LOBYTE(WORD w) { return cast(BYTE)(w & 0xff); } | |
113 BYTE HIBYTE(WORD w) { return cast(BYTE)(w >> 8); } | |
114 LPWSTR MAKEINTRESOURCE(int i) { return cast(LPWSTR)cast(WORD)i; } | |
106 | 115 BYTE GetRValue(DWORD rgb) { return LOBYTE(cast(WORD)rgb); } |
0 | 116 BYTE GetGValue(DWORD rgb) { return LOBYTE(cast(WORD)rgb >> 8); } |
117 BYTE GetBValue(DWORD rgb) { return LOBYTE(rgb >> 16); } | |
118 | |
119 int MessageBoxW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType); | |
120 | |
121 DWORD GetLastError(); | |
122 | |
89
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
123 enum : HRESULT { |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
124 E_NOTIMPL = 0x80004001, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
125 E_OUTOFMEMORY = 0x8007000E, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
126 E_INVALIDARG = 0x80070057, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
127 E_NOINTERFACE = 0x80004002, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
128 E_POINTER = 0x80004003, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
129 E_HANDLE = 0x80070006, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
130 E_ABORT = 0x80004004, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
131 E_FAIL = 0x80004005, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
132 E_ACCESSDENIED = 0x80070005 |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
133 } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
134 |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
135 // COM error codes |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
136 enum { |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
137 SEVERITY_SUCCESS = 0, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
138 SEVERITY_ERROR = 1, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
139 } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
140 enum { |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
141 FACILITY_WIN32 = 7, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
142 FACILITY_ITF = 4, |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
143 } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
144 |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
145 bool SUCCEEDED(HRESULT hr) { return hr >= 0; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
146 bool FAILED(HRESULT hr) { return hr < 0; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
147 bool IS_ERROR(HRESULT hr) { return (hr >> 31) == SEVERITY_ERROR; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
148 uint HRESULT_CODE(HRESULT hr) { return hr & 0xFFFF; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
149 uint HRESULT_FACILITY(HRESULT hr) { return (hr >> 16) & 0x1FFF; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
150 uint HRESULT_SEVERITY(HRESULT hr) { return (hr >> 31) & 0x1; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
151 HRESULT MAKE_HRESULT(uint sev, uint fac, uint code) { return (sev << 31) | (fac << 16) | code; } |
0d6778fea624
Add some Windows error constants and related functions.
Jordan Miner <jminer7@gmail.com>
parents:
82
diff
changeset
|
152 |
0 | 153 int MultiByteToWideChar( |
154 UINT CodePage, | |
155 DWORD dwFlags, | |
156 LPCSTR lpMultiByteStr, | |
157 int cbMultiByte, | |
158 LPWSTR lpWideCharStr, | |
159 int cchWideChar); | |
160 | |
161 int WideCharToMultiByte( | |
162 UINT CodePage, | |
163 DWORD dwFlags, | |
164 LPCWSTR lpWideCharStr, | |
165 int cchWideChar, | |
166 LPSTR lpMultiByteStr, | |
167 int cbMultiByte, | |
168 LPCSTR lpDefaultChar, | |
169 BOOL* lpUsedDefaultChar); | |
170 | |
171 //{{{ memory functions | |
172 HANDLE GetProcessHeap(); | |
173 | |
174 VOID* HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes); | |
175 | |
176 VOID* HeapReAlloc(HANDLE hHeap, DWORD dwFlags, VOID* lpMem, SIZE_T dwBytes); | |
177 | |
178 BOOL HeapFree(HANDLE hHeap, DWORD dwFlags, VOID* lpMem); | |
179 | |
180 SIZE_T HeapSize(HANDLE hHeap, DWORD dwFlags, /*const*/ VOID* lpMem); | |
181 | |
182 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
183 HEAP_ZERO_MEMORY = 0x0008, |
0 | 184 HEAP_REALLOC_IN_PLACE_ONLY = 0x0010 |
185 } | |
186 | |
187 HGLOBAL GlobalAlloc(UINT uFlags, SIZE_T dwBytes); | |
188 | |
189 HGLOBAL GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags); | |
190 | |
191 HGLOBAL GlobalFree(HGLOBAL hMem); | |
192 | |
193 VOID* GlobalLock(HGLOBAL hMem); | |
194 | |
195 BOOL GlobalUnlock(HGLOBAL hMem); | |
196 | |
197 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
198 GMEM_FIXED = 0x0000, |
0 | 199 GMEM_MOVEABLE = 0x0002, |
200 GMEM_ZEROINIT = 0x0040, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
201 GPTR = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
202 GHND = 0x0042 |
0 | 203 } |
204 //}}} | |
205 | |
206 //{{{ window functions | |
207 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
208 CS_VREDRAW = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
209 CS_HREDRAW = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
210 CS_DBLCLKS = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
211 CS_OWNDC = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
212 CS_CLASSDC = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
213 CS_PARENTDC = 0x0080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
214 CS_NOCLOSE = 0x0200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
215 CS_SAVEBITS = 0x0800, |
0 | 216 CS_BYTEALIGNCLIENT = 0x1000, |
217 CS_BYTEALIGNWINDOW = 0x2000, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
218 CS_GLOBALCLASS = 0x4000, |
0 | 219 //Windows XP required |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
220 CS_DROPSHADOW = 0x00020000 |
0 | 221 |
222 } | |
223 ATOM RegisterClassExW(/*const*/ WNDCLASSEX* lpwcx); | |
224 | |
225 LRESULT DefWindowProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); | |
226 | |
227 //{{{ window styles | |
228 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
229 WS_OVERLAPPED = 0x00000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
230 WS_MAXIMIZEBOX = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
231 WS_TABSTOP = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
232 WS_GROUP = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
233 WS_MINIMIZEBOX = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
234 WS_THICKFRAME = 0x00040000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
235 WS_SYSMENU = 0x00080000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
236 WS_HSCROLL = 0x00100000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
237 WS_VSCROLL = 0x00200000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
238 WS_DLGFRAME = 0x00400000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
239 WS_BORDER = 0x00800000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
240 WS_CAPTION = 0x00C00000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
241 WS_MAXIMIZE = 0x01000000, |
0 | 242 WS_CLIPCHILDREN = 0x02000000, |
243 WS_CLIPSIBLINGS = 0x04000000, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
244 WS_DISABLED = 0x08000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
245 WS_VISIBLE = 0x10000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
246 WS_MINIMIZE = 0x20000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
247 WS_CHILD = 0x40000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
248 WS_POPUP = 0x80000000, |
0 | 249 WS_OVERLAPPEDWINDOW = WS_OVERLAPPED | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
250 WS_CAPTION | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
251 WS_SYSMENU | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
252 WS_THICKFRAME | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
253 WS_MINIMIZEBOX | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
254 WS_MAXIMIZEBOX, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
255 WS_POPUPWINDOW = WS_POPUP | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
256 WS_BORDER | |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
257 WS_SYSMENU, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
258 WS_CHILDWINDOW = WS_CHILD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
259 WS_TILED = WS_OVERLAPPED, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
260 WS_ICONIC = WS_MINIMIZE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
261 WS_SIZEBOX = WS_THICKFRAME, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
262 WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW |
0 | 263 } |
264 //}}} | |
265 | |
266 //{{{ extended window styles | |
267 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
268 WS_EX_DLGMODALFRAME = 0x00000001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
269 WS_EX_TOPMOST = 0x00000008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
270 WS_EX_TOOLWINDOW = 0x00000080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
271 WS_EX_WINDOWEDGE = 0x00000100, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
272 WS_EX_CLIENTEDGE = 0x00000200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
273 WS_EX_CONTROLPARENT = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
274 WS_EX_STATICEDGE = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
275 WS_EX_APPWINDOW = 0x00040000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
276 WS_EX_LAYERED = 0x00080000, |
0 | 277 WS_EX_OVERLAPPEDWINDOW = WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
278 WS_EX_COMPOSITED = 0x02000000 |
0 | 279 } |
280 //}}} | |
281 | |
282 //{{{ CreateWindowEx() | |
283 HWND CreateWindowExW( | |
284 DWORD dwExStyle, | |
285 LPCWSTR lpClassName, | |
286 LPCWSTR lpWindowName, | |
287 DWORD dwStyle, | |
288 int x, | |
289 int y, | |
290 int nWidth, | |
291 int nHeight, | |
292 HWND hWndParent, | |
293 HMENU hMenu, | |
294 HINSTANCE hInstance, | |
295 VOID* lpParam); | |
296 //}}} | |
297 | |
298 BOOL DestroyWindow(HWND hWnd); | |
299 | |
300 BOOL ClientToScreen(HWND hWnd, POINT* lpPoint); | |
301 | |
302 BOOL ScreenToClient(HWND hWnd, POINT* lpPoint); | |
303 | |
55
c138461bf845
Add focusing and other changes that are related
Jordan Miner <jminer7@gmail.com>
parents:
21
diff
changeset
|
304 BOOL SetForegroundWindow(HWND hWnd); |
c138461bf845
Add focusing and other changes that are related
Jordan Miner <jminer7@gmail.com>
parents:
21
diff
changeset
|
305 |
0 | 306 //{{{ messages |
307 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
308 WM_NULL = 0x0000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
309 WM_CREATE = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
310 WM_DESTROY = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
311 WM_MOVE = 0x0003, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
312 WM_SIZE = 0x0005, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
313 WM_ACTIVATE = 0x0006, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
314 WM_SETFOCUS = 0x0007, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
315 WM_KILLFOCUS = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
316 WM_ENABLE = 0x000A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
317 WM_SETREDRAW = 0x000B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
318 WM_SETTEXT = 0x000C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
319 WM_GETTEXT = 0x000D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
320 WM_GETTEXTLENGTH = 0x000E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
321 WM_PAINT = 0x000F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
322 WM_CLOSE = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
323 WM_QUERYENDSESSION = 0x0011, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
324 WM_QUERYOPEN = 0x0013, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
325 WM_ENDSESSION = 0x0016, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
326 WM_QUIT = 0x0012, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
327 WM_ERASEBKGND = 0x0014, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
328 WM_SYSCOLORCHANGE = 0x0015, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
329 WM_SHOWWINDOW = 0x0018, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
330 WM_WININICHANGE = 0x001A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
331 WM_SETTINGCHANGE = WM_WININICHANGE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
332 WM_DEVMODECHANGE = 0x001B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
333 WM_ACTIVATEAPP = 0x001C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
334 WM_FONTCHANGE = 0x001D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
335 WM_TIMECHANGE = 0x001E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
336 WM_CANCELMODE = 0x001F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
337 WM_SETCURSOR = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
338 WM_MOUSEACTIVATE = 0x0021, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
339 WM_CHILDACTIVATE = 0x0022, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
340 WM_QUEUESYNC = 0x0023, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
341 WM_GETMINMAXINFO = 0x0024, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
342 WM_PAINTICON = 0x0026, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
343 WM_ICONERASEBKGND = 0x0027, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
344 WM_NEXTDLGCTL = 0x0028, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
345 WM_SPOOLERSTATUS = 0x002A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
346 WM_DRAWITEM = 0x002B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
347 WM_MEASUREITEM = 0x002C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
348 WM_DELETEITEM = 0x002D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
349 WM_VKEYTOITEM = 0x002E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
350 WM_CHARTOITEM = 0x002F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
351 WM_SETFONT = 0x0030, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
352 WM_GETFONT = 0x0031, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
353 WM_SETHOTKEY = 0x0032, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
354 WM_GETHOTKEY = 0x0033, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
355 WM_QUERYDRAGICON = 0x0037, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
356 WM_COMPAREITEM = 0x0039, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
357 WM_GETOBJECT = 0x003D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
358 WM_COMPACTING = 0x0041, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
359 WM_WINDOWPOSCHANGING = 0x0046, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
360 WM_WINDOWPOSCHANGED = 0x0047, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
361 WM_POWER = 0x0048, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
362 WM_COPYDATA = 0x004A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
363 WM_CANCELJOURNAL = 0x004B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
364 WM_NOTIFY = 0x004E, |
0 | 365 WM_INPUTLANGCHANGEREQUEST = 0x0050, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
366 WM_INPUTLANGCHANGE = 0x0051, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
367 WM_TCARD = 0x0052, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
368 WM_HELP = 0x0053, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
369 WM_USERCHANGED = 0x0054, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
370 WM_NOTIFYFORMAT = 0x0055, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
371 WM_CONTEXTMENU = 0x007B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
372 WM_STYLECHANGING = 0x007C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
373 WM_STYLECHANGED = 0x007D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
374 WM_DISPLAYCHANGE = 0x007E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
375 WM_GETICON = 0x007F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
376 WM_SETICON = 0x0080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
377 WM_NCCREATE = 0x0081, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
378 WM_NCDESTROY = 0x0082, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
379 WM_NCCALCSIZE = 0x0083, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
380 WM_NCHITTEST = 0x0084, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
381 WM_NCPAINT = 0x0085, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
382 WM_NCACTIVATE = 0x0086, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
383 WM_GETDLGCODE = 0x0087, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
384 WM_SYNCPAINT = 0x0088, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
385 WM_NCMOUSEMOVE = 0x00A0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
386 WM_NCLBUTTONDOWN = 0x00A1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
387 WM_NCLBUTTONUP = 0x00A2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
388 WM_NCLBUTTONDBLCLK = 0x00A3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
389 WM_NCRBUTTONDOWN = 0x00A4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
390 WM_NCRBUTTONUP = 0x00A5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
391 WM_NCRBUTTONDBLCLK = 0x00A6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
392 WM_NCMBUTTONDOWN = 0x00A7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
393 WM_NCMBUTTONUP = 0x00A8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
394 WM_NCMBUTTONDBLCLK = 0x00A9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
395 WM_NCXBUTTONDOWN = 0x00AB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
396 WM_NCXBUTTONUP = 0x00AC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
397 WM_NCXBUTTONDBLCLK = 0x00AD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
398 WM_INPUT = 0x00FF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
399 WM_KEYDOWN = 0x0100, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
400 WM_KEYUP = 0x0101, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
401 WM_CHAR = 0x0102, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
402 WM_DEADCHAR = 0x0103, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
403 WM_SYSKEYDOWN = 0x0104, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
404 WM_SYSKEYUP = 0x0105, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
405 WM_SYSCHAR = 0x0106, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
406 WM_SYSDEADCHAR = 0x0107, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
407 WM_UNICHAR = 0x0109, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
408 WM_IME_STARTCOMPOSITION = 0x010D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
409 WM_IME_ENDCOMPOSITION = 0x010E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
410 WM_IME_COMPOSITION = 0x010F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
411 WM_IME_KEYLAST = 0x010F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
412 WM_INITDIALOG = 0x0110, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
413 WM_COMMAND = 0x0111, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
414 WM_SYSCOMMAND = 0x0112, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
415 WM_TIMER = 0x0113, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
416 WM_HSCROLL = 0x0114, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
417 WM_VSCROLL = 0x0115, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
418 WM_INITMENU = 0x0116, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
419 WM_INITMENUPOPUP = 0x0117, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
420 WM_MENUSELECT = 0x011F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
421 WM_MENUCHAR = 0x0120, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
422 WM_ENTERIDLE = 0x0121, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
423 WM_MENURBUTTONUP = 0x0122, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
424 WM_MENUDRAG = 0x0123, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
425 WM_MENUGETOBJECT = 0x0124, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
426 WM_UNINITMENUPOPUP = 0x0125, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
427 WM_MENUCOMMAND = 0x0126, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
428 WM_CHANGEUISTATE = 0x0127, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
429 WM_UPDATEUISTATE = 0x0128, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
430 WM_QUERYUISTATE = 0x0129, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
431 WM_CTLCOLORMSGBOX = 0x0132, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
432 WM_CTLCOLOREDIT = 0x0133, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
433 WM_CTLCOLORLISTBOX = 0x0134, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
434 WM_CTLCOLORBTN = 0x0135, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
435 WM_CTLCOLORDLG = 0x0136, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
436 WM_CTLCOLORSCROLLBAR = 0x0137, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
437 WM_CTLCOLORSTATIC = 0x0138, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
438 WM_MOUSEFIRST = 0x0200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
439 WM_MOUSEMOVE = 0x0200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
440 WM_LBUTTONDOWN = 0x0201, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
441 WM_LBUTTONUP = 0x0202, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
442 WM_LBUTTONDBLCLK = 0x0203, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
443 WM_RBUTTONDOWN = 0x0204, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
444 WM_RBUTTONUP = 0x0205, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
445 WM_RBUTTONDBLCLK = 0x0206, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
446 WM_MBUTTONDOWN = 0x0207, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
447 WM_MBUTTONUP = 0x0208, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
448 WM_MBUTTONDBLCLK = 0x0209, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
449 WM_MOUSEWHEEL = 0x020A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
450 WM_XBUTTONDOWN = 0x020B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
451 WM_XBUTTONUP = 0x020C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
452 WM_XBUTTONDBLCLK = 0x020D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
453 WM_PARENTNOTIFY = 0x0210, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
454 WM_ENTERMENULOOP = 0x0211, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
455 WM_EXITMENULOOP = 0x0212, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
456 WM_NEXTMENU = 0x0213, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
457 WM_SIZING = 0x0214, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
458 WM_CAPTURECHANGED = 0x0215, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
459 WM_MOVING = 0x0216, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
460 WM_POWERBROADCAST = 0x0218, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
461 WM_DEVICECHANGE = 0x0219, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
462 WM_MDICREATE = 0x0220, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
463 WM_MDIDESTROY = 0x0221, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
464 WM_MDIACTIVATE = 0x0222, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
465 WM_MDIRESTORE = 0x0223, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
466 WM_MDINEXT = 0x0224, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
467 WM_MDIMAXIMIZE = 0x0225, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
468 WM_MDITILE = 0x0226, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
469 WM_MDICASCADE = 0x0227, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
470 WM_MDIICONARRANGE = 0x0228, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
471 WM_MDIGETACTIVE = 0x0229, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
472 WM_MDISETMENU = 0x0230, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
473 WM_ENTERSIZEMOVE = 0x0231, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
474 WM_EXITSIZEMOVE = 0x0232, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
475 WM_DROPFILES = 0x0233, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
476 WM_MDIREFRESHMENU = 0x0234, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
477 WM_IME_SETCONTEXT = 0x0281, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
478 WM_IME_NOTIFY = 0x0282, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
479 WM_IME_CONTROL = 0x0283, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
480 WM_IME_COMPOSITIONFULL = 0x0284, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
481 WM_IME_SELECT = 0x0285, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
482 WM_IME_CHAR = 0x0286, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
483 WM_IME_REQUEST = 0x0288, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
484 WM_IME_KEYDOWN = 0x0290, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
485 WM_IME_KEYUP = 0x0291, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
486 WM_MOUSEHOVER = 0x02A1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
487 WM_MOUSELEAVE = 0x02A3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
488 WM_NCMOUSEHOVER = 0x02A0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
489 WM_NCMOUSELEAVE = 0x02A2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
490 WM_WTSSESSION_CHANGE = 0x02B1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
491 WM_TABLET_FIRST = 0x02C0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
492 WM_TABLET_LAST = 0x02DF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
493 WM_CUT = 0x0300, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
494 WM_COPY = 0x0301, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
495 WM_PASTE = 0x0302, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
496 WM_CLEAR = 0x0303, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
497 WM_UNDO = 0x0304, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
498 WM_RENDERFORMAT = 0x0305, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
499 WM_RENDERALLFORMATS = 0x0306, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
500 WM_DESTROYCLIPBOARD = 0x0307, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
501 WM_DRAWCLIPBOARD = 0x0308, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
502 WM_PAINTCLIPBOARD = 0x0309, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
503 WM_VSCROLLCLIPBOARD = 0x030A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
504 WM_SIZECLIPBOARD = 0x030B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
505 WM_ASKCBFORMATNAME = 0x030C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
506 WM_CHANGECBCHAIN = 0x030D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
507 WM_HSCROLLCLIPBOARD = 0x030E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
508 WM_QUERYNEWPALETTE = 0x030F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
509 WM_PALETTEISCHANGING = 0x0310, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
510 WM_PALETTECHANGED = 0x0311, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
511 WM_HOTKEY = 0x0312, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
512 WM_PRINT = 0x0317, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
513 WM_PRINTCLIENT = 0x0318, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
514 WM_APPCOMMAND = 0x0319, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
515 WM_THEMECHANGED = 0x031A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
516 WM_HANDHELDFIRST = 0x0358, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
517 WM_HANDHELDLAST = 0x035F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
518 WM_AFXFIRST = 0x0360, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
519 WM_AFXLAST = 0x037F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
520 WM_PENWINFIRST = 0x0380, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
521 WM_PENWINLAST = 0x038F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
522 WM_APP = 0x8000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
523 WM_USER = 0x0400 |
0 | 524 } |
525 enum { | |
526 PBT_APMQUERYSUSPEND = 0x0000, | |
527 PBT_APMQUERYSTANDBY = 0x0001, | |
528 PBT_APMQUERYSUSPENDFAILED = 0x0002, | |
529 PBT_APMQUERYSTANDBYFAILED = 0x0003, | |
530 PBT_APMSUSPEND = 0x0004, | |
531 PBT_APMSTANDBY = 0x0005, | |
532 PBT_APMRESUMECRITICAL = 0x0006, | |
533 PBT_APMRESUMESUSPEND = 0x0007, | |
534 PBT_APMRESUMESTANDBY = 0x0008, | |
535 PBTF_APMRESUMEFROMFAILURE = 0x00000001, | |
536 PBT_APMBATTERYLOW = 0x0009, | |
537 PBT_APMPOWERSTATUSCHANGE = 0x000A, | |
538 PBT_APMOEMEVENT = 0x000B, | |
539 PBT_APMRESUMEAUTOMATIC = 0x0012 | |
540 } | |
541 //}}} | |
542 | |
543 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
544 MK_LBUTTON = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
545 MK_RBUTTON = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
546 MK_SHIFT = 0x0004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
547 MK_CONTROL = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
548 MK_MBUTTON = 0x0010, |
0 | 549 MK_XBUTTON1 = 0x0020, |
550 MK_XBUTTON2 = 0x0040 | |
551 } | |
552 | |
553 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
554 WMSZ_LEFT = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
555 WMSZ_RIGHT = 2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
556 WMSZ_TOP = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
557 WMSZ_TOPLEFT = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
558 WMSZ_TOPRIGHT = 5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
559 WMSZ_BOTTOM = 6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
560 WMSZ_BOTTOMLEFT = 7, |
0 | 561 WMSZ_BOTTOMRIGHT = 8 |
562 } | |
563 | |
564 enum { | |
565 SIZE_RESTORED = 0, | |
566 SIZE_MINIMIZED = 1, | |
567 SIZE_MAXIMIZED = 2, | |
568 SIZE_MAXSHOW = 3, | |
569 SIZE_MAXHIDE = 4 | |
570 } | |
571 | |
572 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
573 SW_HIDE = 0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
574 SW_SHOWNORMAL = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
575 SW_NORMAL = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
576 SW_SHOWMINIMIZED = 2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
577 SW_SHOWMAXIMIZED = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
578 SW_MAXIMIZE = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
579 SW_SHOWNOACTIVATE = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
580 SW_SHOW = 5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
581 SW_MINIMIZE = 6, |
0 | 582 SW_SHOWMINNOACTIVE = 7, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
583 SW_SHOWNA = 8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
584 SW_RESTORE = 9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
585 SW_SHOWDEFAULT = 10, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
586 SW_FORCEMINIMIZE = 11, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
587 SW_MAX = 11 |
0 | 588 } |
589 | |
590 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
591 GWL_STYLE = -16, |
0 | 592 GWL_EXSTYLE = -20 |
593 } | |
594 | |
595 DWORD GetClassLongW(HWND hWnd, int nIndex); | |
596 | |
597 DWORD SetClassLongW(HWND hWnd, int nIndex, LONG dwNewLong); | |
598 | |
599 ULONG_PTR GetClassLongPtrW(HWND hWnd, int nIndex); | |
600 | |
601 ULONG_PTR SetClassLongPtrW(HWND hWnd, int nIndex, LONG_PTR dwNewLong); | |
602 | |
603 LONG GetWindowLongW(HWND hWnd, int nIndex); | |
604 | |
605 LONG SetWindowLongW(HWND hWnd, int nIndex, LONG dwNewLong); | |
606 | |
607 LONG_PTR GetWindowLongPtrW(HWND hWnd, int nIndex); | |
608 | |
609 LONG_PTR SetWindowLongPtrW(HWND hWnd, int nIndex, LONG_PTR dwNewLong); | |
610 | |
611 BOOL ShowWindow(HWND hWnd, int nCmdShow); | |
612 | |
613 //Windows 98 required | |
614 BOOL AnimateWindow(HWND hWnd, DWORD dwTime, DWORD dwFlags); | |
615 | |
616 BOOL IsWindowVisible(HWND hWnd); | |
617 | |
618 BOOL IsWindow(HWND hWnd); | |
619 | |
620 BOOL GetWindowRect(HWND hWnd, RECT* lpRect); | |
621 | |
622 BOOL GetClientRect(HWND hWnd, RECT* lpRect); | |
623 | |
624 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
625 SWP_NOSIZE = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
626 SWP_NOMOVE = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
627 SWP_NOZORDER = 0x0004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
628 SWP_NOACTIVATE = 0x0010, |
0 | 629 SWP_FRAMECHANGED = 0x0020 |
630 } | |
631 | |
632 BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags); | |
633 | |
634 BOOL MoveWindow(HWND hWnd, int x, int y, int nWidth, int nHeight, BOOL bRepaint); | |
635 | |
636 int SetWindowRgn(HWND hWnd, HRGN hRgn, BOOL bRedraw); | |
637 | |
638 enum { | |
639 ULW_COLORKEY = 0x00000001, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
640 ULW_ALPHA = 0x00000002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
641 ULW_OPAQUE = 0x00000004 |
0 | 642 } |
643 | |
644 BOOL UpdateLayeredWindow( | |
645 HWND hWnd, | |
646 HDC hdcDst, | |
647 POINT* pptDst, | |
648 SIZE* psize, | |
649 HDC hdcSrc, | |
650 POINT* pptSrc, | |
651 COLORREF crKey, | |
652 BLENDFUNCTION* pblend, | |
653 DWORD dwFlags); | |
654 | |
655 HWND SetParent(HWND hWndChild, HWND hWndNewParent); | |
656 | |
657 HWND GetParent(HWND hWnd); | |
658 | |
659 BOOL IsChild(HWND hWndParent, HWND hWnd); | |
660 | |
661 BOOL EnableWindow(HWND hWnd, BOOL bEnable); | |
662 | |
663 enum { | |
664 GW_HWNDFIRST = 0, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
665 GW_HWNDLAST = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
666 GW_HWNDNEXT = 2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
667 GW_HWNDPREV = 3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
668 GW_OWNER = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
669 GW_CHILD = 5 |
0 | 670 } |
671 | |
672 HWND GetWindow(HWND hWnd, UINT uCmd); | |
673 | |
674 BOOL GetWindowInfo(HWND hwnd, WINDOWINFO* pwi); | |
675 | |
676 int GetWindowTextLength(HWND hWnd); | |
677 | |
678 int GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount); | |
679 | |
680 BOOL SetWindowTextW(HWND hWnd, LPCWSTR lpString); | |
681 | |
682 UINT GetWindowModuleFileNameW(HWND hWnd, LPWSTR lpszFileName, UINT cchFileNameMax); | |
683 | |
684 BOOL SetPropW(HWND hWnd, LPCWSTR lpString, HANDLE hData); | |
685 | |
686 HANDLE GetPropW(HWND hWnd, LPCWSTR lpString); | |
687 | |
688 HANDLE RemovePropW(HWND hWnd, LPCWSTR lpString); | |
689 | |
690 DWORD CommDlgExtendedError(); | |
691 enum { FNERR_BUFFERTOOSMALL = 0x3003 } | |
692 | |
693 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
694 OFN_READONLY = 0x00000001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
695 OFN_OVERWRITEPROMPT = 0x00000002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
696 OFN_HIDEREADONLY = 0x00000004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
697 OFN_NOCHANGEDIR = 0x00000008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
698 OFN_SHOWHELP = 0x00000010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
699 OFN_ENABLEHOOK = 0x00000020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
700 OFN_ENABLETEMPLATE = 0x00000040, |
0 | 701 OFN_ENABLETEMPLATEHANDLE = 0x00000080, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
702 OFN_NOVALIDATE = 0x00000100, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
703 OFN_ALLOWMULTISELECT = 0x00000200, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
704 OFN_EXTENSIONDIFFERENT = 0x00000400, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
705 OFN_PATHMUSTEXIST = 0x00000800, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
706 OFN_FILEMUSTEXIST = 0x00001000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
707 OFN_CREATEPROMPT = 0x00002000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
708 OFN_SHAREAWARE = 0x00004000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
709 OFN_NOREADONLYRETURN = 0x00008000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
710 OFN_NOTESTFILECREATE = 0x00010000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
711 OFN_NONETWORKBUTTON = 0x00020000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
712 OFN_NOLONGNAMES = 0x00040000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
713 OFN_EXPLORER = 0x00080000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
714 OFN_NODEREFERENCELINKS = 0x00100000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
715 OFN_LONGNAMES = 0x00200000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
716 OFN_ENABLEINCLUDENOTIFY = 0x00400000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
717 OFN_ENABLESIZING = 0x00800000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
718 OFN_DONTADDTORECENT = 0x02000000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
719 OFN_FORCESHOWHIDDEN = 0x10000000 |
0 | 720 } |
721 | |
722 BOOL GetOpenFileNameW(OPENFILENAME* lpofn); | |
723 | |
724 BOOL GetSaveFileNameW(OPENFILENAME* lpofn); | |
725 | |
726 //}}} | |
727 | |
728 //{{{ painting functions | |
729 BOOL InvalidateRect(HWND hWnd, RECT* lpRect, BOOL bErase); | |
730 | |
731 BOOL ValidateRect(HWND hWnd, RECT* lpRect); | |
732 | |
733 BOOL UpdateWindow(HWND hWnd); | |
734 | |
735 HWND WindowFromDC(HDC hdc); | |
736 | |
737 HDC BeginPaint(HWND hWnd, PAINTSTRUCT* lpPaint); | |
738 | |
739 BOOL EndPaint(HWND hWnd, PAINTSTRUCT* lpPaint); | |
740 //}}} | |
741 | |
742 //{{{ device context functions | |
743 HDC GetDC(HWND hWnd); | |
744 | |
745 int ReleaseDC(HWND hWnd, HDC hDC); | |
746 | |
747 HDC CreateCompatibleDC(HDC hdc); | |
748 | |
749 BOOL DeleteDC(HDC hdc); | |
750 | |
93
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
751 int SaveDC(HDC hdc); |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
752 |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
753 BOOL RestoreDC(HDC hdc, int nSavedDC); |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
754 |
0 | 755 HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hObject); |
756 | |
757 BOOL DeleteObject(HGDIOBJ hObject); | |
758 | |
759 int GetObjectW(HANDLE h, int c, VOID* pv); | |
760 | |
761 HBITMAP CreateCompatibleBitmap(HDC hdc, int cx, int cy); | |
762 | |
763 HBITMAP CreateDIBSection( | |
764 HDC hdc, | |
765 BITMAPINFO* lpbmi, | |
766 UINT usage, | |
767 VOID** ppvBits, | |
768 HANDLE hSection, | |
769 DWORD offset); | |
770 | |
771 int GetDIBits(HDC hdc, HBITMAP hbm, UINT start, UINT cLines, VOID* lpvBits, BITMAPINFO* lpbmi, UINT usage); | |
772 | |
773 enum { | |
774 DIB_RGB_COLORS = 0 | |
775 } | |
776 enum { | |
777 BI_RGB = 0 | |
778 } | |
779 | |
780 enum { | |
781 SRCCOPY = 0x00CC0020 | |
782 } | |
783 | |
784 BOOL BitBlt(HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop); | |
785 | |
786 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
787 AC_SRC_OVER = 0x00, |
0 | 788 AC_SRC_ALPHA = 0x01 |
789 } | |
790 | |
791 int EnumFontFamiliesExW( | |
792 HDC hdc, LOGFONT* lpLogfont, | |
793 FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags); | |
794 | |
795 alias int function(ENUMLOGFONTEX*, TEXTMETRIC*, DWORD, LPARAM) FONTENUMPROCW; | |
93
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
796 |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
797 HFONT CreateFontW( |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
798 int cHeight, int cWidth, int cEscapement, int cOrientation, int cWeight, DWORD bItalic, |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
799 DWORD bUnderline, DWORD bStrikeOut, DWORD iCharSet, DWORD iOutPrecision, DWORD iClipPrecision, |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
800 DWORD iQuality, DWORD iPitchAndFamily, LPCWSTR pszFaceName); |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
801 |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
802 HFONT CreateFontIndirectW(LOGFONTW* lplf); |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
803 |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
804 BOOL TextOutW(HDC hdc, int x, int y, LPCWSTR lpString, int c); |
0 | 805 //}}} |
806 | |
807 //{{{ message functions | |
808 BOOL GetMessageW(MSG* lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); | |
809 | |
810 BOOL TranslateMessage(MSG* lpMsg); | |
811 | |
812 LRESULT DispatchMessageW(MSG* lpMsg); | |
813 | |
13
a3a2aa21fc52
Fix stupid ommission of PostMessage() binding in last commit.
Jordan Miner <jminer7@gmail.com>
parents:
12
diff
changeset
|
814 BOOL PostMessageW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); |
0 | 815 |
816 void PostQuitMessage(int nExitCode); | |
817 | |
12
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
818 LRESULT SendMessageW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
819 |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
820 BOOL InSendMessage(); |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
821 |
7a7e5f9bd1ae
Implement invoke() and invokeNow() on Windows.
Jordan Miner <jminer7@gmail.com>
parents:
6
diff
changeset
|
822 BOOL ReplyMessage(LRESULT lResult); |
0 | 823 //}}} |
824 | |
825 //{{{ clipboard functions | |
826 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
827 CF_TEXT = 1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
828 CF_BITMAP = 2, |
0 | 829 CF_METAFILEPICT = 3, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
830 CF_SYLK = 4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
831 CF_DIF = 5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
832 CF_TIFF = 6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
833 CF_OEMTEXT = 7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
834 CF_DIB = 8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
835 CF_PALETTE = 9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
836 CF_PENDATA = 10, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
837 CF_RIFF = 11, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
838 CF_WAVE = 12, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
839 CF_UNICODETEXT = 13, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
840 CF_ENHMETAFILE = 14, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
841 CF_HDROP = 15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
842 CF_LOCALE = 16 |
0 | 843 } |
844 | |
845 BOOL OpenClipboard(HWND hWndNewOwner); | |
846 | |
847 BOOL CloseClipboard(); | |
848 | |
849 BOOL IsClipboardFormatAvailable(UINT format); | |
850 | |
851 HANDLE GetClipboardData(UINT uFormat); | |
852 | |
853 HANDLE SetClipboardData(UINT uFormat, HANDLE hMem); | |
854 | |
855 BOOL EmptyClipboard(); | |
856 //}}} | |
857 | |
858 //{{{ mouse functions | |
859 enum { | |
860 XBUTTON1 = 0x0001, | |
861 XBUTTON2 = 0x0002 | |
862 } | |
863 | |
864 HWND SetCapture(HWND hWnd); | |
865 | |
866 BOOL ReleaseCapture(); | |
867 | |
868 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
869 TME_HOVER = 0x00000001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
870 TME_LEAVE = 0x00000002, |
0 | 871 TME_NONCLIENT = 0x00000010 |
872 } | |
873 BOOL TrackMouseEvent(TRACKMOUSEEVENT* lpEventTrack); | |
874 | |
875 HCURSOR SetCursor(HCURSOR hCursor); | |
876 | |
877 BOOL GetCursorPos(POINT* lpPoint); | |
75
d5928da5a1f0
Change from using GetCursorPos() to GetMessagePos() in a couple places.
Jordan Miner <jminer7@gmail.com>
parents:
55
diff
changeset
|
878 |
d5928da5a1f0
Change from using GetCursorPos() to GetMessagePos() in a couple places.
Jordan Miner <jminer7@gmail.com>
parents:
55
diff
changeset
|
879 DWORD GetMessagePos(); |
0 | 880 //}}} |
881 | |
882 //{{{ keyboard functions | |
883 //{{{ keys | |
884 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
885 VK_LBUTTON = 0x01, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
886 VK_RBUTTON = 0x02, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
887 VK_CANCEL = 0x03, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
888 VK_MBUTTON = 0x04, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
889 VK_XBUTTON1 = 0x05, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
890 VK_XBUTTON2 = 0x06, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
891 VK_BACK = 0x08, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
892 VK_TAB = 0x09, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
893 VK_CLEAR = 0x0C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
894 VK_RETURN = 0x0D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
895 VK_SHIFT = 0x10, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
896 VK_CONTROL = 0x11, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
897 VK_MENU = 0x12, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
898 VK_PAUSE = 0x13, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
899 VK_CAPITAL = 0x14, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
900 VK_KANA = 0x15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
901 VK_HANGEUL = 0x15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
902 VK_HANGUL = 0x15, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
903 VK_JUNJA = 0x17, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
904 VK_FINAL = 0x18, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
905 VK_HANJA = 0x19, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
906 VK_KANJI = 0x19, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
907 VK_ESCAPE = 0x1B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
908 VK_CONVERT = 0x1C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
909 VK_NONCONVERT = 0x1D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
910 VK_ACCEPT = 0x1E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
911 VK_MODECHANGE = 0x1F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
912 VK_SPACE = 0x20, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
913 VK_PRIOR = 0x21, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
914 VK_NEXT = 0x22, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
915 VK_END = 0x23, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
916 VK_HOME = 0x24, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
917 VK_LEFT = 0x25, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
918 VK_UP = 0x26, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
919 VK_RIGHT = 0x27, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
920 VK_DOWN = 0x28, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
921 VK_SELECT = 0x29, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
922 VK_PRINT = 0x2A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
923 VK_EXECUTE = 0x2B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
924 VK_SNAPSHOT = 0x2C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
925 VK_INSERT = 0x2D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
926 VK_DELETE = 0x2E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
927 VK_HELP = 0x2F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
928 VK_LWIN = 0x5B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
929 VK_RWIN = 0x5C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
930 VK_APPS = 0x5D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
931 VK_SLEEP = 0x5F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
932 VK_NUMPAD0 = 0x60, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
933 VK_NUMPAD1 = 0x61, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
934 VK_NUMPAD2 = 0x62, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
935 VK_NUMPAD3 = 0x63, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
936 VK_NUMPAD4 = 0x64, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
937 VK_NUMPAD5 = 0x65, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
938 VK_NUMPAD6 = 0x66, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
939 VK_NUMPAD7 = 0x67, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
940 VK_NUMPAD8 = 0x68, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
941 VK_NUMPAD9 = 0x69, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
942 VK_MULTIPLY = 0x6A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
943 VK_ADD = 0x6B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
944 VK_SEPARATOR = 0x6C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
945 VK_SUBTRACT = 0x6D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
946 VK_DECIMAL = 0x6E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
947 VK_DIVIDE = 0x6F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
948 VK_F1 = 0x70, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
949 VK_F2 = 0x71, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
950 VK_F3 = 0x72, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
951 VK_F4 = 0x73, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
952 VK_F5 = 0x74, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
953 VK_F6 = 0x75, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
954 VK_F7 = 0x76, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
955 VK_F8 = 0x77, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
956 VK_F9 = 0x78, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
957 VK_F10 = 0x79, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
958 VK_F11 = 0x7A, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
959 VK_F12 = 0x7B, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
960 VK_F13 = 0x7C, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
961 VK_F14 = 0x7D, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
962 VK_F15 = 0x7E, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
963 VK_F16 = 0x7F, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
964 VK_F17 = 0x80, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
965 VK_F18 = 0x81, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
966 VK_F19 = 0x82, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
967 VK_F20 = 0x83, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
968 VK_F21 = 0x84, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
969 VK_F22 = 0x85, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
970 VK_F23 = 0x86, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
971 VK_F24 = 0x87, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
972 VK_NUMLOCK = 0x90, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
973 VK_SCROLL = 0x91, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
974 VK_OEM_NEC_EQUAL = 0x92, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
975 VK_OEM_FJ_JISHO = 0x92, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
976 VK_OEM_FJ_MASSHOU = 0x93, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
977 VK_OEM_FJ_TOUROKU = 0x94, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
978 VK_OEM_FJ_LOYA = 0x95, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
979 VK_OEM_FJ_ROYA = 0x96, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
980 VK_LSHIFT = 0xA0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
981 VK_RSHIFT = 0xA1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
982 VK_LCONTROL = 0xA2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
983 VK_RCONTROL = 0xA3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
984 VK_LMENU = 0xA4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
985 VK_RMENU = 0xA5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
986 VK_BROWSER_BACK = 0xA6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
987 VK_BROWSER_FORWARD = 0xA7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
988 VK_BROWSER_REFRESH = 0xA8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
989 VK_BROWSER_STOP = 0xA9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
990 VK_BROWSER_SEARCH = 0xAA, |
0 | 991 VK_BROWSER_FAVORITES = 0xAB, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
992 VK_BROWSER_HOME = 0xAC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
993 VK_VOLUME_MUTE = 0xAD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
994 VK_VOLUME_DOWN = 0xAE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
995 VK_VOLUME_UP = 0xAF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
996 VK_MEDIA_NEXT_TRACK = 0xB0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
997 VK_MEDIA_PREV_TRACK = 0xB1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
998 VK_MEDIA_STOP = 0xB2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
999 VK_MEDIA_PLAY_PAUSE = 0xB3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1000 VK_LAUNCH_MAIL = 0xB4, |
0 | 1001 VK_LAUNCH_MEDIA_SELECT = 0xB5, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1002 VK_LAUNCH_APP1 = 0xB6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1003 VK_LAUNCH_APP2 = 0xB7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1004 VK_OEM_1 = 0xBA, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1005 VK_OEM_PLUS = 0xBB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1006 VK_OEM_COMMA = 0xBC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1007 VK_OEM_MINUS = 0xBD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1008 VK_OEM_PERIOD = 0xBE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1009 VK_OEM_2 = 0xBF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1010 VK_OEM_3 = 0xC0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1011 VK_OEM_4 = 0xDB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1012 VK_OEM_5 = 0xDC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1013 VK_OEM_6 = 0xDD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1014 VK_OEM_7 = 0xDE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1015 VK_OEM_8 = 0xDF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1016 VK_OEM_AX = 0xE1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1017 VK_OEM_102 = 0xE2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1018 VK_ICO_HELP = 0xE3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1019 VK_ICO_00 = 0xE4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1020 VK_PROCESSKEY = 0xE5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1021 VK_ICO_CLEAR = 0xE6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1022 VK_PACKET = 0xE7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1023 VK_OEM_RESET = 0xE9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1024 VK_OEM_JUMP = 0xEA, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1025 VK_OEM_PA1 = 0xEB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1026 VK_OEM_PA2 = 0xEC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1027 VK_OEM_PA3 = 0xED, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1028 VK_OEM_WSCTRL = 0xEE, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1029 VK_OEM_CUSEL = 0xEF, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1030 VK_OEM_ATTN = 0xF0, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1031 VK_OEM_FINISH = 0xF1, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1032 VK_OEM_COPY = 0xF2, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1033 VK_OEM_AUTO = 0xF3, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1034 VK_OEM_ENLW = 0xF4, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1035 VK_OEM_BACKTAB = 0xF5, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1036 VK_ATTN = 0xF6, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1037 VK_CRSEL = 0xF7, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1038 VK_EXSEL = 0xF8, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1039 VK_EREOF = 0xF9, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1040 VK_PLAY = 0xFA, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1041 VK_ZOOM = 0xFB, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1042 VK_NONAME = 0xFC, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1043 VK_PA1 = 0xFD, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1044 VK_OEM_CLEAR = 0xFE |
0 | 1045 } |
1046 //}}} | |
1047 | |
1048 SHORT GetKeyState(int nVirtKey); | |
1049 //}}} | |
1050 | |
1051 //{{{ system functions | |
112
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1052 enum LPTSTR IDC_ARROW = cast(LPTSTR)32512u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1053 enum LPTSTR IDC_IBEAM = cast(LPTSTR)32513u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1054 enum LPTSTR IDC_WAIT = cast(LPTSTR)32514u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1055 enum LPTSTR IDC_CROSS = cast(LPTSTR)32515u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1056 enum LPTSTR IDC_UPARROW = cast(LPTSTR)32516u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1057 enum LPTSTR IDC_SIZE = cast(LPTSTR)32640u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1058 enum LPTSTR IDC_ICON = cast(LPTSTR)32641u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1059 enum LPTSTR IDC_SIZENWSE = cast(LPTSTR)32642u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1060 enum LPTSTR IDC_SIZENESW = cast(LPTSTR)32643u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1061 enum LPTSTR IDC_SIZEWE = cast(LPTSTR)32644u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1062 enum LPTSTR IDC_SIZENS = cast(LPTSTR)32645u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1063 enum LPTSTR IDC_SIZEALL = cast(LPTSTR)32646u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1064 enum LPTSTR IDC_NO = cast(LPTSTR)32648u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1065 enum LPTSTR IDC_HAND = cast(LPTSTR)32649u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1066 enum LPTSTR IDC_APPSTARTING = cast(LPTSTR)32650u; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1067 enum LPTSTR IDC_HELP = cast(LPTSTR)32651u; |
0 | 1068 |
112
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1069 enum LPTSTR IDI_APPLICATION = cast(LPTSTR)32512; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1070 enum LPTSTR IDI_HAND = cast(LPTSTR)32513; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1071 enum LPTSTR IDI_QUESTION = cast(LPTSTR)32514; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1072 enum LPTSTR IDI_EXCLAMATION = cast(LPTSTR)32515; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1073 enum LPTSTR IDI_ASTERISK = cast(LPTSTR)32516; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1074 enum LPTSTR IDI_WINLOGO = cast(LPTSTR)32517; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1075 enum LPTSTR IDI_WARNING = IDI_EXCLAMATION; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1076 enum LPTSTR IDI_ERROR = IDI_HAND; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1077 enum LPTSTR IDI_INFORMATION = IDI_ASTERISK; |
0 | 1078 |
1079 enum { | |
1080 OIC_SAMPLE = 32512, | |
1081 OIC_HAND = 32513, | |
1082 OIC_QUES = 32514, | |
1083 OIC_BANG = 32515, | |
1084 OIC_NOTE = 32516, | |
1085 OIC_WINLOGO = 32517, | |
1086 OIC_WARNING = OIC_BANG, | |
1087 OIC_ERROR = OIC_HAND, | |
1088 OIC_INFORMATION = OIC_NOTE | |
1089 } | |
1090 | |
1091 enum { | |
1092 OCR_NORMAL = 32512, | |
1093 OCR_IBEAM = 32513, | |
1094 OCR_WAIT = 32514, | |
1095 OCR_CROSS = 32515, | |
1096 OCR_UP = 32516, | |
1097 OCR_SIZENWSE = 32642, | |
1098 OCR_SIZENESW = 32643, | |
1099 OCR_SIZEWE = 32644, | |
1100 OCR_SIZENS = 32645, | |
1101 OCR_SIZEALL = 32646, | |
1102 OCR_NO = 32648, | |
1103 OCR_HAND = 32649, | |
1104 OCR_APPSTARTING = 32650 | |
1105 } | |
1106 | |
1107 enum { | |
1108 IMAGE_BITMAP = 0, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1109 IMAGE_ICON = 1, |
0 | 1110 IMAGE_CURSOR = 2 |
1111 } | |
1112 | |
1113 enum { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1114 LR_DEFAULTCOLOR = 0x0000, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1115 LR_MONOCHROME = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1116 LR_COLOR = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1117 LR_COPYRETURNORG = 0x0004, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1118 LR_COPYDELETEORG = 0x0008, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1119 LR_LOADFROMFILE = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1120 LR_LOADTRANSPARENT = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1121 LR_DEFAULTSIZE = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1122 LR_VGACOLOR = 0x0080, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1123 LR_LOADMAP3DCOLORS = 0x1000, |
0 | 1124 LR_CREATEDIBSECTION = 0x2000, |
1125 LR_COPYFROMRESOURCE = 0x4000, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1126 LR_SHARED = 0x8000 |
0 | 1127 } |
1128 | |
1129 HANDLE LoadImageW( | |
1130 HINSTANCE hInst, | |
1131 LPCWSTR name, | |
1132 UINT type, | |
1133 int cx, | |
1134 int cy, | |
1135 UINT fuLoad); | |
1136 | |
112
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1137 HICON CreateIconIndirect(PICONINFO piconinfo); |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1138 |
0 | 1139 HICON CreateIconFromResource( |
1140 BYTE* presbits, | |
1141 DWORD dwResSize, | |
1142 BOOL fIcon, | |
1143 DWORD dwVer); | |
1144 | |
112
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1145 BOOL GetIconInfo(HICON hIcon, PICONINFO piconinfo); |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1146 |
0 | 1147 enum { |
1148 SPI_GETNONCLIENTMETRICS = 0x0029, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1149 SPI_GETWORKAREA = 0x0030, |
0 | 1150 SPI_GETWHEELSCROLLLINES = 0x0068 |
1151 } | |
1152 | |
1153 BOOL SystemParametersInfoW(UINT uiAction, UINT uiParam, VOID* pvParam, UINT fWinIni); | |
1154 | |
1155 enum { | |
1156 COLOR_SCROLLBAR = 0, | |
1157 COLOR_BACKGROUND = 1, | |
1158 COLOR_ACTIVECAPTION = 2, | |
1159 COLOR_INACTIVECAPTION = 3, | |
1160 COLOR_MENU = 4, | |
1161 COLOR_WINDOW = 5, | |
1162 COLOR_WINDOWFRAME = 6, | |
1163 COLOR_MENUTEXT = 7, | |
1164 COLOR_WINDOWTEXT = 8, | |
1165 COLOR_CAPTIONTEXT = 9, | |
1166 COLOR_ACTIVEBORDER = 10, | |
1167 COLOR_INACTIVEBORDER = 11, | |
1168 COLOR_APPWORKSPACE = 12, | |
1169 COLOR_HIGHLIGHT = 13, | |
1170 COLOR_HIGHLIGHTTEXT = 14, | |
1171 COLOR_BTNFACE = 15, | |
1172 COLOR_BTNSHADOW = 16, | |
1173 COLOR_GRAYTEXT = 17, | |
1174 COLOR_BTNTEXT = 18, | |
1175 COLOR_INACTIVECAPTIONTEXT = 19, | |
1176 COLOR_BTNHIGHLIGHT = 20, | |
1177 | |
1178 COLOR_3DDKSHADOW = 21, | |
1179 COLOR_3DLIGHT = 22, | |
1180 COLOR_INFOTEXT = 23, | |
1181 COLOR_INFOBK = 24, | |
1182 | |
1183 COLOR_HOTLIGHT = 26, | |
1184 COLOR_GRADIENTACTIVECAPTION = 27, | |
1185 COLOR_GRADIENTINACTIVECAPTION = 28, | |
1186 COLOR_MENUHILIGHT = 29, | |
1187 COLOR_MENUBAR = 30, | |
1188 | |
1189 COLOR_DESKTOP = COLOR_BACKGROUND, | |
1190 COLOR_3DFACE = COLOR_BTNFACE, | |
1191 COLOR_3DSHADOW = COLOR_BTNSHADOW, | |
1192 COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT, | |
1193 COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT, | |
1194 COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT | |
1195 } | |
1196 | |
1197 DWORD GetSysColor(int nIndex); | |
1198 | |
1199 enum { | |
1200 SM_CXSCREEN = 0, | |
1201 SM_CYSCREEN = 1, | |
1202 SM_CXVSCROLL = 2, | |
1203 SM_CYHSCROLL = 3, | |
1204 SM_CYCAPTION = 4, | |
1205 SM_CXBORDER = 5, | |
1206 SM_CYBORDER = 6, | |
1207 SM_CXDLGFRAME = 7, | |
1208 SM_CYDLGFRAME = 8, | |
1209 SM_CYVTHUMB = 9, | |
1210 SM_CXHTHUMB = 10, | |
1211 SM_CXICON = 11, | |
1212 SM_CYICON = 12, | |
1213 SM_CXCURSOR = 13, | |
1214 SM_CYCURSOR = 14, | |
1215 SM_CYMENU = 15, | |
1216 SM_CXFULLSCREEN = 16, | |
1217 SM_CYFULLSCREEN = 17, | |
1218 SM_CYKANJIWINDOW = 18, | |
1219 SM_MOUSEPRESENT = 19, | |
1220 SM_CYVSCROLL = 20, | |
1221 SM_CXHSCROLL = 21, | |
1222 SM_DEBUG = 22, | |
1223 SM_SWAPBUTTON = 23, | |
1224 SM_RESERVED1 = 24, | |
1225 SM_RESERVED2 = 25, | |
1226 SM_RESERVED3 = 26, | |
1227 SM_RESERVED4 = 27, | |
1228 SM_CXMIN = 28, | |
1229 SM_CYMIN = 29, | |
1230 SM_CXSIZE = 30, | |
1231 SM_CYSIZE = 31, | |
1232 SM_CXFRAME = 32, | |
1233 SM_CYFRAME = 33, | |
1234 SM_CXMINTRACK = 34, | |
1235 SM_CYMINTRACK = 35, | |
1236 SM_CXDOUBLECLK = 36, | |
1237 SM_CYDOUBLECLK = 37, | |
1238 SM_CXICONSPACING = 38, | |
1239 SM_CYICONSPACING = 39, | |
1240 SM_MENUDROPALIGNMENT = 40, | |
1241 SM_PENWINDOWS = 41, | |
1242 SM_DBCSENABLED = 42, | |
1243 SM_CMOUSEBUTTONS = 43, | |
1244 SM_CXFIXEDFRAME = SM_CXDLGFRAME, | |
1245 SM_CYFIXEDFRAME = SM_CYDLGFRAME, | |
1246 SM_CXSIZEFRAME = SM_CXFRAME, | |
1247 SM_CYSIZEFRAME = SM_CYFRAME, | |
1248 SM_SECURE = 44, | |
1249 SM_CXEDGE = 45, | |
1250 SM_CYEDGE = 46, | |
1251 SM_CXMINSPACING = 47, | |
1252 SM_CYMINSPACING = 48, | |
1253 SM_CXSMICON = 49, | |
1254 SM_CYSMICON = 50, | |
1255 SM_CYSMCAPTION = 51, | |
1256 SM_CXSMSIZE = 52, | |
1257 SM_CYSMSIZE = 53, | |
1258 SM_CXMENUSIZE = 54, | |
1259 SM_CYMENUSIZE = 55, | |
1260 SM_ARRANGE = 56, | |
1261 SM_CXMINIMIZED = 57, | |
1262 SM_CYMINIMIZED = 58, | |
1263 SM_CXMAXTRACK = 59, | |
1264 SM_CYMAXTRACK = 60, | |
1265 SM_CXMAXIMIZED = 61, | |
1266 SM_CYMAXIMIZED = 62, | |
1267 SM_NETWORK = 63, | |
1268 SM_CLEANBOOT = 67, | |
1269 SM_CXDRAG = 68, | |
1270 SM_CYDRAG = 69, | |
1271 SM_SHOWSOUNDS = 70, | |
1272 SM_CXMENUCHECK = 71, | |
1273 SM_CYMENUCHECK = 72, | |
1274 SM_SLOWMACHINE = 73, | |
1275 SM_MIDEASTENABLED = 74, | |
1276 SM_MOUSEWHEELPRESENT = 75, | |
1277 SM_XVIRTUALSCREEN = 76, | |
1278 SM_YVIRTUALSCREEN = 77, | |
1279 SM_CXVIRTUALSCREEN = 78, | |
1280 SM_CYVIRTUALSCREEN = 79, | |
1281 SM_CMONITORS = 80, | |
1282 SM_SAMEDISPLAYFORMAT = 81, | |
1283 SM_IMMENABLED = 82, | |
1284 SM_CXFOCUSBORDER = 83, | |
1285 SM_CYFOCUSBORDER = 84, | |
1286 SM_TABLETPC = 86, | |
1287 SM_MEDIACENTER = 87, | |
1288 SM_STARTER = 88, | |
1289 SM_SERVERR2 = 89 | |
1290 } | |
1291 | |
1292 int GetSystemMetrics(int nIndex); | |
1293 | |
1294 VOID GetSystemInfo(SYSTEM_INFO* lpSystemInfo); | |
1295 | |
1296 BOOL GetVersionExW(OSVERSIONINFO* lpVersionInformation); | |
1297 | |
1298 HMODULE GetModuleHandleW(LPCWSTR lpModuleName); | |
1299 | |
1300 HMODULE LoadLibraryW(LPCWSTR lpLibFileName); | |
1301 | |
1302 FARPROC GetProcAddress(HMODULE hModule, LPCSTR lpProcName); | |
1303 | |
1304 //Requires Internet Explorer 4.0 (but will work on Windows 95 with IE 4) | |
1305 BOOL SHGetSpecialFolderPathW(HWND hWndOwner, LPWSTR lpszPath, int nFolder, BOOL fCreate); | |
1306 | |
1307 BOOL QueryPerformanceFrequency(ulong* lpFrequency); | |
1308 | |
1309 BOOL QueryPerformanceCounter(ulong* lpPerformanceCount); | |
1310 | |
1311 VOID GetSystemTimeAsFileTime(FILETIME* lpSystemTimeAsFileTime); | |
1312 | |
1313 BOOL SystemTimeToFileTime(SYSTEMTIME* lpSystemTime, FILETIME* lpFileTime); | |
1314 | |
1315 HANDLE GetCurrentThread(); | |
1316 | |
1317 VOID Sleep(DWORD dwMilliseconds); | |
1318 | |
1319 BOOL GetProcessAffinityMask( | |
1320 HANDLE hProcess, | |
1321 ULONG_PTR* lpProcessAffinityMask, | |
1322 ULONG_PTR* lpSystemAffinityMask); | |
1323 | |
1324 ULONG_PTR SetThreadAffinityMask(HANDLE hThread, ULONG_PTR dwThreadAffinityMask); | |
1325 //}}} | |
1326 | |
1327 //{{{ file functions | |
1328 | |
1329 BOOL GetFileSizeEx(HANDLE hFile, long* lpFileSize); | |
1330 | |
1331 BOOL ReadFile( | |
1332 HANDLE hFile, | |
1333 VOID* lpBuffer, | |
1334 DWORD nNumberOfBytesToRead, | |
1335 DWORD* lpNumberOfBytesRead, | |
1336 OVERLAPPED* lpOverlapped); | |
1337 | |
1338 BOOL WriteFile( | |
1339 HANDLE hFile, | |
1340 VOID* lpBuffer, | |
1341 DWORD nNumberOfBytesToWrite, | |
1342 DWORD* lpNumberOfBytesWritten, | |
1343 OVERLAPPED* lpOverlapped); | |
1344 //}}} | |
1345 | |
1346 //{{{ console functions | |
1347 BOOL AllocConsole(); | |
1348 | |
1349 BOOL FreeConsole(); | |
1350 | |
1351 BOOL GetConsoleMode(HANDLE hConsoleHandle, DWORD* lpMode); | |
1352 | |
1353 BOOL SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode); | |
1354 | |
1355 DWORD GetConsoleTitleW(LPWSTR lpConsoleTitle, DWORD nSize); | |
1356 | |
1357 BOOL SetConsoleTitleW(LPCWSTR lpConsoleTitle); | |
1358 | |
1359 BOOL ReadConsoleW( | |
1360 HANDLE hConsoleInput, | |
1361 LPWSTR lpBuffer, | |
1362 DWORD nNumberOfCharsToRead, | |
1363 DWORD* lpNumberOfCharsRead, | |
1364 VOID* lpReserved); | |
1365 | |
1366 BOOL WriteConsoleW( | |
1367 HANDLE hConsoleOutput, | |
1368 LPCWSTR lpBuffer, | |
1369 DWORD nNumberOfCharsToWrite, | |
1370 DWORD* lpNumberOfCharsWritten, | |
1371 VOID* lpReserved); | |
1372 | |
106 | 1373 enum : ushort { |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1374 FOREGROUND_BLUE = 0x0001, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1375 FOREGROUND_GREEN = 0x0002, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1376 FOREGROUND_RED = 0x0004, |
0 | 1377 FOREGROUND_INTENSITY = 0x0008, |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1378 BACKGROUND_BLUE = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1379 BACKGROUND_GREEN = 0x0020, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1380 BACKGROUND_RED = 0x0040, |
0 | 1381 BACKGROUND_INTENSITY = 0x0080 |
1382 } | |
1383 | |
1384 BOOL SetConsoleTextAttribute(HANDLE hConsoleOutput, WORD wAttributes); | |
1385 | |
1386 BOOL GetConsoleScreenBufferInfo( | |
1387 HANDLE hConsoleOutput, | |
1388 CONSOLE_SCREEN_BUFFER_INFO* lpConsoleScreenBufferInfo); | |
1389 | |
1390 BOOL SetConsoleActiveScreenBuffer(HANDLE hConsoleOutput); | |
1391 | |
1392 enum { | |
1393 STD_INPUT_HANDLE = -10, | |
1394 STD_OUTPUT_HANDLE = -11, | |
1395 STD_ERROR_HANDLE = -12 | |
1396 } | |
1397 | |
1398 HANDLE GetStdHandle(DWORD nStdHandle); | |
1399 | |
1400 UINT GetConsoleCP(); | |
1401 | |
1402 UINT GetConsoleOutputCP(); | |
1403 | |
1404 //}}} | |
1405 | |
1406 //{{{ COM functions | |
1407 enum { | |
1408 COINIT_APARTMENTTHREADED = 0x2, | |
1409 } | |
1410 | |
1411 HRESULT CoInitializeEx(VOID* pvReserved, DWORD dwCoInit); | |
1412 void CoUninitialize(); | |
1413 | |
1414 VOID* CoTaskMemAlloc(SIZE_T cb); | |
1415 VOID* CoTaskMemRealloc(VOID* pv, SIZE_T cb); | |
1416 void CoTaskMemFree(VOID* pv); | |
1417 | |
1418 enum { | |
1419 BIF_RETURNONLYFSDIRS = 0x0001, | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1420 BIF_EDITBOX = 0x0010, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1421 BIF_NEWDIALOGSTYLE = 0x0040, |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1422 BIF_USENEWUI = (BIF_NEWDIALOGSTYLE | BIF_EDITBOX) |
0 | 1423 } |
1424 | |
21
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1425 enum { |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1426 BFFM_INITIALIZED = 1, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1427 BFFM_SELCHANGED = 2, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1428 BFFM_VALIDATEFAILEDA = 3, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1429 BFFM_VALIDATEFAILEDW = 4, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1430 BFFM_IUNKNOWN = 5, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1431 |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1432 BFFM_SETSTATUSTEXTA = WM_USER + 100, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1433 BFFM_ENABLEOK = WM_USER + 101, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1434 BFFM_SETSELECTIONA = WM_USER + 102, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1435 BFFM_SETSELECTIONW = WM_USER + 103, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1436 BFFM_SETSTATUSTEXTW = WM_USER + 104, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1437 BFFM_SETOKTEXT = WM_USER + 105, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1438 BFFM_SETEXPANDED = WM_USER + 106, |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1439 } |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1440 |
0 | 1441 ITEMIDLIST* SHBrowseForFolderW(BROWSEINFO* lpbi); |
1442 | |
1443 BOOL SHGetPathFromIDListW(ITEMIDLIST* pidl, LPWSTR pszPath); | |
1444 | |
1445 HRESULT SHGetFolderPathW(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath); | |
1446 | |
20
63cbfb167240
Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents:
14
diff
changeset
|
1447 HRESULT SHGetDesktopFolder(IShellFolder* ppshf); |
0 | 1448 |
1449 struct GUID { | |
1450 align(1): | |
1451 uint Data1; | |
1452 ushort Data2; | |
1453 ushort Data3; | |
1454 ubyte[8] Data4; | |
1455 } | |
1456 alias GUID IID; | |
1457 alias GUID CLSID; | |
1458 | |
1459 interface IUnknown { | |
1460 HRESULT QueryInterface(IID* riid, void** ppvObject); | |
1461 ULONG AddRef(); | |
1462 ULONG Release(); | |
1463 } | |
20
63cbfb167240
Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents:
14
diff
changeset
|
1464 alias void IBindCtx; |
0 | 1465 interface IShellFolder : IUnknown { |
1466 HRESULT ParseDisplayName( | |
1467 HWND hwnd, | |
20
63cbfb167240
Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents:
14
diff
changeset
|
1468 IBindCtx* pbc, |
0 | 1469 wchar* pszDisplayName, |
1470 ULONG* pchEaten, | |
1471 ITEMIDLIST** ppidl, | |
1472 ULONG* pdwAttributes); | |
1473 | |
1474 //other methods omitted | |
1475 } | |
1476 //}}} | |
1477 | |
1478 //{{{ Multimedia functions | |
1479 alias uint MMRESULT; | |
1480 alias HANDLE HWAVEOUT; | |
1481 struct TIMECAPS { | |
1482 UINT wPeriodMin; | |
1483 UINT wPeriodMax; | |
1484 } | |
1485 DWORD timeGetTime(); | |
1486 MMRESULT timeGetDevCaps(TIMECAPS* ptc, UINT cbtc); | |
1487 MMRESULT timeBeginPeriod(UINT uPeriod); | |
1488 MMRESULT timeEndPeriod(UINT uPeriod); | |
1489 | |
1490 struct WAVEHDR { | |
1491 LPSTR lpData; | |
1492 DWORD dwBufferLength; | |
1493 DWORD dwBytesRecorded; | |
1494 ULONG_PTR dwUser; | |
1495 DWORD dwFlags; | |
1496 DWORD dwLoops; | |
1497 WAVEHDR* lpNext; | |
1498 ULONG_PTR reserved; | |
1499 } | |
1500 enum { | |
1501 WHDR_DONE = 0x00000001, | |
1502 WHDR_PREPARED = 0x00000002, | |
1503 WHDR_BEGINLOOP = 0x00000004, | |
1504 WHDR_ENDLOOP = 0x00000008, | |
1505 WHDR_INQUEUE = 0x00000010 | |
1506 } | |
1507 alias uint MMVERSION; | |
1508 struct WAVEOUTCAPSW { | |
1509 WORD wMid; | |
1510 WORD wPid; | |
1511 MMVERSION vDriverVersion; | |
1512 WCHAR[32] szPname; | |
1513 DWORD dwFormats; | |
1514 WORD wChannels; | |
1515 WORD wReserved1; | |
1516 DWORD dwSupport; | |
1517 } | |
1518 struct MMTIME { | |
1519 UINT wType; | |
1520 union _u { | |
1521 DWORD ms; | |
1522 DWORD sample; | |
1523 DWORD cb; | |
1524 DWORD ticks; | |
1525 | |
1526 struct _smpte { | |
1527 BYTE hour; | |
1528 BYTE min; | |
1529 BYTE sec; | |
1530 BYTE frame; | |
1531 BYTE fps; | |
1532 BYTE dummy; | |
1533 BYTE pad[2]; | |
1534 } | |
1535 _smpte smpte; | |
1536 | |
1537 struct _midi { | |
1538 DWORD songptrpos; | |
1539 } | |
1540 _midi midi; | |
1541 } | |
1542 _u u; | |
1543 } | |
1544 enum { | |
1545 TIME_MS = 0x0001, | |
1546 TIME_SAMPLES = 0x0002, | |
1547 TIME_BYTES = 0x0004, | |
1548 TIME_SMPTE = 0x0008, | |
1549 TIME_MIDI = 0x0010, | |
1550 TIME_TICKS = 0x0020 | |
1551 } | |
1552 struct WAVEFORMATEX { | |
1553 WORD wFormatTag; | |
1554 WORD nChannels; | |
1555 DWORD nSamplesPerSec; | |
1556 DWORD nAvgBytesPerSec; | |
1557 WORD nBlockAlign; | |
1558 WORD wBitsPerSample; | |
1559 WORD cbSize; | |
1560 | |
1561 } | |
1562 | |
1563 MMRESULT waveOutGetVolume(HWAVEOUT hwo, DWORD* pdwVolume); | |
1564 MMRESULT waveOutSetVolume(HWAVEOUT hwo, DWORD dwVolume); | |
1565 MMRESULT waveOutOpen( | |
1566 HWAVEOUT* phwo, | |
1567 UINT uDeviceID, | |
1568 WAVEFORMATEX* pwfx, | |
1569 ULONG_PTR dwCallback, | |
1570 ULONG_PTR dwInstance, | |
1571 DWORD fdwOpen); | |
1572 MMRESULT waveOutClose(HWAVEOUT hwo); | |
1573 MMRESULT waveOutPrepareHeader(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh); | |
1574 MMRESULT waveOutUnprepareHeader(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh); | |
1575 MMRESULT waveOutWrite(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh); | |
1576 MMRESULT waveOutPause(HWAVEOUT hwo); | |
1577 MMRESULT waveOutRestart(HWAVEOUT hwo); | |
1578 MMRESULT waveOutReset(HWAVEOUT hwo); | |
1579 MMRESULT waveOutBreakLoop(HWAVEOUT hwo); | |
1580 MMRESULT waveOutGetPosition(HWAVEOUT hwo, MMTIME* pmmt, UINT cbmmt); | |
1581 MMRESULT waveOutGetPitch(HWAVEOUT hwo, DWORD* pdwPitch); | |
1582 MMRESULT waveOutSetPitch(HWAVEOUT hwo, DWORD dwPitch); | |
1583 MMRESULT waveOutGetPlaybackRate(HWAVEOUT hwo, DWORD* pdwRate); | |
1584 MMRESULT waveOutSetPlaybackRate(HWAVEOUT hwo, DWORD dwRate); | |
1585 | |
1586 //}}} | |
1587 | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1588 //{{{ alias ...W -> ... |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1589 alias MessageBoxW MessageBox; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1590 alias RegisterClassExW RegisterClassEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1591 alias CreateWindowExW CreateWindowEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1592 alias DefWindowProcW DefWindowProc; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1593 alias GetWindowLongW GetWindowLong; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1594 alias SetWindowLongW SetWindowLong; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1595 alias GetWindowLongPtrW GetWindowLongPtr; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1596 alias SetWindowLongPtrW SetWindowLongPtr; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1597 alias GetWindowTextW GetWindowText; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1598 alias SetWindowTextW SetWindowText; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1599 alias GetWindowModuleFileNameW GetWindowModuleFileName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1600 alias SetPropW SetProp; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1601 alias GetPropW GetProp; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1602 alias RemovePropW RemoveProp; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1603 alias GetOpenFileNameW GetOpenFileName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1604 alias GetSaveFileNameW GetSaveFileName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1605 alias GetMessageW GetMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1606 alias DispatchMessageW DispatchMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1607 alias PostMessageW PostMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1608 alias SendMessageW SendMessage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1609 alias LoadImageW LoadImage; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1610 alias GetObjectW GetObject; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1611 alias EnumFontFamiliesExW EnumFontFamiliesEx; |
93
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
1612 alias CreateFontW CreateFont; |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
1613 alias CreateFontIndirectW CreateFontIndirect; |
8b2d3b3cbca6
Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents:
89
diff
changeset
|
1614 alias TextOutW TextOut; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1615 alias SystemParametersInfoW SystemParametersInfo; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1616 alias GetVersionExW GetVersionEx; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1617 alias GetModuleHandleW GetModuleHandle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1618 alias LoadLibraryW LoadLibrary; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1619 alias SHGetSpecialFolderPathW SHGetSpecialFolderPath; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1620 alias GetConsoleTitleW GetConsoleTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1621 alias SetConsoleTitleW SetConsoleTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1622 alias ReadConsoleW ReadConsole; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1623 alias WriteConsoleW WriteConsole; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1624 alias SHBrowseForFolderW SHBrowseForFolder; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1625 alias SHGetPathFromIDListW SHGetPathFromIDList; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1626 alias SHGetFolderPathW SHGetFolderPath; |
21
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1627 alias BFFM_VALIDATEFAILEDW BFFM_VALIDATEFAILED; |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1628 alias BFFM_SETSELECTIONW BFFM_SETSELECTION; |
d0ce1db78819
Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents:
20
diff
changeset
|
1629 alias BFFM_SETSTATUSTEXTW BFFM_SETSTATUSTEXT; |
0 | 1630 |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1631 alias LOGFONTW LOGFONT; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1632 alias NONCLIENTMETRICSW NONCLIENTMETRICS; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1633 alias ENUMLOGFONTEXW ENUMLOGFONTEX; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1634 alias TEXTMETRICW TEXTMETRIC; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1635 alias OSVERSIONINFOW OSVERSIONINFO; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1636 //}}} |
0 | 1637 |
1638 struct POINT { | |
1639 LONG x; | |
1640 LONG y; | |
1641 } | |
1642 struct SIZE { | |
1643 LONG cx; | |
1644 LONG cy; | |
1645 } | |
1646 struct RECT { | |
1647 LONG left; | |
1648 LONG top; | |
1649 LONG right; | |
1650 LONG bottom; | |
1651 } | |
1652 struct BLENDFUNCTION { | |
1653 BYTE BlendOp; | |
1654 BYTE BlendFlags; | |
1655 BYTE SourceConstantAlpha; | |
1656 BYTE AlphaFormat; | |
1657 } | |
1658 const int LF_FACESIZE = 32; | |
1659 struct LOGFONTW { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1660 LONG lfHeight; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1661 LONG lfWidth; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1662 LONG lfEscapement; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1663 LONG lfOrientation; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1664 LONG lfWeight; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1665 BYTE lfItalic; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1666 BYTE lfUnderline; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1667 BYTE lfStrikeOut; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1668 BYTE lfCharSet; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1669 BYTE lfOutPrecision; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1670 BYTE lfClipPrecision; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1671 BYTE lfQuality; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1672 BYTE lfPitchAndFamily; |
0 | 1673 WCHAR[LF_FACESIZE] lfFaceName; |
1674 } | |
1675 struct NONCLIENTMETRICSW { | |
1676 UINT cbSize; | |
1677 int iBorderWidth; | |
1678 int iScrollWidth; | |
1679 int iScrollHeight; | |
1680 int iCaptionWidth; | |
1681 int iCaptionHeight; | |
1682 LOGFONTW lfCaptionFont; | |
1683 int iSmCaptionWidth; | |
1684 int iSmCaptionHeight; | |
1685 LOGFONTW lfSmCaptionFont; | |
1686 int iMenuWidth; | |
1687 int iMenuHeight; | |
1688 LOGFONTW lfMenuFont; | |
1689 LOGFONTW lfStatusFont; | |
1690 LOGFONTW lfMessageFont; | |
1691 } | |
1692 const int LF_FULLFACESIZE = 64; | |
1693 struct ENUMLOGFONTEXW { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1694 LOGFONT elfLogFont; |
0 | 1695 WCHAR[LF_FULLFACESIZE] elfFullName; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1696 WCHAR[LF_FACESIZE] elfStyle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1697 WCHAR[LF_FACESIZE] elfScript; |
0 | 1698 } |
1699 struct TEXTMETRICW { | |
1700 LONG tmHeight; | |
1701 LONG tmAscent; | |
1702 LONG tmDescent; | |
1703 LONG tmInternalLeading; | |
1704 LONG tmExternalLeading; | |
1705 LONG tmAveCharWidth; | |
1706 LONG tmMaxCharWidth; | |
1707 LONG tmWeight; | |
1708 LONG tmOverhang; | |
1709 LONG tmDigitizedAspectX; | |
1710 LONG tmDigitizedAspectY; | |
1711 WCHAR tmFirstChar; | |
1712 WCHAR tmLastChar; | |
1713 WCHAR tmDefaultChar; | |
1714 WCHAR tmBreakChar; | |
1715 BYTE tmItalic; | |
1716 BYTE tmUnderlined; | |
1717 BYTE tmStruckOut; | |
1718 BYTE tmPitchAndFamily; | |
1719 BYTE tmCharSet; | |
1720 } | |
1721 struct RGBQUAD { | |
1722 BYTE rgbBlue; | |
1723 BYTE rgbGreen; | |
1724 BYTE rgbRed; | |
1725 BYTE rgbReserved; | |
1726 } | |
1727 struct BITMAPINFO { | |
1728 BITMAPINFOHEADER bmiHeader; | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1729 RGBQUAD[1] bmiColors; |
0 | 1730 } |
1731 struct BITMAPINFOHEADER { | |
1732 DWORD biSize; | |
1733 LONG biWidth; | |
1734 LONG biHeight; | |
1735 WORD biPlanes; | |
1736 WORD biBitCount; | |
1737 DWORD biCompression; | |
1738 DWORD biSizeImage; | |
1739 LONG biXPelsPerMeter; | |
1740 LONG biYPelsPerMeter; | |
1741 DWORD biClrUsed; | |
1742 DWORD biClrImportant; | |
1743 } | |
1744 struct DIBSECTION { | |
1745 BITMAP dsBm; | |
1746 BITMAPINFOHEADER dsBmih; | |
1747 DWORD[3] dsBitfields; | |
1748 HANDLE dshSection; | |
1749 DWORD dsOffset; | |
1750 } | |
1751 struct BITMAP { | |
1752 LONG bmType; | |
1753 LONG bmWidth; | |
1754 LONG bmHeight; | |
1755 LONG bmWidthBytes; | |
1756 WORD bmPlanes; | |
1757 WORD bmBitsPixel; | |
1758 VOID* bmBits; | |
1759 } | |
112
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1760 |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1761 struct ICONINFO { |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1762 BOOL fIcon; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1763 DWORD xHotspot; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1764 DWORD yHotspot; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1765 HBITMAP hbmMask; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1766 HBITMAP hbmColor; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1767 } |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1768 |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1769 alias ICONINFO* PICONINFO; |
e1eb6df1cfbd
Add some cursor-related stuff to Windows binding.
Jordan Miner <jminer7@gmail.com>
parents:
106
diff
changeset
|
1770 |
0 | 1771 struct MSG { |
1772 HWND hWnd; | |
1773 UINT message; | |
1774 WPARAM wParam; | |
1775 LPARAM lParam; | |
1776 DWORD time; | |
1777 POINT pt; | |
1778 } | |
1779 struct WNDCLASSEX { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1780 UINT cbSize; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1781 UINT style; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1782 WNDPROC lpfnWndProc; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1783 int cbClsExtra; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1784 int cbWndExtra; |
0 | 1785 HINSTANCE hInstance; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1786 HICON hIcon; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1787 HCURSOR hCursor; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1788 HBRUSH hbrBackground; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1789 LPCTSTR lpszMenuName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1790 LPCTSTR lpszClassName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1791 HICON hIconSm; |
0 | 1792 } |
1793 struct WINDOWINFO { | |
1794 DWORD cbSize; | |
1795 RECT rcWindow; | |
1796 RECT rcClient; | |
1797 DWORD dwStyle; | |
1798 DWORD dwExStyle; | |
1799 DWORD dwWindowStatus; | |
1800 UINT cxWindowBorders; | |
1801 UINT cyWindowBorders; | |
1802 ATOM atomWindowType; | |
1803 WORD wCreatorVersion; | |
1804 } | |
1805 struct PAINTSTRUCT { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1806 HDC hdc; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1807 BOOL fErase; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1808 RECT rcPaint; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1809 BOOL fRestore; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1810 BOOL fIncUpdate; |
0 | 1811 BYTE[32] rgbReserved; |
1812 } | |
1813 struct TRACKMOUSEEVENT { | |
1814 DWORD cbSize; | |
1815 DWORD dwFlags; | |
1816 HWND hWndTrack; | |
1817 DWORD dwHoverTime; | |
1818 } | |
1819 struct OPENFILENAME { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1820 DWORD lStructSize; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1821 HWND hWndOwner; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1822 HINSTANCE hInstance; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1823 LPCTSTR lpstrFilter; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1824 LPTSTR lpstrCustomFilter; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1825 DWORD nMaxCustFilter; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1826 DWORD nFilterIndex; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1827 LPTSTR lpstrFile; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1828 DWORD nMaxFile; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1829 LPTSTR lpstrFileTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1830 DWORD nMaxFileTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1831 LPCTSTR lpstrInitialDir; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1832 LPCTSTR lpstrTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1833 DWORD Flags; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1834 WORD nFileOffset; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1835 WORD nFileExtension; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1836 LPCTSTR lpstrDefExt; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1837 LPARAM lCustData; |
0 | 1838 LPOFNHOOKPROC lpfnHook; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1839 LPCTSTR lpTemplateName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1840 // if(_WIN32_WINNT >= 0x0500) |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1841 //void* pvReserved; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1842 //DWORD dwReserved; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1843 //DWORD FlagsEx; |
0 | 1844 } |
1845 struct SHITEMID { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1846 USHORT cb; |
0 | 1847 BYTE[1] abID; |
1848 } | |
1849 struct ITEMIDLIST { | |
1850 SHITEMID mkid; | |
1851 } | |
1852 struct BROWSEINFO { | |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1853 HWND hwndOwner; |
0 | 1854 ITEMIDLIST* pidlRoot; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1855 LPTSTR pszDisplayName; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1856 LPCTSTR lpszTitle; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1857 UINT ulFlags; |
0 | 1858 BFFCALLBACK lpfn; |
14
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1859 LPARAM lParam; |
e6e201c3a439
Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents:
13
diff
changeset
|
1860 int iImage; |
0 | 1861 } |
1862 struct OVERLAPPED { | |
1863 ULONG_PTR Internal; | |
1864 ULONG_PTR InternalHigh; | |
1865 union { | |
1866 struct { | |
1867 DWORD Offset; | |
1868 DWORD OffsetHigh; | |
1869 } | |
1870 | |
1871 VOID* Pointer; | |
1872 } | |
1873 | |
1874 HANDLE hEvent; | |
1875 } | |
1876 struct OSVERSIONINFOW { | |
1877 DWORD dwOSVersionInfoSize; | |
1878 DWORD dwMajorVersion; | |
1879 DWORD dwMinorVersion; | |
1880 DWORD dwBuildNumber; | |
1881 DWORD dwPlatformId; | |
1882 WCHAR[128] szCSDVersion; | |
1883 } | |
1884 struct SYSTEM_INFO { | |
1885 WORD wProcessorArchitecture; | |
1886 WORD wReserved; | |
1887 DWORD dwPageSize; | |
1888 VOID* lpMinimumApplicationAddress; | |
1889 VOID* lpMaximumApplicationAddress; | |
1890 ULONG_PTR dwActiveProcessorMask; | |
1891 DWORD dwNumberOfProcessors; | |
1892 DWORD dwProcessorType; | |
1893 DWORD dwAllocationGranularity; | |
1894 WORD wProcessorLevel; | |
1895 WORD wProcessorRevision; | |
1896 } | |
1897 struct CONSOLE_SCREEN_BUFFER_INFO { | |
1898 COORD dwSize; | |
1899 COORD dwCursorPosition; | |
1900 WORD wAttributes; | |
1901 SMALL_RECT srWindow; | |
1902 COORD dwMaximumWindowSize; | |
1903 } | |
1904 struct FILETIME { | |
1905 DWORD dwLowDateTime; | |
1906 DWORD dwHighDateTime; | |
1907 } | |
1908 struct SYSTEMTIME { | |
1909 WORD wYear; | |
1910 WORD wMonth; | |
1911 WORD wDayOfWeek; | |
1912 WORD wDay; | |
1913 WORD wHour; | |
1914 WORD wMinute; | |
1915 WORD wSecond; | |
1916 WORD wMilliseconds; | |
1917 } | |
1918 struct COORD { | |
1919 SHORT X; | |
1920 SHORT Y; | |
1921 } | |
1922 struct SMALL_RECT { | |
1923 SHORT Left; | |
1924 SHORT Top; | |
1925 SHORT Right; | |
1926 SHORT Bottom; | |
1927 } | |
1928 |