Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function enables or disables the keyboard.
BOOL EnableHardwareKeyboard(
BOOL bEnable
);
This function always returns TRUE.
The EnableHardwareKeyboard function is useful for applications in which a user can write on the touch screen. When the keyboard is disabled, a user can rest a hand on it without causing spurious keyboard input. Use the disable mode carefully. If an application hangs while the keyboard is disabled, the keyboard is not available to other applications.
When EnableHardwareKeyboard changes the enabled state of the keyboard, it causes menus, tabs, buttons and static controls to repaint themselves, so they can change the way they display keyboard accelerators or other relevant information.
OS Versions: Windows CE 2.0 and later.
Header: Winuser.h.
Link Library: Kbdui.lib.
GetKeyboardStatus | System Information Functions
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.
Please sign in to use this experience.
Sign in