Author: jimtabor
Date: Wed Jan 10 01:55:40 2007
New Revision: 25405
URL:
http://svn.reactos.org/svn/reactos?rev=25405&view=rev
Log:
Implement new keyboard driver and layout structures to help Saveliy Tretiakovs
LoadKeyboardLayout implementation.
Modified:
trunk/reactos/subsystems/win32/win32k/include/input.h
trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c
Modified: trunk/reactos/subsystems/win32/win32k/include/input.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/input.h (original)
+++ trunk/reactos/subsystems/win32/win32k/include/input.h Wed Jan 10 01:55:40 2007
@@ -2,6 +2,24 @@
#define _WIN32K_INPUT_H
#include <internal/kbd.h>
+
+typedef struct _KBDRVFILE
+{
+ PSINGLE_LIST_ENTRY pkbdfChain;
+ WCHAR wcKBDF[9]; // used w GetKeyboardLayoutName same as wszKLID.
+ struct _KBDTABLES* KBTables; // KBDTABLES in ntoskrnl/include/internal/kbd.h
+} KBDRVFILE, *PKBDRVFILE;
+
+typedef struct _KBL
+{
+ PLIST_ENTRY pklChain;
+ DWORD dwKBLFlags;
+ HKL hkl;
+ PKBDRVFILE pkbdf;
+} KBL, *PKBL;
+
+#define KBL_UNLOADED 0x2000000
+#define KBL_RESET 0x4000000
NTSTATUS FASTCALL
InitInputImpl(VOID);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/keyboard.c Wed Jan 10 01:55:40 2007
@@ -53,6 +53,9 @@
BYTE gQueueKeyStateTable[256];
+PKBDRVFILE KBLList = NULL; // Keyboard layout list.
+
+
/* FUNCTIONS *****************************************************************/
/* Initialization -- Right now, just zero the key state and init the lock */