Implement new keyboard driver and layout structures to help Saveliy Tretiakovs LoadKeyboardLayout implementation.

svn path=/trunk/; revision=25405
This commit is contained in:
James Tabor 2007-01-09 22:55:40 +00:00
parent cf06d4975f
commit 208da846ac
2 changed files with 21 additions and 0 deletions

View file

@ -3,6 +3,24 @@
#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);
NTSTATUS FASTCALL

View file

@ -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 */