Keyboard Reference

Send Feedback

The following table shows the data types for keyboards from Keybd.h.

Data type PPC SP Description
KEY_STATE_FLAGS X X This data type contains flags for keyboard events and the SHIFT state.

The following table shows the functions for keyboards from Winuser.h.

Function PPC SP Description
ActivateKeyboardLayout X X This function sets the input locale identifier, formerly called the keyboard layout handle, for the system. The input locale identifier specifies a locale as well as the physical layout of the keyboard.
EnableHardwareKeyboard X X This function enables or disables the keyboard.
GetAsyncKeyState X X This function determines whether a key is up or down at the time the function is called, and whether the key was pressed after a previous call to GetAsyncKeyState.
GetKeyboardType X X This function retrieves information about the current keyboard.
GetKeyboardLayout X X This function retrieves the active input language identifier for a specified thread.
GetKeyboardLayoutList X X This function retrieves the input locale identifiers, formerly called keyboard layout handles, corresponding to the current set of input locales in the system. The function copies the identifiers to the specified buffer.
GetKeyboardLayoutName X X This function retrieves the name of the active keyboard layout.
GetKeyboardStatus X X This function returns the status of the hardware keyboard.
GetKeyState X X This function retrieves the status of the specified virtual key. The status specifies whether the key is up, down, or toggled on or off — alternating each time the key is pressed.
keybd_event X X This function synthesizes a keystroke. The system can use such a synthesized keystroke to generate a WM_KEYUP or WM_KEYDOWN message.
LoadKeyboardLayout X X This function places the specified layout in the available layout list.
MapVirtualKey X X This function translates, or maps, a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
PostKeybdMessage X X This function posts a keyboard message to the specified window.

The following table shows the structures for keyboards from Keybd.h.

Structure PPC SP Description
KBDI_AUTOREPEAT_INFO X X This structure contains information about the keyboards auto-repeat capabilities and settings.
KBDI_VKEY_TO_UNICODE_INFO X X This structure contains Unicode state and Unicode character information.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.