annotate dynamin/c/windows.d @ 93:8b2d3b3cbca6

Add bindings to 5 more Windows functions.
author Jordan Miner <jminer7@gmail.com>
date Tue, 07 Jun 2011 15:33:39 -0500
parents 0d6778fea624
children acdbb30fee7e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1 module dynamin.c.windows;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
2
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
3 /*
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
7 */
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
8
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
9 version(Windows) {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
10 } else {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
11 static assert(0);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
12 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
13
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
14 version(build) { pragma(link, gdi32, comdlg32, shell32, ole32, winmm); }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
15
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
16 extern(Windows):
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
19 alias wchar* LPWSTR;
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
20 alias char* LPCSTR;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
21 alias 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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
45
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
52 alias ulong ULONG_PTR;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
60 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
61
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
95 alias LONG NTSTATUS;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
98 const HRESULT S_FALSE = 1;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
99 const HRESULT NOERROR = 0;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
100
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
101 const int MAX_PATH = 260;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
102
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
103 alias UINT_PTR function(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam) LPOFNHOOKPROC;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
104 alias LRESULT function(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) WNDPROC;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
105 alias int function(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData) BFFCALLBACK;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
106
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
107 public import tango.sys.win32.Macros;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
108 //public import tango.sys.win32.UserGdi : LOWORD, HIWORD, RGB;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
109
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
110 WORD MAKEWORD(BYTE a, BYTE b) { return cast(WORD)a | cast(WORD)b << 8; }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
111 LONG MAKELONG(WORD a, WORD b) { return cast(WORD)a | cast(WORD)b << 16; }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
112 BYTE LOBYTE(WORD w) { return cast(BYTE)(w & 0xff); }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
113 BYTE HIBYTE(WORD w) { return cast(BYTE)(w >> 8); }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
114 LPWSTR MAKEINTRESOURCE(int i) { return cast(LPWSTR)cast(WORD)i; }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
115 BYTE GetRValue(DWORD rgb) { return LOBYTE(rgb); }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
116 BYTE GetGValue(DWORD rgb) { return LOBYTE(cast(WORD)rgb >> 8); }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
117 BYTE GetBValue(DWORD rgb) { return LOBYTE(rgb >> 16); }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
118
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
119 int MessageBoxW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
120
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
121 DWORD GetLastError();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
153 int MultiByteToWideChar(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
154 UINT CodePage,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
155 DWORD dwFlags,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
156 LPCSTR lpMultiByteStr,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
157 int cbMultiByte,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
158 LPWSTR lpWideCharStr,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
159 int cchWideChar);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
160
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
161 int WideCharToMultiByte(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
162 UINT CodePage,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
163 DWORD dwFlags,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
164 LPCWSTR lpWideCharStr,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
165 int cchWideChar,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
166 LPSTR lpMultiByteStr,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
167 int cbMultiByte,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
168 LPCSTR lpDefaultChar,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
169 BOOL* lpUsedDefaultChar);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
170
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
171 //{{{ memory functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
172 HANDLE GetProcessHeap();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
173
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
174 VOID* HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
175
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
176 VOID* HeapReAlloc(HANDLE hHeap, DWORD dwFlags, VOID* lpMem, SIZE_T dwBytes);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
177
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
178 BOOL HeapFree(HANDLE hHeap, DWORD dwFlags, VOID* lpMem);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
179
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
180 SIZE_T HeapSize(HANDLE hHeap, DWORD dwFlags, /*const*/ VOID* lpMem);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
181
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
184 HEAP_REALLOC_IN_PLACE_ONLY = 0x0010
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
185 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
186
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
187 HGLOBAL GlobalAlloc(UINT uFlags, SIZE_T dwBytes);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
188
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
189 HGLOBAL GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
190
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
191 HGLOBAL GlobalFree(HGLOBAL hMem);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
192
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
193 VOID* GlobalLock(HGLOBAL hMem);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
194
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
195 BOOL GlobalUnlock(HGLOBAL hMem);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
196
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
199 GMEM_MOVEABLE = 0x0002,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
203 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
204 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
205
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
206 //{{{ window functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
216 CS_BYTEALIGNCLIENT = 0x1000,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
221
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
222 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
223 ATOM RegisterClassExW(/*const*/ WNDCLASSEX* lpwcx);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
224
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
225 LRESULT DefWindowProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
226
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
227 //{{{ window styles
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
242 WS_CLIPCHILDREN = 0x02000000,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
263 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
264 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
265
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
266 //{{{ extended window styles
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
279 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
280 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
281
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
282 //{{{ CreateWindowEx()
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
283 HWND CreateWindowExW(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
284 DWORD dwExStyle,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
285 LPCWSTR lpClassName,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
286 LPCWSTR lpWindowName,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
287 DWORD dwStyle,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
288 int x,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
289 int y,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
290 int nWidth,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
291 int nHeight,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
292 HWND hWndParent,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
293 HMENU hMenu,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
294 HINSTANCE hInstance,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
295 VOID* lpParam);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
296 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
297
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
298 BOOL DestroyWindow(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
299
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
300 BOOL ClientToScreen(HWND hWnd, POINT* lpPoint);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
301
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
302 BOOL ScreenToClient(HWND hWnd, POINT* lpPoint);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
306 //{{{ messages
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
524 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
525 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
526 PBT_APMQUERYSUSPEND = 0x0000,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
527 PBT_APMQUERYSTANDBY = 0x0001,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
528 PBT_APMQUERYSUSPENDFAILED = 0x0002,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
529 PBT_APMQUERYSTANDBYFAILED = 0x0003,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
530 PBT_APMSUSPEND = 0x0004,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
531 PBT_APMSTANDBY = 0x0005,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
532 PBT_APMRESUMECRITICAL = 0x0006,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
533 PBT_APMRESUMESUSPEND = 0x0007,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
534 PBT_APMRESUMESTANDBY = 0x0008,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
535 PBTF_APMRESUMEFROMFAILURE = 0x00000001,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
536 PBT_APMBATTERYLOW = 0x0009,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
537 PBT_APMPOWERSTATUSCHANGE = 0x000A,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
538 PBT_APMOEMEVENT = 0x000B,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
539 PBT_APMRESUMEAUTOMATIC = 0x0012
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
540 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
541 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
542
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
549 MK_XBUTTON1 = 0x0020,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
550 MK_XBUTTON2 = 0x0040
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
551 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
552
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
561 WMSZ_BOTTOMRIGHT = 8
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
562 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
563
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
564 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
565 SIZE_RESTORED = 0,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
566 SIZE_MINIMIZED = 1,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
567 SIZE_MAXIMIZED = 2,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
568 SIZE_MAXSHOW = 3,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
569 SIZE_MAXHIDE = 4
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
570 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
571
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
588 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
589
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
592 GWL_EXSTYLE = -20
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
593 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
594
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
595 DWORD GetClassLongW(HWND hWnd, int nIndex);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
596
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
597 DWORD SetClassLongW(HWND hWnd, int nIndex, LONG dwNewLong);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
598
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
599 ULONG_PTR GetClassLongPtrW(HWND hWnd, int nIndex);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
600
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
601 ULONG_PTR SetClassLongPtrW(HWND hWnd, int nIndex, LONG_PTR dwNewLong);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
602
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
603 LONG GetWindowLongW(HWND hWnd, int nIndex);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
604
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
605 LONG SetWindowLongW(HWND hWnd, int nIndex, LONG dwNewLong);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
606
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
607 LONG_PTR GetWindowLongPtrW(HWND hWnd, int nIndex);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
608
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
609 LONG_PTR SetWindowLongPtrW(HWND hWnd, int nIndex, LONG_PTR dwNewLong);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
610
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
611 BOOL ShowWindow(HWND hWnd, int nCmdShow);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
612
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
613 //Windows 98 required
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
614 BOOL AnimateWindow(HWND hWnd, DWORD dwTime, DWORD dwFlags);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
615
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
616 BOOL IsWindowVisible(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
617
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
618 BOOL IsWindow(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
619
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
620 BOOL GetWindowRect(HWND hWnd, RECT* lpRect);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
621
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
622 BOOL GetClientRect(HWND hWnd, RECT* lpRect);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
623
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
629 SWP_FRAMECHANGED = 0x0020
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
630 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
631
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
632 BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
633
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
634 BOOL MoveWindow(HWND hWnd, int x, int y, int nWidth, int nHeight, BOOL bRepaint);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
635
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
636 int SetWindowRgn(HWND hWnd, HRGN hRgn, BOOL bRedraw);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
637
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
638 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
642 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
643
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
644 BOOL UpdateLayeredWindow(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
645 HWND hWnd,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
646 HDC hdcDst,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
647 POINT* pptDst,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
648 SIZE* psize,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
649 HDC hdcSrc,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
650 POINT* pptSrc,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
651 COLORREF crKey,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
652 BLENDFUNCTION* pblend,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
653 DWORD dwFlags);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
654
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
655 HWND SetParent(HWND hWndChild, HWND hWndNewParent);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
656
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
657 HWND GetParent(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
658
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
659 BOOL IsChild(HWND hWndParent, HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
660
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
661 BOOL EnableWindow(HWND hWnd, BOOL bEnable);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
662
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
663 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
670 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
671
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
672 HWND GetWindow(HWND hWnd, UINT uCmd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
673
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
674 BOOL GetWindowInfo(HWND hwnd, WINDOWINFO* pwi);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
675
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
676 int GetWindowTextLength(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
677
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
678 int GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
679
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
680 BOOL SetWindowTextW(HWND hWnd, LPCWSTR lpString);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
681
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
682 UINT GetWindowModuleFileNameW(HWND hWnd, LPWSTR lpszFileName, UINT cchFileNameMax);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
683
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
684 BOOL SetPropW(HWND hWnd, LPCWSTR lpString, HANDLE hData);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
685
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
686 HANDLE GetPropW(HWND hWnd, LPCWSTR lpString);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
687
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
688 HANDLE RemovePropW(HWND hWnd, LPCWSTR lpString);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
689
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
690 DWORD CommDlgExtendedError();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
691 enum { FNERR_BUFFERTOOSMALL = 0x3003 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
692
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
720 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
721
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
722 BOOL GetOpenFileNameW(OPENFILENAME* lpofn);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
723
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
724 BOOL GetSaveFileNameW(OPENFILENAME* lpofn);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
725
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
726 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
727
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
728 //{{{ painting functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
729 BOOL InvalidateRect(HWND hWnd, RECT* lpRect, BOOL bErase);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
730
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
731 BOOL ValidateRect(HWND hWnd, RECT* lpRect);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
732
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
733 BOOL UpdateWindow(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
734
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
735 HWND WindowFromDC(HDC hdc);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
736
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
737 HDC BeginPaint(HWND hWnd, PAINTSTRUCT* lpPaint);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
738
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
739 BOOL EndPaint(HWND hWnd, PAINTSTRUCT* lpPaint);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
740 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
741
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
742 //{{{ device context functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
743 HDC GetDC(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
744
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
745 int ReleaseDC(HWND hWnd, HDC hDC);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
746
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
747 HDC CreateCompatibleDC(HDC hdc);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
748
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
749 BOOL DeleteDC(HDC hdc);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
755 HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hObject);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
756
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
757 BOOL DeleteObject(HGDIOBJ hObject);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
758
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
759 int GetObjectW(HANDLE h, int c, VOID* pv);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
760
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
761 HBITMAP CreateCompatibleBitmap(HDC hdc, int cx, int cy);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
762
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
763 HBITMAP CreateDIBSection(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
764 HDC hdc,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
765 BITMAPINFO* lpbmi,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
766 UINT usage,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
767 VOID** ppvBits,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
768 HANDLE hSection,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
769 DWORD offset);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
770
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
771 int GetDIBits(HDC hdc, HBITMAP hbm, UINT start, UINT cLines, VOID* lpvBits, BITMAPINFO* lpbmi, UINT usage);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
772
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
773 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
774 DIB_RGB_COLORS = 0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
775 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
776 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
777 BI_RGB = 0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
778 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
779
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
780 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
781 SRCCOPY = 0x00CC0020
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
782 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
783
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
784 BOOL BitBlt(HDC hdc, int x, int y, int cx, int cy, HDC hdcSrc, int x1, int y1, DWORD rop);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
785
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
788 AC_SRC_ALPHA = 0x01
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
789 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
790
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
791 int EnumFontFamiliesExW(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
792 HDC hdc, LOGFONT* lpLogfont,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
793 FONTENUMPROCW lpProc, LPARAM lParam, DWORD dwFlags);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
794
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
805 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
806
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
807 //{{{ message functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
808 BOOL GetMessageW(MSG* lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
809
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
810 BOOL TranslateMessage(MSG* lpMsg);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
811
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
812 LRESULT DispatchMessageW(MSG* lpMsg);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
815
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
816 void PostQuitMessage(int nExitCode);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
823 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
824
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
825 //{{{ clipboard functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
843 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
844
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
845 BOOL OpenClipboard(HWND hWndNewOwner);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
846
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
847 BOOL CloseClipboard();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
848
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
849 BOOL IsClipboardFormatAvailable(UINT format);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
850
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
851 HANDLE GetClipboardData(UINT uFormat);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
852
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
853 HANDLE SetClipboardData(UINT uFormat, HANDLE hMem);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
854
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
855 BOOL EmptyClipboard();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
856 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
857
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
858 //{{{ mouse functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
859 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
860 XBUTTON1 = 0x0001,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
861 XBUTTON2 = 0x0002
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
862 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
863
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
864 HWND SetCapture(HWND hWnd);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
865
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
866 BOOL ReleaseCapture();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
867
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
871 TME_NONCLIENT = 0x00000010
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
872 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
873 BOOL TrackMouseEvent(TRACKMOUSEEVENT* lpEventTrack);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
874
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
875 HCURSOR SetCursor(HCURSOR hCursor);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
876
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
880 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
881
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
882 //{{{ keyboard functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
883 //{{{ keys
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1045 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1046 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1047
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1048 SHORT GetKeyState(int nVirtKey);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1049 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1050
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1051 //{{{ system functions
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1052 //const LPTSTR IDC_ARROW = cast(LPTSTR)32512u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1053 //const LPTSTR IDC_IBEAM = cast(LPTSTR)32513u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1054 //const LPTSTR IDC_WAIT = cast(LPTSTR)32514u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1055 //const LPTSTR IDC_CROSS = cast(LPTSTR)32515u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1056 //const LPTSTR IDC_UPARROW = cast(LPTSTR)32516u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1057 //const LPTSTR IDC_SIZE = cast(LPTSTR)32640u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1058 //const LPTSTR IDC_ICON = cast(LPTSTR)32641u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1059 //const LPTSTR IDC_SIZENWSE = cast(LPTSTR)32642u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1060 //const LPTSTR IDC_SIZENESW = cast(LPTSTR)32643u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1061 //const LPTSTR IDC_SIZEWE = cast(LPTSTR)32644u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1062 //const LPTSTR IDC_SIZENS = cast(LPTSTR)32645u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1063 //const LPTSTR IDC_SIZEALL = cast(LPTSTR)32646u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1064 //const LPTSTR IDC_NO = cast(LPTSTR)32648u;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1065 //const LPTSTR IDC_HAND = cast(LPTSTR)32649u;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1066 //const LPTSTR IDC_APPSTARTING = cast(LPTSTR)32650u;
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1067 //const LPTSTR IDC_HELP = cast(LPTSTR)32651u;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1068
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1069 //const LPTSTR IDI_APPLICATION = cast(LPTSTR)32512;
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1070 //const LPTSTR IDI_HAND = cast(LPTSTR)32513;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1071 //const LPTSTR IDI_QUESTION = cast(LPTSTR)32514;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1072 //const LPTSTR IDI_EXCLAMATION = cast(LPTSTR)32515;
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1073 //const LPTSTR IDI_ASTERISK = cast(LPTSTR)32516;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1074 //const LPTSTR IDI_WINLOGO = cast(LPTSTR)32517;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1075 //const LPTSTR IDI_WARNING = IDI_EXCLAMATION;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1076 //const LPTSTR IDI_ERROR = IDI_HAND;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1077 //const LPTSTR IDI_INFORMATION = IDI_ASTERISK;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1078
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1079 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1080 OIC_SAMPLE = 32512,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1081 OIC_HAND = 32513,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1082 OIC_QUES = 32514,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1083 OIC_BANG = 32515,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1084 OIC_NOTE = 32516,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1085 OIC_WINLOGO = 32517,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1086 OIC_WARNING = OIC_BANG,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1087 OIC_ERROR = OIC_HAND,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1088 OIC_INFORMATION = OIC_NOTE
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1089 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1090
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1091 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1092 OCR_NORMAL = 32512,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1093 OCR_IBEAM = 32513,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1094 OCR_WAIT = 32514,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1095 OCR_CROSS = 32515,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1096 OCR_UP = 32516,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1097 OCR_SIZENWSE = 32642,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1098 OCR_SIZENESW = 32643,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1099 OCR_SIZEWE = 32644,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1100 OCR_SIZENS = 32645,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1101 OCR_SIZEALL = 32646,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1102 OCR_NO = 32648,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1103 OCR_HAND = 32649,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1104 OCR_APPSTARTING = 32650
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1105 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1106
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1107 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1110 IMAGE_CURSOR = 2
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1111 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1112
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1124 LR_CREATEDIBSECTION = 0x2000,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
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
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1127 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1128
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1129 HANDLE LoadImageW(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1130 HINSTANCE hInst,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1131 LPCWSTR name,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1132 UINT type,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1133 int cx,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1134 int cy,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1135 UINT fuLoad);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1136
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1137 HICON CreateIconFromResource(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1138 BYTE* presbits,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1139 DWORD dwResSize,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1140 BOOL fIcon,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1141 DWORD dwVer);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1142
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1143 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1144 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
1145 SPI_GETWORKAREA = 0x0030,
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1146 SPI_GETWHEELSCROLLLINES = 0x0068
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1147 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1148
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1149 BOOL SystemParametersInfoW(UINT uiAction, UINT uiParam, VOID* pvParam, UINT fWinIni);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1150
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1151 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1152 COLOR_SCROLLBAR = 0,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1153 COLOR_BACKGROUND = 1,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1154 COLOR_ACTIVECAPTION = 2,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1155 COLOR_INACTIVECAPTION = 3,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1156 COLOR_MENU = 4,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1157 COLOR_WINDOW = 5,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1158 COLOR_WINDOWFRAME = 6,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1159 COLOR_MENUTEXT = 7,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1160 COLOR_WINDOWTEXT = 8,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1161 COLOR_CAPTIONTEXT = 9,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1162 COLOR_ACTIVEBORDER = 10,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1163 COLOR_INACTIVEBORDER = 11,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1164 COLOR_APPWORKSPACE = 12,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1165 COLOR_HIGHLIGHT = 13,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1166 COLOR_HIGHLIGHTTEXT = 14,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1167 COLOR_BTNFACE = 15,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1168 COLOR_BTNSHADOW = 16,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1169 COLOR_GRAYTEXT = 17,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1170 COLOR_BTNTEXT = 18,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1171 COLOR_INACTIVECAPTIONTEXT = 19,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1172 COLOR_BTNHIGHLIGHT = 20,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1173
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1174 COLOR_3DDKSHADOW = 21,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1175 COLOR_3DLIGHT = 22,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1176 COLOR_INFOTEXT = 23,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1177 COLOR_INFOBK = 24,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1178
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1179 COLOR_HOTLIGHT = 26,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1180 COLOR_GRADIENTACTIVECAPTION = 27,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1181 COLOR_GRADIENTINACTIVECAPTION = 28,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1182 COLOR_MENUHILIGHT = 29,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1183 COLOR_MENUBAR = 30,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1184
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1185 COLOR_DESKTOP = COLOR_BACKGROUND,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1186 COLOR_3DFACE = COLOR_BTNFACE,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1187 COLOR_3DSHADOW = COLOR_BTNSHADOW,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1188 COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1189 COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1190 COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1191 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1192
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1193 DWORD GetSysColor(int nIndex);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1194
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1195 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1196 SM_CXSCREEN = 0,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1197 SM_CYSCREEN = 1,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1198 SM_CXVSCROLL = 2,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1199 SM_CYHSCROLL = 3,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1200 SM_CYCAPTION = 4,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1201 SM_CXBORDER = 5,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1202 SM_CYBORDER = 6,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1203 SM_CXDLGFRAME = 7,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1204 SM_CYDLGFRAME = 8,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1205 SM_CYVTHUMB = 9,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1206 SM_CXHTHUMB = 10,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1207 SM_CXICON = 11,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1208 SM_CYICON = 12,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1209 SM_CXCURSOR = 13,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1210 SM_CYCURSOR = 14,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1211 SM_CYMENU = 15,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1212 SM_CXFULLSCREEN = 16,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1213 SM_CYFULLSCREEN = 17,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1214 SM_CYKANJIWINDOW = 18,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1215 SM_MOUSEPRESENT = 19,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1216 SM_CYVSCROLL = 20,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1217 SM_CXHSCROLL = 21,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1218 SM_DEBUG = 22,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1219 SM_SWAPBUTTON = 23,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1220 SM_RESERVED1 = 24,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1221 SM_RESERVED2 = 25,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1222 SM_RESERVED3 = 26,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1223 SM_RESERVED4 = 27,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1224 SM_CXMIN = 28,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1225 SM_CYMIN = 29,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1226 SM_CXSIZE = 30,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1227 SM_CYSIZE = 31,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1228 SM_CXFRAME = 32,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1229 SM_CYFRAME = 33,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1230 SM_CXMINTRACK = 34,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1231 SM_CYMINTRACK = 35,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1232 SM_CXDOUBLECLK = 36,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1233 SM_CYDOUBLECLK = 37,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1234 SM_CXICONSPACING = 38,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1235 SM_CYICONSPACING = 39,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1236 SM_MENUDROPALIGNMENT = 40,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1237 SM_PENWINDOWS = 41,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1238 SM_DBCSENABLED = 42,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1239 SM_CMOUSEBUTTONS = 43,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1240 SM_CXFIXEDFRAME = SM_CXDLGFRAME,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1241 SM_CYFIXEDFRAME = SM_CYDLGFRAME,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1242 SM_CXSIZEFRAME = SM_CXFRAME,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1243 SM_CYSIZEFRAME = SM_CYFRAME,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1244 SM_SECURE = 44,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1245 SM_CXEDGE = 45,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1246 SM_CYEDGE = 46,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1247 SM_CXMINSPACING = 47,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1248 SM_CYMINSPACING = 48,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1249 SM_CXSMICON = 49,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1250 SM_CYSMICON = 50,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1251 SM_CYSMCAPTION = 51,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1252 SM_CXSMSIZE = 52,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1253 SM_CYSMSIZE = 53,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1254 SM_CXMENUSIZE = 54,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1255 SM_CYMENUSIZE = 55,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1256 SM_ARRANGE = 56,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1257 SM_CXMINIMIZED = 57,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1258 SM_CYMINIMIZED = 58,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1259 SM_CXMAXTRACK = 59,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1260 SM_CYMAXTRACK = 60,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1261 SM_CXMAXIMIZED = 61,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1262 SM_CYMAXIMIZED = 62,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1263 SM_NETWORK = 63,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1264 SM_CLEANBOOT = 67,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1265 SM_CXDRAG = 68,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1266 SM_CYDRAG = 69,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1267 SM_SHOWSOUNDS = 70,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1268 SM_CXMENUCHECK = 71,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1269 SM_CYMENUCHECK = 72,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1270 SM_SLOWMACHINE = 73,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1271 SM_MIDEASTENABLED = 74,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1272 SM_MOUSEWHEELPRESENT = 75,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1273 SM_XVIRTUALSCREEN = 76,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1274 SM_YVIRTUALSCREEN = 77,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1275 SM_CXVIRTUALSCREEN = 78,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1276 SM_CYVIRTUALSCREEN = 79,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1277 SM_CMONITORS = 80,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1278 SM_SAMEDISPLAYFORMAT = 81,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1279 SM_IMMENABLED = 82,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1280 SM_CXFOCUSBORDER = 83,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1281 SM_CYFOCUSBORDER = 84,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1282 SM_TABLETPC = 86,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1283 SM_MEDIACENTER = 87,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1284 SM_STARTER = 88,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1285 SM_SERVERR2 = 89
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1286 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1287
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1288 int GetSystemMetrics(int nIndex);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1289
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1290 VOID GetSystemInfo(SYSTEM_INFO* lpSystemInfo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1291
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1292 BOOL GetVersionExW(OSVERSIONINFO* lpVersionInformation);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1293
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1294 HMODULE GetModuleHandleW(LPCWSTR lpModuleName);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1295
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1296 HMODULE LoadLibraryW(LPCWSTR lpLibFileName);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1297
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1298 FARPROC GetProcAddress(HMODULE hModule, LPCSTR lpProcName);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1299
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1300 //Requires Internet Explorer 4.0 (but will work on Windows 95 with IE 4)
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1301 BOOL SHGetSpecialFolderPathW(HWND hWndOwner, LPWSTR lpszPath, int nFolder, BOOL fCreate);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1302
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1303 BOOL QueryPerformanceFrequency(ulong* lpFrequency);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1304
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1305 BOOL QueryPerformanceCounter(ulong* lpPerformanceCount);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1306
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1307 VOID GetSystemTimeAsFileTime(FILETIME* lpSystemTimeAsFileTime);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1308
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1309 BOOL SystemTimeToFileTime(SYSTEMTIME* lpSystemTime, FILETIME* lpFileTime);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1310
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1311 HANDLE GetCurrentThread();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1312
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1313 VOID Sleep(DWORD dwMilliseconds);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1314
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1315 BOOL GetProcessAffinityMask(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1316 HANDLE hProcess,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1317 ULONG_PTR* lpProcessAffinityMask,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1318 ULONG_PTR* lpSystemAffinityMask);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1319
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1320 ULONG_PTR SetThreadAffinityMask(HANDLE hThread, ULONG_PTR dwThreadAffinityMask);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1321 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1322
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1323 //{{{ file functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1324
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1325 BOOL GetFileSizeEx(HANDLE hFile, long* lpFileSize);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1326
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1327 BOOL ReadFile(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1328 HANDLE hFile,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1329 VOID* lpBuffer,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1330 DWORD nNumberOfBytesToRead,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1331 DWORD* lpNumberOfBytesRead,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1332 OVERLAPPED* lpOverlapped);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1333
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1334 BOOL WriteFile(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1335 HANDLE hFile,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1336 VOID* lpBuffer,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1337 DWORD nNumberOfBytesToWrite,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1338 DWORD* lpNumberOfBytesWritten,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1339 OVERLAPPED* lpOverlapped);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1340 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1341
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1342 //{{{ console functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1343 BOOL AllocConsole();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1344
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1345 BOOL FreeConsole();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1346
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1347 BOOL GetConsoleMode(HANDLE hConsoleHandle, DWORD* lpMode);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1348
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1349 BOOL SetConsoleMode(HANDLE hConsoleHandle, DWORD dwMode);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1350
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1351 DWORD GetConsoleTitleW(LPWSTR lpConsoleTitle, DWORD nSize);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1352
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1353 BOOL SetConsoleTitleW(LPCWSTR lpConsoleTitle);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1354
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1355 BOOL ReadConsoleW(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1356 HANDLE hConsoleInput,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1357 LPWSTR lpBuffer,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1358 DWORD nNumberOfCharsToRead,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1359 DWORD* lpNumberOfCharsRead,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1360 VOID* lpReserved);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1361
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1362 BOOL WriteConsoleW(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1363 HANDLE hConsoleOutput,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1364 LPCWSTR lpBuffer,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1365 DWORD nNumberOfCharsToWrite,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1366 DWORD* lpNumberOfCharsWritten,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1367 VOID* lpReserved);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1368
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1369 enum {
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1370 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
1371 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
1372 FOREGROUND_RED = 0x0004,
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1373 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
1374 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
1375 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
1376 BACKGROUND_RED = 0x0040,
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1377 BACKGROUND_INTENSITY = 0x0080
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1378 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1379
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1380 BOOL SetConsoleTextAttribute(HANDLE hConsoleOutput, WORD wAttributes);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1381
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1382 BOOL GetConsoleScreenBufferInfo(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1383 HANDLE hConsoleOutput,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1384 CONSOLE_SCREEN_BUFFER_INFO* lpConsoleScreenBufferInfo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1385
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1386 BOOL SetConsoleActiveScreenBuffer(HANDLE hConsoleOutput);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1387
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1388 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1389 STD_INPUT_HANDLE = -10,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1390 STD_OUTPUT_HANDLE = -11,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1391 STD_ERROR_HANDLE = -12
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1392 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1393
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1394 HANDLE GetStdHandle(DWORD nStdHandle);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1395
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1396 UINT GetConsoleCP();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1397
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1398 UINT GetConsoleOutputCP();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1399
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1400 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1401
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1402 //{{{ COM functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1403 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1404 COINIT_APARTMENTTHREADED = 0x2,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1405 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1406
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1407 HRESULT CoInitializeEx(VOID* pvReserved, DWORD dwCoInit);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1408 void CoUninitialize();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1409
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1410 VOID* CoTaskMemAlloc(SIZE_T cb);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1411 VOID* CoTaskMemRealloc(VOID* pv, SIZE_T cb);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1412 void CoTaskMemFree(VOID* pv);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1413
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1414 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1415 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
1416 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
1417 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
1418 BIF_USENEWUI = (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1419 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1420
21
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1421 enum {
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1422 BFFM_INITIALIZED = 1,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1423 BFFM_SELCHANGED = 2,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1424 BFFM_VALIDATEFAILEDA = 3,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1425 BFFM_VALIDATEFAILEDW = 4,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1426 BFFM_IUNKNOWN = 5,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1427
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1428 BFFM_SETSTATUSTEXTA = WM_USER + 100,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1429 BFFM_ENABLEOK = WM_USER + 101,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1430 BFFM_SETSELECTIONA = WM_USER + 102,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1431 BFFM_SETSELECTIONW = WM_USER + 103,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1432 BFFM_SETSTATUSTEXTW = WM_USER + 104,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1433 BFFM_SETOKTEXT = WM_USER + 105,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1434 BFFM_SETEXPANDED = WM_USER + 106,
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1435 }
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1436
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1437 ITEMIDLIST* SHBrowseForFolderW(BROWSEINFO* lpbi);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1438
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1439 BOOL SHGetPathFromIDListW(ITEMIDLIST* pidl, LPWSTR pszPath);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1440
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1441 HRESULT SHGetFolderPathW(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1442
20
63cbfb167240 Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents: 14
diff changeset
1443 HRESULT SHGetDesktopFolder(IShellFolder* ppshf);
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1444
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1445 struct GUID {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1446 align(1):
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1447 uint Data1;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1448 ushort Data2;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1449 ushort Data3;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1450 ubyte[8] Data4;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1451 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1452 alias GUID IID;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1453 alias GUID CLSID;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1454
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1455 interface IUnknown {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1456 HRESULT QueryInterface(IID* riid, void** ppvObject);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1457 ULONG AddRef();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1458 ULONG Release();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1459 }
20
63cbfb167240 Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents: 14
diff changeset
1460 alias void IBindCtx;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1461 interface IShellFolder : IUnknown {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1462 HRESULT ParseDisplayName(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1463 HWND hwnd,
20
63cbfb167240 Got the COM code working in DirectoryDialog, but
Jordan Miner <jminer7@gmail.com>
parents: 14
diff changeset
1464 IBindCtx* pbc,
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1465 wchar* pszDisplayName,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1466 ULONG* pchEaten,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1467 ITEMIDLIST** ppidl,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1468 ULONG* pdwAttributes);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1469
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1470 //other methods omitted
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1471 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1472 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1473
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1474 //{{{ Multimedia functions
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1475 alias uint MMRESULT;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1476 alias HANDLE HWAVEOUT;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1477 struct TIMECAPS {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1478 UINT wPeriodMin;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1479 UINT wPeriodMax;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1480 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1481 DWORD timeGetTime();
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1482 MMRESULT timeGetDevCaps(TIMECAPS* ptc, UINT cbtc);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1483 MMRESULT timeBeginPeriod(UINT uPeriod);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1484 MMRESULT timeEndPeriod(UINT uPeriod);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1485
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1486 struct WAVEHDR {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1487 LPSTR lpData;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1488 DWORD dwBufferLength;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1489 DWORD dwBytesRecorded;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1490 ULONG_PTR dwUser;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1491 DWORD dwFlags;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1492 DWORD dwLoops;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1493 WAVEHDR* lpNext;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1494 ULONG_PTR reserved;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1495 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1496 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1497 WHDR_DONE = 0x00000001,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1498 WHDR_PREPARED = 0x00000002,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1499 WHDR_BEGINLOOP = 0x00000004,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1500 WHDR_ENDLOOP = 0x00000008,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1501 WHDR_INQUEUE = 0x00000010
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1502 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1503 alias uint MMVERSION;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1504 struct WAVEOUTCAPSW {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1505 WORD wMid;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1506 WORD wPid;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1507 MMVERSION vDriverVersion;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1508 WCHAR[32] szPname;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1509 DWORD dwFormats;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1510 WORD wChannels;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1511 WORD wReserved1;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1512 DWORD dwSupport;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1513 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1514 struct MMTIME {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1515 UINT wType;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1516 union _u {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1517 DWORD ms;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1518 DWORD sample;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1519 DWORD cb;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1520 DWORD ticks;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1521
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1522 struct _smpte {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1523 BYTE hour;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1524 BYTE min;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1525 BYTE sec;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1526 BYTE frame;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1527 BYTE fps;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1528 BYTE dummy;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1529 BYTE pad[2];
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1530 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1531 _smpte smpte;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1532
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1533 struct _midi {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1534 DWORD songptrpos;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1535 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1536 _midi midi;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1537 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1538 _u u;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1539 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1540 enum {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1541 TIME_MS = 0x0001,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1542 TIME_SAMPLES = 0x0002,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1543 TIME_BYTES = 0x0004,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1544 TIME_SMPTE = 0x0008,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1545 TIME_MIDI = 0x0010,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1546 TIME_TICKS = 0x0020
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1547 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1548 struct WAVEFORMATEX {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1549 WORD wFormatTag;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1550 WORD nChannels;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1551 DWORD nSamplesPerSec;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1552 DWORD nAvgBytesPerSec;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1553 WORD nBlockAlign;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1554 WORD wBitsPerSample;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1555 WORD cbSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1556
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1557 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1558
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1559 MMRESULT waveOutGetVolume(HWAVEOUT hwo, DWORD* pdwVolume);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1560 MMRESULT waveOutSetVolume(HWAVEOUT hwo, DWORD dwVolume);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1561 MMRESULT waveOutOpen(
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1562 HWAVEOUT* phwo,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1563 UINT uDeviceID,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1564 WAVEFORMATEX* pwfx,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1565 ULONG_PTR dwCallback,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1566 ULONG_PTR dwInstance,
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1567 DWORD fdwOpen);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1568 MMRESULT waveOutClose(HWAVEOUT hwo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1569 MMRESULT waveOutPrepareHeader(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1570 MMRESULT waveOutUnprepareHeader(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1571 MMRESULT waveOutWrite(HWAVEOUT hwo, WAVEHDR* pwh, UINT cbwh);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1572 MMRESULT waveOutPause(HWAVEOUT hwo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1573 MMRESULT waveOutRestart(HWAVEOUT hwo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1574 MMRESULT waveOutReset(HWAVEOUT hwo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1575 MMRESULT waveOutBreakLoop(HWAVEOUT hwo);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1576 MMRESULT waveOutGetPosition(HWAVEOUT hwo, MMTIME* pmmt, UINT cbmmt);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1577 MMRESULT waveOutGetPitch(HWAVEOUT hwo, DWORD* pdwPitch);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1578 MMRESULT waveOutSetPitch(HWAVEOUT hwo, DWORD dwPitch);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1579 MMRESULT waveOutGetPlaybackRate(HWAVEOUT hwo, DWORD* pdwRate);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1580 MMRESULT waveOutSetPlaybackRate(HWAVEOUT hwo, DWORD dwRate);
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1581
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1582 //}}}
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1583
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1584 //{{{ alias ...W -> ...
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1585 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
1586 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
1587 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
1588 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
1589 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
1590 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
1591 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
1592 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
1593 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
1594 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
1595 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
1596 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
1597 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
1598 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
1599 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
1600 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
1601 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
1602 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
1603 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
1604 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
1605 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
1606 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
1607 alias EnumFontFamiliesExW EnumFontFamiliesEx;
93
8b2d3b3cbca6 Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents: 89
diff changeset
1608 alias CreateFontW CreateFont;
8b2d3b3cbca6 Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents: 89
diff changeset
1609 alias CreateFontIndirectW CreateFontIndirect;
8b2d3b3cbca6 Add bindings to 5 more Windows functions.
Jordan Miner <jminer7@gmail.com>
parents: 89
diff changeset
1610 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
1611 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
1612 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
1613 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
1614 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
1615 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
1616 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
1617 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
1618 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
1619 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
1620 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
1621 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
1622 alias SHGetFolderPathW SHGetFolderPath;
21
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1623 alias BFFM_VALIDATEFAILEDW BFFM_VALIDATEFAILED;
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1624 alias BFFM_SETSELECTIONW BFFM_SETSELECTION;
d0ce1db78819 Directories can now be preselected on Windows
Jordan Miner <jminer7@gmail.com>
parents: 20
diff changeset
1625 alias BFFM_SETSTATUSTEXTW BFFM_SETSTATUSTEXT;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1626
14
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1627 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
1628 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
1629 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
1630 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
1631 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
1632 //}}}
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1633
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1634 struct POINT {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1635 LONG x;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1636 LONG y;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1637 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1638 struct SIZE {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1639 LONG cx;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1640 LONG cy;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1641 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1642 struct RECT {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1643 LONG left;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1644 LONG top;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1645 LONG right;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1646 LONG bottom;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1647 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1648 struct BLENDFUNCTION {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1649 BYTE BlendOp;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1650 BYTE BlendFlags;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1651 BYTE SourceConstantAlpha;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1652 BYTE AlphaFormat;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1653 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1654 const int LF_FACESIZE = 32;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1655 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
1656 LONG lfHeight;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1657 LONG lfWidth;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1658 LONG lfEscapement;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1659 LONG lfOrientation;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1660 LONG lfWeight;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1661 BYTE lfItalic;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1662 BYTE lfUnderline;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1663 BYTE lfStrikeOut;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1664 BYTE lfCharSet;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1665 BYTE lfOutPrecision;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1666 BYTE lfClipPrecision;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1667 BYTE lfQuality;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1668 BYTE lfPitchAndFamily;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1669 WCHAR[LF_FACESIZE] lfFaceName;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1670 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1671 struct NONCLIENTMETRICSW {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1672 UINT cbSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1673 int iBorderWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1674 int iScrollWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1675 int iScrollHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1676 int iCaptionWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1677 int iCaptionHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1678 LOGFONTW lfCaptionFont;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1679 int iSmCaptionWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1680 int iSmCaptionHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1681 LOGFONTW lfSmCaptionFont;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1682 int iMenuWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1683 int iMenuHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1684 LOGFONTW lfMenuFont;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1685 LOGFONTW lfStatusFont;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1686 LOGFONTW lfMessageFont;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1687 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1688 const int LF_FULLFACESIZE = 64;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1689 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
1690 LOGFONT elfLogFont;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1691 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
1692 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
1693 WCHAR[LF_FACESIZE] elfScript;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1694 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1695 struct TEXTMETRICW {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1696 LONG tmHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1697 LONG tmAscent;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1698 LONG tmDescent;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1699 LONG tmInternalLeading;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1700 LONG tmExternalLeading;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1701 LONG tmAveCharWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1702 LONG tmMaxCharWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1703 LONG tmWeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1704 LONG tmOverhang;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1705 LONG tmDigitizedAspectX;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1706 LONG tmDigitizedAspectY;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1707 WCHAR tmFirstChar;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1708 WCHAR tmLastChar;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1709 WCHAR tmDefaultChar;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1710 WCHAR tmBreakChar;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1711 BYTE tmItalic;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1712 BYTE tmUnderlined;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1713 BYTE tmStruckOut;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1714 BYTE tmPitchAndFamily;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1715 BYTE tmCharSet;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1716 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1717 struct RGBQUAD {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1718 BYTE rgbBlue;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1719 BYTE rgbGreen;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1720 BYTE rgbRed;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1721 BYTE rgbReserved;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1722 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1723 struct BITMAPINFO {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1724 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
1725 RGBQUAD[1] bmiColors;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1726 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1727 struct BITMAPINFOHEADER {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1728 DWORD biSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1729 LONG biWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1730 LONG biHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1731 WORD biPlanes;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1732 WORD biBitCount;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1733 DWORD biCompression;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1734 DWORD biSizeImage;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1735 LONG biXPelsPerMeter;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1736 LONG biYPelsPerMeter;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1737 DWORD biClrUsed;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1738 DWORD biClrImportant;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1739 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1740 struct DIBSECTION {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1741 BITMAP dsBm;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1742 BITMAPINFOHEADER dsBmih;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1743 DWORD[3] dsBitfields;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1744 HANDLE dshSection;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1745 DWORD dsOffset;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1746 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1747 struct BITMAP {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1748 LONG bmType;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1749 LONG bmWidth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1750 LONG bmHeight;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1751 LONG bmWidthBytes;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1752 WORD bmPlanes;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1753 WORD bmBitsPixel;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1754 VOID* bmBits;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1755 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1756 struct MSG {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1757 HWND hWnd;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1758 UINT message;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1759 WPARAM wParam;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1760 LPARAM lParam;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1761 DWORD time;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1762 POINT pt;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1763 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1764 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
1765 UINT cbSize;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1766 UINT style;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1767 WNDPROC lpfnWndProc;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1768 int cbClsExtra;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1769 int cbWndExtra;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1770 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
1771 HICON hIcon;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1772 HCURSOR hCursor;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1773 HBRUSH hbrBackground;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1774 LPCTSTR lpszMenuName;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1775 LPCTSTR lpszClassName;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1776 HICON hIconSm;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1777 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1778 struct WINDOWINFO {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1779 DWORD cbSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1780 RECT rcWindow;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1781 RECT rcClient;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1782 DWORD dwStyle;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1783 DWORD dwExStyle;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1784 DWORD dwWindowStatus;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1785 UINT cxWindowBorders;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1786 UINT cyWindowBorders;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1787 ATOM atomWindowType;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1788 WORD wCreatorVersion;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1789 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1790 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
1791 HDC hdc;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1792 BOOL fErase;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1793 RECT rcPaint;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1794 BOOL fRestore;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1795 BOOL fIncUpdate;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1796 BYTE[32] rgbReserved;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1797 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1798 struct TRACKMOUSEEVENT {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1799 DWORD cbSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1800 DWORD dwFlags;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1801 HWND hWndTrack;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1802 DWORD dwHoverTime;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1803 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1804 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
1805 DWORD lStructSize;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1806 HWND hWndOwner;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1807 HINSTANCE hInstance;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1808 LPCTSTR lpstrFilter;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1809 LPTSTR lpstrCustomFilter;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1810 DWORD nMaxCustFilter;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1811 DWORD nFilterIndex;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1812 LPTSTR lpstrFile;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1813 DWORD nMaxFile;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1814 LPTSTR lpstrFileTitle;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1815 DWORD nMaxFileTitle;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1816 LPCTSTR lpstrInitialDir;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1817 LPCTSTR lpstrTitle;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1818 DWORD Flags;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1819 WORD nFileOffset;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1820 WORD nFileExtension;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1821 LPCTSTR lpstrDefExt;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1822 LPARAM lCustData;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1823 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
1824 LPCTSTR lpTemplateName;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1825 // 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
1826 //void* pvReserved;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1827 //DWORD dwReserved;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1828 //DWORD FlagsEx;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1829 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1830 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
1831 USHORT cb;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1832 BYTE[1] abID;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1833 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1834 struct ITEMIDLIST {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1835 SHITEMID mkid;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1836 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1837 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
1838 HWND hwndOwner;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1839 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
1840 LPTSTR pszDisplayName;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1841 LPCTSTR lpszTitle;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1842 UINT ulFlags;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1843 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
1844 LPARAM lParam;
e6e201c3a439 Remove ANSI functions from Windows binding and convert inner tabs to spaces
Jordan Miner <jminer7@gmail.com>
parents: 13
diff changeset
1845 int iImage;
0
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1846 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1847 struct OVERLAPPED {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1848 ULONG_PTR Internal;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1849 ULONG_PTR InternalHigh;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1850 union {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1851 struct {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1852 DWORD Offset;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1853 DWORD OffsetHigh;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1854 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1855
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1856 VOID* Pointer;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1857 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1858
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1859 HANDLE hEvent;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1860 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1861 struct OSVERSIONINFOW {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1862 DWORD dwOSVersionInfoSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1863 DWORD dwMajorVersion;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1864 DWORD dwMinorVersion;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1865 DWORD dwBuildNumber;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1866 DWORD dwPlatformId;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1867 WCHAR[128] szCSDVersion;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1868 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1869 struct SYSTEM_INFO {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1870 WORD wProcessorArchitecture;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1871 WORD wReserved;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1872 DWORD dwPageSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1873 VOID* lpMinimumApplicationAddress;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1874 VOID* lpMaximumApplicationAddress;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1875 ULONG_PTR dwActiveProcessorMask;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1876 DWORD dwNumberOfProcessors;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1877 DWORD dwProcessorType;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1878 DWORD dwAllocationGranularity;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1879 WORD wProcessorLevel;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1880 WORD wProcessorRevision;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1881 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1882 struct CONSOLE_SCREEN_BUFFER_INFO {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1883 COORD dwSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1884 COORD dwCursorPosition;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1885 WORD wAttributes;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1886 SMALL_RECT srWindow;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1887 COORD dwMaximumWindowSize;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1888 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1889 struct FILETIME {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1890 DWORD dwLowDateTime;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1891 DWORD dwHighDateTime;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1892 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1893 struct SYSTEMTIME {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1894 WORD wYear;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1895 WORD wMonth;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1896 WORD wDayOfWeek;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1897 WORD wDay;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1898 WORD wHour;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1899 WORD wMinute;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1900 WORD wSecond;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1901 WORD wMilliseconds;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1902 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1903 struct COORD {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1904 SHORT X;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1905 SHORT Y;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1906 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1907 struct SMALL_RECT {
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1908 SHORT Left;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1909 SHORT Top;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1910 SHORT Right;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1911 SHORT Bottom;
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1912 }
aa4efef0f0b1 Initial commit of code.
Jordan Miner <jminer7@gmail.com>
parents:
diff changeset
1913