Microsoft KB Archive/72583

From BetaArchive Wiki

MapVirtualKey() Maps Keypad Keys Incorrectly

Q72583



The information in this article applies to:


  • Microsoft Win32 Software Development Kit (SDK)





SYMPTOMS

Under Windows 95, Windows 98, or Windows 3.1:

When MapVirtualKey() is passed valid virtual key codes for the keys on the numeric keypad, the function fails or returns an invalid scan code.

Under Windows 95, Windows 98, Windows NT 4.0 or Windows 2000:

When passing numeric key pad scan codes, MapVirtualKey() while returns valid Virtual key codes for VK_SEPERATOR, VK_MULTIPLY, VK_SUBTRACT, and VK_ADD only.



CAUSE

Because various keyboards use different scan codes to represent Numpad keys, these keys cannot be returned reliably.



STATUS

This behavior is by design.

Additional query words:

Keywords : kbInput kbKeyIn kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin
Issue type : kbbug
Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch


Last Reviewed: July 7, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.