About BhashaIndia | Contribute | SiteMap | Register | Sign in to Windows Live ID
  Developers Patrons
Hindi Tamil Kannada Gujarati Marathi Telugu Bengali Malayalam Punjabi Konkani Oriya Sanskrit Nepali
Home > Developers > KnowHow > KeyboardLayout > Win32 APIs Welcome Guest!

Win32 APIs

Function Description
Keybd_event Synthesizes a keystroke given a VK, a scan code, etc., (Superceded by the SendInput API)
MapVirtualKey Maps between scan codes, VKs, and characters for the current keyboard layout.
MapVirtualKeyEx Maps between scan codes, VKs, and characters for a specified keyboard layout (layout must be loaded)
OemKeyScan Maps OEMASCII codes to OEM scan codes and shift states
SendInput Synthesizes a keystroke given a VK, a scan code, etc.,
ToAscii Maps a VK and shift state to a character on the current keyboard layout's associated codepage.
ToAsciiEx Maps a VK and shift state to a character on the specified keyboard layout's associated codepage (layout must be loaded)
ToUnicode Maps a VK and shift state to a Unicode character per the current keyboard layout.
ToUnicodeEx Maps a VK and shift state to a Unicode character per the specified keyboard layout (layout must be loaded)
VkKeyScan Converts a character to a VK and shift state for the current keyboard layout
VkKeyScanEx Converts a character to a VK and shift state for the specified keyboard layout (layout must be loaded)

Table : Keyboard Input Functions and what they do

The functions in Table are interesting in that when you read the descriptions, the functions appear to be duplicates of each other. However, once you start needing these functions in an application, you will see the small differences between these different functions can actually have a great deal of importance for obtaining the features you need.

Partner Profile | Privacy Statement | Why Passport | Testimonials
This site uses Unicode for non-English characters and uses Open Type fonts.
©2003-2007 Microsoft Corporation. All rights reserved.