Problems with Real-Mode Keyboard Driver and International Code PageID: Q214408
|
If an international code page is installed in conjunction with a real-mode keyboard driver (such as Keyboard.sys), console programs may not detect extended character keystrokes (such as the INSERT, DELETE, and HOME keys and so on).
When a real-mode keyboard driver is installed, the current character from the "MS-DOS" keyboard buffer is sent to the console program. With an international code page loaded, this value is xe0 instead of x0 when an extended key is pressed. The data returned through the console API is therefore slightly different than that in Microsoft Windows 95. Console programs that do not work directly with the console API may not recognize extended keystrokes.
A supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. If you are not severely affected by this
specific problem, Microsoft recommends that you wait for the next
that contains this fix.
To resolve this problem immediately, contact Microsoft Product Support Services
to obtain the fix. For a complete list of Microsoft Product Support Services
phone numbers and information on support costs, please go to the following
address on the World Wide Web:
http://www.microsoft.com/support/supportnet/overview/overview.asp
File name | Date | Time | Size |
---|---|---|---|
Conagent.exe | 12/14/98 | 11:03pm | 14,696 |
Q154871 Determining If You Are Eligible for No-Charge Technical Support
Microsoft has confirmed this to be a problem in Microsoft Windows 98.
mode con codepage prepare=((850) c:\windows\command\ega.cpi)
mode con codepage select=850
keyb gr,,c:\windows\command\keyboard.sys
INPUT_RECORD.Event.KeyEvent.bKeyDown x1
INPUT_RECORD.Event.KeyEvent.wRepeatCount x1
INPUT_RECORD.Event.KeyEvent.wVirtualKeyCode x2d
INPUT_RECORD.Event.KeyEvent.wVirtualScanCode x52
-->INPUT_RECORD.Event.KeyEvent.uChar.AsciiChar x0 (CORRECT)
-->INPUT_RECORD.Event.KeyEvent.uChar.AsciiChar xe0 (INCORRECT)
INPUT_RECORD.Event.KeyEvent.dwControlKeyState x120
Note that the Interrupt 16h (BIOS Keyboard Services) and the Interrupt 21h (System Calls) character input functions for reading keyboard input are unaffected.
The C source code shown below is a minimal example that demonstrates the problem:
#include <stdio.h>
#include <conio.h>
void main ()
{
int ch = 0;
while ( 27 != ch )
{
ch = _getch();
printf( "%i: %x\n", ch, ch );
}
}
Additional query words:
Keywords : kbenv win98
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 2, 1999