-misc
[reactos.git] / reactos / lib / user32 / windows / input.c
1 /*
2 * ReactOS kernel
3 * Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 /* $Id: input.c,v 1.11 2003/08/04 16:56:40 gdalsnes Exp $
20 *
21 * PROJECT: ReactOS user32.dll
22 * FILE: lib/user32/windows/input.c
23 * PURPOSE: Input
24 * PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
25 * UPDATE HISTORY:
26 * 09-05-2001 CSH Created
27 */
28
29 /* INCLUDES ******************************************************************/
30
31 #include <windows.h>
32 #include <user32.h>
33 #include <debug.h>
34
35 /* FUNCTIONS *****************************************************************/
36
37
38 /*
39 * @unimplemented
40 */
41 WINBOOL
42 STDCALL
43 DragDetect(
44 HWND hWnd,
45 POINT pt)
46 {
47 return NtUserDragDetect(hWnd, pt.x, pt.y);
48 }
49
50
51 /*
52 * @unimplemented
53 */
54 HKL STDCALL
55 ActivateKeyboardLayout(HKL hkl,
56 UINT Flags)
57 {
58 UNIMPLEMENTED;
59 return (HKL)0;
60 }
61
62
63 /*
64 * @unimplemented
65 */
66 WINBOOL STDCALL
67 BlockInput(WINBOOL fBlockIt)
68 {
69 UNIMPLEMENTED;
70 return FALSE;
71 }
72
73
74 /*
75 * @unimplemented
76 */
77 WINBOOL STDCALL
78 EnableWindow(HWND hWnd,
79 WINBOOL bEnable)
80 {
81 UNIMPLEMENTED;
82 return FALSE;
83 }
84
85
86 /*
87 * @unimplemented
88 */
89 SHORT STDCALL
90 GetAsyncKeyState(int vKey)
91 {
92 UNIMPLEMENTED;
93 return 0;
94 }
95
96
97 /*
98 * @unimplemented
99 */
100 HKL STDCALL
101 GetKeyboardLayout(DWORD idThread)
102 {
103 UNIMPLEMENTED;
104 return (HKL)0;
105 }
106
107
108 /*
109 * @unimplemented
110 */
111 UINT STDCALL
112 GetKBCodePage(VOID)
113 {
114 UNIMPLEMENTED;
115 return 0;
116 }
117
118
119 /*
120 * @unimplemented
121 */
122 int STDCALL
123 GetKeyNameTextA(LONG lParam,
124 LPSTR lpString,
125 int nSize)
126 {
127 UNIMPLEMENTED;
128 return 0;
129 }
130
131
132 /*
133 * @unimplemented
134 */
135 int STDCALL
136 GetKeyNameTextW(LONG lParam,
137 LPWSTR lpString,
138 int nSize)
139 {
140 UNIMPLEMENTED;
141 return 0;
142 }
143
144
145 /*
146 * @unimplemented
147 */
148 SHORT STDCALL
149 GetKeyState(int nVirtKey)
150 {
151 return (SHORT) NtUserGetKeyState((DWORD) nVirtKey);
152 }
153
154
155 /*
156 * @unimplemented
157 */
158 UINT STDCALL
159 GetKeyboardLayoutList(int nBuff,
160 HKL FAR *lpList)
161 {
162 UNIMPLEMENTED;
163 return 0;
164 }
165
166
167 /*
168 * @unimplemented
169 */
170 WINBOOL STDCALL
171 GetKeyboardLayoutNameA(LPSTR pwszKLID)
172 {
173 UNIMPLEMENTED;
174 return FALSE;
175 }
176
177
178 /*
179 * @unimplemented
180 */
181 WINBOOL STDCALL
182 GetKeyboardLayoutNameW(LPWSTR pwszKLID)
183 {
184 UNIMPLEMENTED;
185 return FALSE;
186 }
187
188
189 /*
190 * @unimplemented
191 */
192 WINBOOL STDCALL
193 GetKeyboardState(PBYTE lpKeyState)
194 {
195
196 return (WINBOOL) NtUserGetKeyboardState((LPBYTE) lpKeyState);
197 }
198
199
200 /*
201 * @unimplemented
202 */
203 int STDCALL
204 GetKeyboardType(int nTypeFlag)
205 {
206 UNIMPLEMENTED;
207 return 0;
208 }
209
210
211 /*
212 * @unimplemented
213 */
214 WINBOOL STDCALL
215 GetLastInputInfo(PLASTINPUTINFO plii)
216 {
217 UNIMPLEMENTED;
218 return FALSE;
219 }
220
221
222 /*
223 * @unimplemented
224 */
225 HKL STDCALL
226 LoadKeyboardLayoutA(LPCSTR pwszKLID,
227 UINT Flags)
228 {
229 UNIMPLEMENTED;
230 return (HKL)0;
231 }
232
233
234 /*
235 * @unimplemented
236 */
237 HKL STDCALL
238 LoadKeyboardLayoutW(LPCWSTR pwszKLID,
239 UINT Flags)
240 {
241 UNIMPLEMENTED;
242 return (HKL)0;
243 }
244
245
246 /*
247 * @unimplemented
248 */
249 UINT STDCALL
250 MapVirtualKeyA(UINT uCode,
251 UINT uMapType)
252 {
253 UNIMPLEMENTED;
254 return 0;
255 }
256
257
258 /*
259 * @unimplemented
260 */
261 UINT STDCALL
262 MapVirtualKeyExA(UINT uCode,
263 UINT uMapType,
264 HKL dwhkl)
265 {
266 UNIMPLEMENTED;
267 return 0;
268 }
269
270
271 /*
272 * @unimplemented
273 */
274 UINT STDCALL
275 MapVirtualKeyExW(UINT uCode,
276 UINT uMapType,
277 HKL dwhkl)
278 {
279 UNIMPLEMENTED;
280 return 0;
281 }
282
283
284 /*
285 * @unimplemented
286 */
287 UINT STDCALL
288 MapVirtualKeyW(UINT uCode,
289 UINT uMapType)
290 {
291 UNIMPLEMENTED;
292 return 0;
293 }
294
295
296 /*
297 * @unimplemented
298 */
299 DWORD STDCALL
300 OemKeyScan(WORD wOemChar)
301 {
302 UNIMPLEMENTED;
303 return 0;
304 }
305
306
307 /*
308 * @unimplemented
309 */
310 HWND STDCALL
311 SetFocus(HWND hWnd)
312 {
313 return NtUserSetFocus(hWnd);
314 }
315
316
317 /*
318 * @unimplemented
319 */
320 WINBOOL STDCALL
321 SetKeyboardState(LPBYTE lpKeyState)
322 {
323 return (WINBOOL) NtUserSetKeyboardState((LPBYTE)lpKeyState);
324 }
325
326
327 /*
328 * @unimplemented
329 */
330 int STDCALL
331 ToAscii(UINT uVirtKey,
332 UINT uScanCode,
333 CONST PBYTE lpKeyState,
334 LPWORD lpChar,
335 UINT uFlags)
336 {
337 UNIMPLEMENTED;
338 return 0;
339 }
340
341
342 /*
343 * @unimplemented
344 */
345 int STDCALL
346 ToAsciiEx(UINT uVirtKey,
347 UINT uScanCode,
348 CONST PBYTE lpKeyState,
349 LPWORD lpChar,
350 UINT uFlags,
351 HKL dwhkl)
352 {
353 UNIMPLEMENTED;
354 return 0;
355 }
356
357
358 /*
359 * @unimplemented
360 */
361 int STDCALL
362 ToUnicode(UINT wVirtKey,
363 UINT wScanCode,
364 CONST PBYTE lpKeyState,
365 LPWSTR pwszBuff,
366 int cchBuff,
367 UINT wFlags)
368 {
369 UNIMPLEMENTED;
370 return 0;
371 }
372
373
374 /*
375 * @unimplemented
376 */
377 int STDCALL
378 ToUnicodeEx(UINT wVirtKey,
379 UINT wScanCode,
380 CONST PBYTE lpKeyState,
381 LPWSTR pwszBuff,
382 int cchBuff,
383 UINT wFlags,
384 HKL dwhkl)
385 {
386 UNIMPLEMENTED;
387 return 0;
388 }
389
390
391 /*
392 * @unimplemented
393 */
394 WINBOOL STDCALL
395 UnloadKeyboardLayout(HKL hkl)
396 {
397 UNIMPLEMENTED;
398 return FALSE;
399 }
400
401
402 /*
403 * @unimplemented
404 */
405 SHORT STDCALL
406 VkKeyScanA(CHAR ch)
407 {
408 UNIMPLEMENTED;
409 return 0;
410 }
411
412
413 /*
414 * @unimplemented
415 */
416 SHORT STDCALL
417 VkKeyScanExA(CHAR ch,
418 HKL dwhkl)
419 {
420 UNIMPLEMENTED;
421 return 0;
422 }
423
424
425 /*
426 * @unimplemented
427 */
428 SHORT STDCALL
429 VkKeyScanExW(WCHAR ch,
430 HKL dwhkl)
431 {
432 UNIMPLEMENTED;
433 return 0;
434 }
435
436
437 /*
438 * @unimplemented
439 */
440 SHORT STDCALL
441 VkKeyScanW(WCHAR ch)
442 {
443 UNIMPLEMENTED;
444 return 0;
445 }
446
447
448 /*
449 * @unimplemented
450 */
451 UINT
452 STDCALL
453 SendInput(
454 UINT nInputs,
455 LPINPUT pInputs,
456 int cbSize)
457 {
458 UNIMPLEMENTED;
459 return 0;
460 }