GetKeyboardLayout

This function retrieves the active keyboard layout for a specified thread.

HKL GetKeyboardLayout( 
DWORD dwThreadId );

Parameters

  • dwThreadId
    [in] Set to NULL to get the keyboard layout of the active thread. No other value is supported.

Return Values

The keyboard layout handle for the thread indicates success. The low-order word contains a language identifier for the input language and the high-order word contains a device handle for the physical layout of the keyboard. For more information about language identifiers, see Language Identifiers and Locales.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h   Coreimm.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

Language Identifiers and Locales, HIWORD, LOWORD

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.