Partager via


GetKeyboardStatus

This function returns the status of the hardware keyboard.

DWORD GetKeyboardStatus(VOID); 

Parameters

None.

Return Values

This function returns a bit mask indicating whether or not a keyboard is present and what its capabilities are. For more information, see Keyboard Driver Registry Settings. The following table shows the bit mask.

Identifier Value Description
KBDI_KEYBOARD_PRESENT 0x0001 Indicates whether or not the system has keyboard hardware.
KBDI_KEYBOARD_ENABLED 0x0002 Indicates whether or not the keyboard hardware is enabled.

This bit is assumed to be set but can be modified with EnableHardwareKeyboard.

KBDI_KEYBOARD_ENTER_ESC 0x0004 Indicates whether or not the keyboard hardware has ENTER and ESC keys.
KBDI_KEYBOARD_ALPHA_NUM 0x0008 Indicates whether or not the keyboard hardware has alphanumeric keys.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Kbdui.lib.

See Also

Keyboard Driver Registry Settings | EnableHardwareKeyboard | Keyboard Functions

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.