Share via


Keyboard Functions

Send Feedback

The following table shows the keyboard functions with a description of the purpose of each.

Programming element PPC SP Description
ActivateKeyboardLayout X X This function sets the input locale identifier, formerly called the keyboard layout handle, for the system.
CreateAcceleratorTable X X This function creates an accelerator table.
DestroyAcceleratorTable X X This function destroys an accelerator table.
EnableWindow X X This function enables or disables mouse and keyboard input to the specified window or control.
GetActiveWindow X X This function retrieves the window handle to the active window associated with the thread that calls the function.
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.
GetFocus X X This function retrieves the handle to the keyboard focus window associated with the thread that called the function.
GetKeyboardLayout X X This function retrieves the active keyboard layout 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.
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.
GetKeyboardType X X This function retrieves information about the current keyboard.
GetKeyState X X This function retrieves the status of the specified virtual key.
IsWindowEnabled X X This function determines whether the specified window is enabled for touch screen input and keyboard input.
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.
KeybdGetDeviceInfo X X This function returns information about the keyboard and the keyboard driver.
LoadAccelerators X X This function loads the specified accelerator table.
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.
RegisterHotKey X X This function defines a system-wide hot key.
SendInput X X This function synthesizes keystrokes, stylus and mouse motions, and button clicks.
SetActiveWindow X X This function makes the specified top-level window associated with the thread calling this function the active window.
SetFocus X X This function sets the keyboard focus to the specified window.
TranslateAccelerator X X This function processes accelerator keys for menu commands.

See Also

Keyboard Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.