1 // Permission is hereby granted, free of charge, to any person obtaining
2 // a copy of this software and associated documentation files (the
3 // "Software"), to deal in the Software without restriction, including
4 // without limitation the rights to use, copy, modify, merge, publish,
5 // distribute, sublicense, and/or sell copies of the Software, and to
6 // permit persons to whom the Software is furnished to do so, subject to
7 // the following conditions:
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
15 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 // Copyright (c) 2004 Novell, Inc.
23 // Peter Bartok pbartok@novell.com
29 using System.ComponentModel;
30 using System.Runtime.InteropServices;
32 namespace System.Windows.Forms {
35 [TypeConverter(typeof(KeysConverter))]
42 XButton1 = 0x00000005,
43 XButton2 = 0x00000006,
46 LineFeed = 0x0000000A,
50 ShiftKey = 0x00000010,
51 ControlKey = 0x00000011,
54 CapsLock = 0x00000014,
56 KanaMode = 0x00000015,
57 HanguelMode = 0x00000015,
58 HangulMode = 0x00000015,
59 JunjaMode = 0x00000017,
60 FinalMode = 0x00000018,
61 KanjiMode = 0x00000019,
62 HanjaMode = 0x00000019,
64 IMEConvert = 0x0000001C,
65 IMENonconvert = 0x0000001D,
66 IMEAceept = 0x0000001E,
67 IMEModeChange = 0x0000001F,
71 PageDown = 0x00000022,
82 PrintScreen = 0x0000002C,
83 Snapshot = 0x0000002C,
126 NumPad0 = 0x00000060,
127 NumPad1 = 0x00000061,
128 NumPad2 = 0x00000062,
129 NumPad3 = 0x00000063,
130 NumPad4 = 0x00000064,
131 NumPad5 = 0x00000065,
132 NumPad6 = 0x00000066,
133 NumPad7 = 0x00000067,
134 NumPad8 = 0x00000068,
135 NumPad9 = 0x00000069,
136 Multiply = 0x0000006A,
138 Separator = 0x0000006C,
139 Subtract = 0x0000006D,
140 Decimal = 0x0000006E,
166 NumLock = 0x00000090,
168 LShiftKey = 0x000000A0,
169 RShiftKey = 0x000000A1,
170 LControlKey = 0x000000A2,
171 RControlKey = 0x000000A3,
174 BrowserBack = 0x000000A6,
175 BrowserForward = 0x000000A7,
176 BrowserRefresh = 0x000000A8,
177 BrowserStop = 0x000000A9,
178 BrowserSearch = 0x000000AA,
179 BrowserFavorites= 0x000000AB,
180 BrowserHome = 0x000000AC,
181 VolumeMute = 0x000000AD,
182 VolumeDown = 0x000000AE,
183 VolumeUp = 0x000000AF,
184 MediaNextTrack = 0x000000B0,
185 MediaPreviousTrack= 0x000000B1,
186 MediaStop = 0x000000B2,
187 MediaPlayPause = 0x000000B3,
188 LaunchMail = 0x000000B4,
189 SelectMedia = 0x000000B5,
190 LaunchApplication1= 0x000000B6,
191 LaunchApplication2= 0x000000B7,
192 OemSemicolon = 0x000000BA,
193 Oemplus = 0x000000BB,
194 Oemcomma = 0x000000BC,
195 OemMinus = 0x000000BD,
196 OemPeriod = 0x000000BE,
197 OemQuestion = 0x000000BF,
198 Oemtilde = 0x000000C0,
199 OemOpenBrackets = 0x000000DB,
200 OemPipe = 0x000000DC,
201 OemCloseBrackets= 0x000000DD,
202 OemQuotes = 0x000000DE,
204 OemBackslash = 0x000000E2,
205 ProcessKey = 0x000000E5,
209 EraseEof = 0x000000F9,
214 OemClear = 0x000000FE,
215 KeyCode = 0x0000FFFF,
217 Control = 0x00020000,
219 Modifiers = unchecked((int)0xFFFF0000)